Skip to content

Commit aad115c

Browse files
authored
Merge pull request #526 from AztecProtocol/merge-train/barretenberg
feat: merge-train/barretenberg
2 parents 116776c + b8d9226 commit aad115c

141 files changed

Lines changed: 5527 additions & 2564 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,22 @@
113113
"initCommands": [
114114
"command script import ${workspaceFolder}/barretenberg/cpp/scripts/lldb_format.py"
115115
],
116+
},
117+
{
118+
// Debug bb write_vk for a protocol kernel circuit.
119+
// Select a circuit by editing the artifact in the "Extract protocol circuit bytecode" task.
120+
// If writing the vk of the hiding kernel, change the circuit kind to "hiding".
121+
"name": "Debug BB write_vk kernel",
122+
"type": "lldb",
123+
"request": "launch",
124+
"program": "${workspaceFolder}/barretenberg/cpp/build-debug/bin/bb",
125+
"args": ["write_vk", "--scheme", "chonk", "--circuit_kind", "kernel", "-b", "./target/bytecode.bin", "-o", "./target/vk_output", "-v"],
126+
"cwd": "${workspaceFolder}/noir-projects/noir-protocol-circuits",
127+
"preLaunchTask": "Extract protocol circuit bytecode",
128+
"postDebugTask": "Cleanup protocol circuit bytecode",
129+
"initCommands": [
130+
"command script import ${workspaceFolder}/barretenberg/cpp/scripts/lldb_format.py"
131+
],
116132
}
117133
]
118134
}

.vscode/tasks.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,29 @@
2424
"cwd": "${workspaceFolder}/noir-projects/noir-contracts"
2525
},
2626
"problemMatcher": []
27+
},
28+
{
29+
// Extract bytecode from a protocol circuit artifact for `bb write_vk`.
30+
// Change the artifact to any protocol circuit, e.g. private_kernel_init_2.json,
31+
// private_kernel_inner.json, private_kernel_inner_3.json (see target/ for the full list).
32+
// Bytecode is kept gzipped; bb handles decompression.
33+
"label": "Extract protocol circuit bytecode",
34+
"type": "shell",
35+
"command": "jq -r '.bytecode' ./target/private_kernel_init_3.json | base64 -d > ./target/bytecode.bin",
36+
"options": {
37+
"cwd": "${workspaceFolder}/noir-projects/noir-protocol-circuits"
38+
},
39+
"problemMatcher": []
40+
},
41+
{
42+
"label": "Cleanup protocol circuit bytecode",
43+
"type": "shell",
44+
"command": "rm",
45+
"args": ["-f", "./target/bytecode.bin"],
46+
"options": {
47+
"cwd": "${workspaceFolder}/noir-projects/noir-protocol-circuits"
48+
},
49+
"problemMatcher": []
2750
}
2851
]
2952
}

INIT_3_HANDOFF.md

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)