Skip to content

chore: fix avm build#15448

Merged
lucasxia01 merged 1 commit into
merge-train/barretenbergfrom
lx/fix-avm-vk-and-hash
Jul 2, 2025
Merged

chore: fix avm build#15448
lucasxia01 merged 1 commit into
merge-train/barretenbergfrom
lx/fix-avm-vk-and-hash

Conversation

@lucasxia01

@lucasxia01 lucasxia01 commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

DIdn't build AVM in #15318. This PR fixes the build, but does not fix the soundness issues wrt the key hash.

@lucasxia01 lucasxia01 added the ci-full Run all master checks. label Jul 2, 2025
@lucasxia01 lucasxia01 assigned lucasxia01 and unassigned lucasxia01 Jul 2, 2025
// TODO(https://github.com/AztecProtocol/barretenberg/issues/1305): Mega + Goblin VKs must be circuit constants.
auto mega_vk = std::make_shared<MegaRecursiveVerificationKey>(&ultra_builder, inner_output.mega_vk);
MegaRecursiveVerifier mega_verifier(&ultra_builder, mega_vk, transcript);
auto mega_vk_and_hash = std::make_shared<MegaRecursiveVKAndHash>(ultra_builder, inner_output.mega_vk);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a vk hash should be passed in here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that would avoid recomputation. I guess we can add that when we make inner_output.mega_vk a circuit constant

@lucasxia01 lucasxia01 enabled auto-merge (squash) July 2, 2025 04:19

@federicobarbacovi federicobarbacovi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

// TODO(https://github.com/AztecProtocol/barretenberg/issues/1305): Mega + Goblin VKs must be circuit constants.
auto mega_vk = std::make_shared<MegaRecursiveVerificationKey>(&ultra_builder, inner_output.mega_vk);
MegaRecursiveVerifier mega_verifier(&ultra_builder, mega_vk, transcript);
auto mega_vk_and_hash = std::make_shared<MegaRecursiveVKAndHash>(ultra_builder, inner_output.mega_vk);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that would avoid recomputation. I guess we can add that when we make inner_output.mega_vk a circuit constant

@lucasxia01 lucasxia01 merged commit 673643e into merge-train/barretenberg Jul 2, 2025
9 of 11 checks passed
@lucasxia01 lucasxia01 deleted the lx/fix-avm-vk-and-hash branch July 2, 2025 06:58
github-merge-queue Bot pushed a commit that referenced this pull request Jul 2, 2025
See
[merge-train-readme.md](https://github.com/AztecProtocol/aztec-packages/blob/next/.github/workflows/merge-train-readme.md).

chore: update merge-train documentation
feat!: (sequence of) Apps share a transcript until a kernel is
encountered (#15313)
chore: bigfield todo fixes (#15202)
chore: remove insecure logic from ipa recursion (#14102)
chore: bigfield audit fixes that change circuits (#15205)
feat: stdlib::Proof (#15410)
fix: build bb for bench_ivc script (#15429)
chore: revert "feat: stdlib::Proof (#15410)" (#15431)
chore: unrevert stdlib proof (#15443)
chore: package vk hash with vk (#15318)
chore: fix avm build (#15448)
chore: skip building wasm for bench_ivc when NO_WASM=1 (#15462)
chore: add a link to audit PR template in default PR template (#15463)

---------

Co-authored-by: AztecBot <tech@aztecprotocol.com>
Co-authored-by: ludamad <adam.domurad@gmail.com>
Co-authored-by: federicobarbacovi <171914500+federicobarbacovi@users.noreply.github.com>
Co-authored-by: Suyash Bagad <suyash@aztecprotocol.com>
Co-authored-by: sergei iakovenko <105737703+iakovenkos@users.noreply.github.com>
Co-authored-by: ledwards2225 <98505400+ledwards2225@users.noreply.github.com>
Co-authored-by: Jonathan Hao <jonathan@aztec-labs.com>
Co-authored-by: Lucas Xia <lucasxia01@gmail.com>
danielntmd pushed a commit to danielntmd/aztec-packages that referenced this pull request Jul 16, 2025
See
[merge-train-readme.md](https://github.com/AztecProtocol/aztec-packages/blob/next/.github/workflows/merge-train-readme.md).

chore: update merge-train documentation
feat!: (sequence of) Apps share a transcript until a kernel is
encountered (AztecProtocol#15313)
chore: bigfield todo fixes (AztecProtocol#15202)
chore: remove insecure logic from ipa recursion (AztecProtocol#14102)
chore: bigfield audit fixes that change circuits (AztecProtocol#15205)
feat: stdlib::Proof (AztecProtocol#15410)
fix: build bb for bench_ivc script (AztecProtocol#15429)
chore: revert "feat: stdlib::Proof (AztecProtocol#15410)" (AztecProtocol#15431)
chore: unrevert stdlib proof (AztecProtocol#15443)
chore: package vk hash with vk (AztecProtocol#15318)
chore: fix avm build (AztecProtocol#15448)
chore: skip building wasm for bench_ivc when NO_WASM=1 (AztecProtocol#15462)
chore: add a link to audit PR template in default PR template (AztecProtocol#15463)

---------

Co-authored-by: AztecBot <tech@aztecprotocol.com>
Co-authored-by: ludamad <adam.domurad@gmail.com>
Co-authored-by: federicobarbacovi <171914500+federicobarbacovi@users.noreply.github.com>
Co-authored-by: Suyash Bagad <suyash@aztecprotocol.com>
Co-authored-by: sergei iakovenko <105737703+iakovenkos@users.noreply.github.com>
Co-authored-by: ledwards2225 <98505400+ledwards2225@users.noreply.github.com>
Co-authored-by: Jonathan Hao <jonathan@aztec-labs.com>
Co-authored-by: Lucas Xia <lucasxia01@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run all master checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants