Skip to content

feat: Use UltraRollupHonk in rollup#10342

Merged
lucasxia01 merged 134 commits intomasterfrom
lx/ipa-in-rollup
Dec 24, 2024
Merged

feat: Use UltraRollupHonk in rollup#10342
lucasxia01 merged 134 commits intomasterfrom
lx/ipa-in-rollup

Conversation

@lucasxia01
Copy link
Contributor

@lucasxia01 lucasxia01 commented Dec 2, 2024

Uses UltraRollupFlavor and UltraRecursiveRollupFlavor in the rollup.

Modifies UltraRecursiveVerifier tests to also test rollup flavors.

Adds new test program, verify_rollup_honk_proof, and new flows for test program.

@lucasxia01 lucasxia01 marked this pull request as ready for review December 2, 2024 21:47
@lucasxia01 lucasxia01 self-assigned this Dec 5, 2024
}
// Accumulate the claims
if (nested_ipa_claims.size() == 2) {
// init Grumpkin CRS
Copy link
Contributor Author

Choose a reason for hiding this comment

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

edit comment

@@ -634,9 +634,13 @@ void handle_blackbox_func_call(Program::Opcode::BlackBoxFuncCall const& arg,
// TODO(https://github.com/AztecProtocol/barretenberg/issues/1074): Eventually arg.proof_type will
Copy link
Contributor Author

Choose a reason for hiding this comment

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

see if we can delete this in a followup

Copy link
Contributor

@ledwards2225 ledwards2225 left a comment

Choose a reason for hiding this comment

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

We discussed on a call. LG, we discussed the following general updates:

  • Consider how to improve debugging of self_reduce() issue
  • Organize mock IPA proof construction (etc) into methods
  • Comments wherever possible
  • Possibly simplify regenerate verify proof inputs scripts
  • Think about path for future removal of honk_recursion as integer


// output the vk
typename Flavor::VerificationKey vk(prover.proving_key->proving_key);
debug(vk.to_field_elements());
Copy link
Contributor

Choose a reason for hiding this comment

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

Please be more careful to remove these things--I just had to track this down

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my fault, didn't realize NDEBUG was off for most builds, and I recently made a change such that debug() prints when NDEBUG was off. I had assumed it was only off in debugging builds. I reverted it here: #11498.

vinfo("binary proof written to: ", proofPath);

// Write the proof as fields
info("proof: ", proof);
Copy link
Contributor

Choose a reason for hiding this comment

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

and this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, this got lost in the commit. My fault


// Write the vk as fields
std::vector<bb::fr> vk_data = vk.to_field_elements();
debug("vk: ", vk_data);
Copy link
Contributor

Choose a reason for hiding this comment

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

and this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.