chore: align proving toolchain with bb 5.2.0 - #5
Merged
Merged
Conversation
Assisted-by: GPT-5 Signed-off-by: Wondertan <hlibwondertan@gmail.com>
xgreenx
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The browser, compiler, and native verifier toolchains must remain one compatibility unit. This updates the release to Nargo
1.0.0-beta.25and Barretenberg/bb.js5.2.0, allowing the browser to pass an explicitsrsSizeinstead of inheriting bb.js's larger generic defaults.bb.js 5.2 uses compressed 32-byte BN254 points. Its current
SrsInitSrsalso requires compressed input to be a positive multiple of the 4 MiB verification chunk. Consequently the measured 42,006-gatebearer_linkcircuit cannot cold-start with the mathematical 2^16 ceiling: 2^16 compressed points are only 2 MiB and fail initialization. The deployable floor is 2^17.jwt_emailremains 2^18.bearer_linkjwt_emailThe complete totals include the shared 4 MiB Grumpkin data and 128-byte G2 data.
Changes
1.0.0-beta.25and native Barretenberg to5.2.0;noir-lang/keccak256tov0.1.3for beta.25;This is stacked on #4 so its review diff contains only the toolchain bump. The published
v0.3.0-rc.2was additionally rebased onto currentmain, preserving thex-tokenrename. Consumers must deploy matching RC2 verifiers before accepting these proofs.Verification
bearer-link,jwt_email, andx-tokencompile and generate verification keys with native bb5.2.0;bearer_linkwith 2^17 andjwt_emailwith 2^18 using four effective threads and shared memory.Related follow-ups
Deeper inspection of bb.js prefetch behavior during this bump produced AztecProtocol/aztec-packages#25290. It persists compressed browser CRS data to IndexedDB immediately after download and reuses exact or larger-prefix entries. The PR is not part of the published bb.js
5.2.0; libID must consume a later build containing it before relying onCrs.new()as a navigation-durable warmup.The release manifest still records toolchain pins and artifact hashes but not measured circuit/SRS sizes. #6 tracks deriving and publishing those values during release packaging.