chore(examples): bump noir-rs to v1.0.0-beta.19#1130
Merged
Conversation
zkmopro/noir-rs#37 migrated off the custom bb/ FFI crate to the official barretenberg-rs crate from crates.io, and bumped the noir-lang deps from v1.0.0-beta.8 to v1.0.0-beta.19. * crates/examples/Cargo.toml: bump noir-rs tag. * basic_zk/noir/Nargo.toml: bump sha256 to v0.3.0 and noir-date to v0.5.6 for nargo v1.0.0-beta.19 compatibility. * basic_zk/noir/src/main.nr: drop deprecated `dep::` import prefix. * basic_zk/noir/target/noir.json: recompile with nargo v1.0.0-beta.19 (ACIR serialization format changed). * basic_zk/verifier.rs: adjust public-input extraction for the new proof layout. noir-rs beta.19 prefixes proof bytes with a 4-byte BE num_public_inputs, so the date and hash offsets now start from proof[4..]. Also validates num_pub == 35. * basic_zk/README.md: update noirup version and simplify bbup invocation.
th4s
approved these changes
Apr 22, 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.
Summary
zkmopro/noir-rsfromv1.0.0-beta.8tov1.0.0-beta.19in thebasic_zkexample. Upstream PR zkmopro/noir-rs#37 replaces the custombb/FFI crate with the officialbarretenberg-rscrate from crates.io and advances the noir-lang deps from July 2025 to Feb 2026.nargo v1.0.0-beta.19.What changed
noirgit tag.sha256tov0.3.0andnoir-datetov0.5.6for nargov1.0.0-beta.19compatibility.dep::import prefix.nargo v1.0.0-beta.19(the ACIR serialization format changed between beta.8 and beta.19).noir-rsbeta.19 prefixes proof bytes with a 4-byte BEnum_public_inputs, so date and hash offsets now start fromproof[4..]. Also validatesnum_pub == 35.noirup --versionto1.0.0-beta.19and simplify thebbupinvocation.Notes
noir-rspreserved the public API (prove_ultra_honk,setup_srs_from_bytecode,get_ultra_honk_verification_key,verify_ultra_honk,from_vec_str_to_witness_map).sha256v0.3.0emits abug:advisory from nargo about an under-constrained Brillig call in its internalbuild_msg_block_helper. Compilation and tests still succeed; this is an upstream library concern, not specific to our circuit.Test plan
nargo compilewithnargo v1.0.0-beta.19succeeds.nargo test --show-outputpasses bothtest_max_is_over_18andtest_under_18.cargo build --release --example basic_zkcompiles.tlsn-server-fixtureon port 4000 printsProof verified successfullyandAge verified in ZK: 18+.