Skip to content

Commit a97aea8

Browse files
authored
feat: merge-train/barretenberg (#17853)
BEGIN_COMMIT_OVERRIDE chore. chore: `Transcript` clean-up pt. 1 (#17772) feat!: ECDSA audit 9 (#17865) chore: improve elliptic relation consistency test and docs (#17773) chore!: add assert_on_curve bool to cycle group constructor (#17774) chore: remove srs size increment in commitment key (#17608) vkeys 2 Revert "Merge branch 'merge-train/barretenberg' of github.com:AztecProtocol/aztec-packages into merge-train/barretenberg" Revert "vkeys 2" test(bb): Static Analysis of IPA recursive verifier (#17790) chore: tweak CLAUDE.md feat!: Switch to using the new Sumcheck ClientIVC (#17917) chore: add a test to the ECCVM circuit builder (#17908) fix: avm_transpiler.h comments (#17829) chore: circuit builder base cleanup (#17887) chore: suppress git clone stderr in cmake dependency installation (#17922) chore: the great deletion (#17926) END_COMMIT_OVERRIDE
2 parents 9e0a5fd + 3a86ce4 commit a97aea8

File tree

180 files changed

+1732
-9558
lines changed

Some content is hidden

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

180 files changed

+1732
-9558
lines changed

.test_patterns.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,6 @@ tests:
304304
error_regex: "will propagate messages to peers at the same version"
305305
owners:
306306
- *palla
307-
- regex: "src/client/test/p2p_client.integration_txs.test.ts"
308-
error_regex: "Expected number of calls"
309-
owners:
310-
- *palla
311307
- regex: "src/client/test/p2p_client.integration_status_handshake.test.ts"
312308
error_regex: "Expected number of calls"
313309
owners:

avm-transpiler/avm_transpiler.h

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,38 @@ typedef struct {
2424
} TranspileResult;
2525

2626
/**
27-
* Transpiles an ACIR contract artifact file to AVM bytecode
27+
* Transpiles a Brillig contract artifact file to AVM bytecode
2828
*
29-
* @param input_path Path to input ACIR contract artifact JSON file
29+
* @param input_path Path to input Brillig contract artifact JSON file
3030
* @param output_path Path to output transpiled contract artifact JSON file
31-
* @return TranspileResult containing success status, output data, or error message
31+
* @return TranspileResult containing success status, output data, or error
32+
* message
3233
*
33-
* The function reads the ACIR contract from input_path, transpiles it to AVM bytecode,
34-
* and writes the result to output_path. The output data in the result contains
35-
* the same JSON that was written to the file.
34+
* The function reads the Brillig contract from input_path, transpiles it to AVM
35+
* bytecode, and writes the result to output_path. The output data in the result
36+
* contains the same JSON that was written to the file.
3637
*
3738
* Call avm_free_result() to free the returned result.
3839
*/
39-
TranspileResult avm_transpile_file(const char* input_path, const char* output_path);
40+
TranspileResult avm_transpile_file(const char* input_path,
41+
const char* output_path);
4042

4143
/**
42-
* Transpiles raw ACIR contract artifact bytecode to AVM bytecode
44+
* Transpiles raw Brillig contract artifact bytecode to AVM bytecode
4345
*
44-
* @param input_data Pointer to input ACIR contract artifact JSON data
46+
* @param input_data Pointer to input Brillig contract artifact JSON data
4547
* @param input_length Length of input data in bytes
46-
* @return TranspileResult containing success status, output data, or error message
48+
* @return TranspileResult containing success status, output data, or error
49+
* message
4750
*
48-
* The function takes raw JSON bytes representing an ACIR contract artifact,
51+
* The function takes raw JSON bytes representing a Brillig contract artifact,
4952
* transpiles it to AVM bytecode, and returns the transpiled contract artifact
5053
* as JSON bytes in the result.
5154
*
5255
* Call avm_free_result() to free the returned result.
5356
*/
54-
TranspileResult avm_transpile_bytecode(const unsigned char* input_data, size_t input_length);
57+
TranspileResult avm_transpile_bytecode(const unsigned char* input_data,
58+
size_t input_length);
5559

5660
/**
5761
* Frees memory allocated by a TranspileResult
@@ -67,4 +71,4 @@ void avm_free_result(TranspileResult* result);
6771
}
6872
#endif
6973

70-
#endif /* AVM_TRANSPILER_H */
74+
#endif /* AVM_TRANSPILER_H */

barretenberg/cpp/CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ THE PROJECT ROOT IS AT TWO LEVELS ABOVE THIS FOLDER. Typically, the repository i
44

55
Run ./bootstrap.sh at the top-level to be sure the repo fully builds.
66
Bootstrap scripts can be called with relative paths e.g. ../barretenberg/bootstrap.sh
7-
You can use DISABLE_AVM=1 to bootstrap things generally.
7+
You can use DISABLE_AZTEC_VM=1 to bootstrap things generally.
88

99
# Working on modules:
1010

@@ -15,7 +15,7 @@ The core proving system library. Focus development is in barretenberg/cpp.
1515
Bootstrap modes:
1616
- `./bootstrap.sh` => full build, needed for other components
1717
- `./bootstrap.sh build` => standard build
18-
- `DISABLE_AVM=1 ./bootstrap.sh build_native` => quick build without AVM. Good for verifying compilation works. Needed to build ts/
18+
- `DISABLE_AZTEC_VM=1 ./bootstrap.sh build_native` => quick build without AVM. Good for verifying compilation works. Needed to build ts/
1919
Development commands:
2020
- cmake --preset build-no-avm
2121
cd build-no-avm

barretenberg/cpp/bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ function test_cmds {
284284
# Mostly arbitrary set that touches lots of the code.
285285
declare -A asan_tests=(
286286
["commitment_schemes_recursion_tests"]="IPARecursiveTests.AccumulationAndFullRecursiveVerifier"
287-
["client_ivc_tests"]="ClientIVCTests.BasicStructured"
288-
["ultra_honk_tests"]="MegaHonkTests/0.BasicStructured"
287+
["client_ivc_tests"]="ClientIVCTests.Basic"
288+
["ultra_honk_tests"]="MegaHonkTests/0.Basic"
289289
["dsl_tests"]="AcirHonkRecursionConstraint/1.TestBasicDoubleHonkRecursionConstraints"
290290
)
291291
# If in amd64 CI, iterate asan_tests, creating a gtest invocation for each.

barretenberg/cpp/cmake/backward-cpp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(ENABLE_STACKTRACES)
1313
PREFIX ${BACKWARD_PREFIX}
1414
# We need to go through some hoops to do a shallow clone of a fixed commit (as opposed to a tag).
1515
DOWNLOAD_COMMAND
16-
sh -c "mkdir -p ${BACKWARD_PREFIX}/src/backward && cd ${BACKWARD_PREFIX}/src/backward && git init . && (git remote add origin https://github.com/bombela/backward-cpp || true) && git fetch --depth 1 origin 51f0700452cf71c57d43c2d028277b24cde32502 && git checkout FETCH_HEAD"
16+
sh -c "mkdir -p ${BACKWARD_PREFIX}/src/backward && cd ${BACKWARD_PREFIX}/src/backward && git init . 2>/dev/null && (git remote add origin https://github.com/bombela/backward-cpp 2>/dev/null || true) && git fetch --depth 1 origin 51f0700452cf71c57d43c2d028277b24cde32502 2>/dev/null && git checkout FETCH_HEAD 2>/dev/null"
1717
SOURCE_DIR ${BACKWARD_PREFIX}/src/backward
1818
CONFIGURE_COMMAND ""
1919
BUILD_COMMAND ""

barretenberg/cpp/cmake/lmdb.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ExternalProject_Add(
1111
PREFIX ${LMDB_PREFIX}
1212
# We need to go through some hoops to do a shallow clone of a fixed commit (as opposed to a tag).
1313
DOWNLOAD_COMMAND
14-
sh -c "mkdir -p ${LMDB_PREFIX}/src/lmdb_repo && cd ${LMDB_PREFIX}/src/lmdb_repo && git init . && (git remote add origin https://github.com/LMDB/lmdb.git || true) && git fetch --depth 1 origin ddd0a773e2f44d38e4e31ec9ed81af81f4e4ccbb && git checkout FETCH_HEAD"
14+
sh -c "mkdir -p ${LMDB_PREFIX}/src/lmdb_repo && cd ${LMDB_PREFIX}/src/lmdb_repo && git init . 2>/dev/null && (git remote add origin https://github.com/LMDB/lmdb.git 2>/dev/null || true) && git fetch --depth 1 origin ddd0a773e2f44d38e4e31ec9ed81af81f4e4ccbb 2>/dev/null && git checkout FETCH_HEAD 2>/dev/null"
1515
SOURCE_DIR ${LMDB_PREFIX}/src/lmdb_repo
1616
BUILD_IN_SOURCE YES
1717
CONFIGURE_COMMAND "" # No configure step

barretenberg/cpp/cmake/msgpack.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ExternalProject_Add(
99
PREFIX ${MSGPACK_PREFIX}
1010
# We need to go through some hoops to do a shallow clone of a fixed commit (as opposed to a tag).
1111
DOWNLOAD_COMMAND
12-
sh -c "mkdir -p ${MSGPACK_PREFIX}/src/msgpack-c && cd ${MSGPACK_PREFIX}/src/msgpack-c && git init . && (git remote add origin https://github.com/AztecProtocol/msgpack-c.git || true) && git fetch --depth 1 origin 5ee9a1c8c325658b29867829677c7eb79c433a98 && git checkout FETCH_HEAD"
12+
sh -c "mkdir -p ${MSGPACK_PREFIX}/src/msgpack-c && cd ${MSGPACK_PREFIX}/src/msgpack-c && git init . 2>/dev/null && (git remote add origin https://github.com/AztecProtocol/msgpack-c.git 2>/dev/null || true) && git fetch --depth 1 origin 5ee9a1c8c325658b29867829677c7eb79c433a98 2>/dev/null && git checkout FETCH_HEAD 2>/dev/null"
1313
SOURCE_DIR ${MSGPACK_PREFIX}/src/msgpack-c
1414
CONFIGURE_COMMAND "" # No configure step
1515
BUILD_COMMAND "" # No build step

barretenberg/cpp/cmake/nlohmann_json.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set(NLOHMANN_JSON_SOURCE_DIR "${CMAKE_BINARY_DIR}/_deps/nlohmann_json-src")
33
set(NLOHMANN_JSON_COMMIT_HASH "9cca280a4d0ccf0c08f47a99aa71d1b0e52f8d03")
44

55
execute_process(
6-
COMMAND sh -c "mkdir -p ${NLOHMANN_JSON_SOURCE_DIR} && cd ${NLOHMANN_JSON_SOURCE_DIR} && git init . && (git remote add origin https://github.com/nlohmann/json.git || true) && git fetch --depth 1 origin ${NLOHMANN_JSON_COMMIT_HASH} && git checkout FETCH_HEAD"
6+
COMMAND sh -c "mkdir -p ${NLOHMANN_JSON_SOURCE_DIR} && cd ${NLOHMANN_JSON_SOURCE_DIR} && git init . 2>/dev/null && (git remote add origin https://github.com/nlohmann/json.git 2>/dev/null || true) && git fetch --depth 1 origin ${NLOHMANN_JSON_COMMIT_HASH} 2>/dev/null && git checkout FETCH_HEAD 2>/dev/null"
77
RESULT_VARIABLE result
88
)
99
if(result)

barretenberg/cpp/cmake/tracy.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set(TRACY_SOURCE_DIR "${CMAKE_BINARY_DIR}/_deps/tracy-src")
33
set(TRACY_COMMIT_HASH "5d542dc09f3d9378d005092a4ad446bd405f819a")
44

55
execute_process(
6-
COMMAND sh -c "mkdir -p ${TRACY_SOURCE_DIR} && cd ${TRACY_SOURCE_DIR} && git init . && (git remote add origin https://github.com/wolfpld/tracy.git || true) && git fetch --depth 1 origin ${TRACY_COMMIT_HASH} && git checkout FETCH_HEAD"
6+
COMMAND sh -c "mkdir -p ${TRACY_SOURCE_DIR} && cd ${TRACY_SOURCE_DIR} && git init . 2>/dev/null && (git remote add origin https://github.com/wolfpld/tracy.git 2>/dev/null || true) && git fetch --depth 1 origin ${TRACY_COMMIT_HASH} 2>/dev/null && git checkout FETCH_HEAD 2>/dev/null"
77
RESULT_VARIABLE result
88
)
99
if(result)

barretenberg/cpp/scripts/audit/audit_summary.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,6 @@
120120
"not started": 24
121121
}
122122
},
123-
"protogalaxy": {
124-
"internal": {
125-
"not started": 9
126-
},
127-
"external_1": {
128-
"not started": 9
129-
},
130-
"external_2": {
131-
"not started": 9
132-
}
133-
},
134123
"relations": {
135124
"internal": {
136125
"not started": 53

0 commit comments

Comments
 (0)