Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: verify_honk_proof inputs generation in bootstrap #12457

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lucasxia01
Copy link
Contributor

@lucasxia01 lucasxia01 commented Mar 4, 2025

Closes AztecProtocol/barretenberg#1279, fixing the acir test input generation workflow.
Closes AztecProtocol/barretenberg#1253, deprecating the write_recursion_inputs_ultra_honk flows.
Closes AztecProtocol/barretenberg#1285, adding support for generating double_verify_honk_proof inputs.

Reorders compilation so that we compile verify_honk_proof and verify_rollup_honk_proof only after compiling the rest of the programs and running write_recursion_inputs_honk to generate new Prover.tomls.

Also adds input generation for double_verify_honk_proof. This style of input generation is an easier flow for future updating.

@lucasxia01 lucasxia01 self-assigned this Mar 4, 2025
cd ../..


# $bb OLD_API write_recursion_inputs_ultra_honk -b ./target/program.json -o ../verify_honk_proof --recursive
Copy link
Contributor Author

Choose a reason for hiding this comment

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

can delete these flows

trap "rm -rf $outdir" EXIT
local key_hash="0x0000000000000000000000000000000000000000000000000000000000000000"

local prove_uh_cmd="$bb prove --scheme ultra_honk --init_kzg_accumulator --output_format fields --write_vk -o $outdir -b ./target/program.json -w ./target/witness.gz"
Copy link
Contributor Author

@lucasxia01 lucasxia01 Mar 6, 2025

Choose a reason for hiding this comment

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

this as a whole is honestly a little more complicated than I would've liked... unclear if this that much better than the write_recursion_inputs_ultra_honk flows

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its probably easier to have all the logic here though instead of having to modify both bootstrap and cpp files, even if this is quite annoying logic to handle in bash/jq

@lucasxia01 lucasxia01 requested a review from ludamad March 6, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant