-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: modify HonkRecursionConstraint to handle IPA claims (#10469)
This PR was split out of the IPA-in-rollup integration work. It modifies the recursion constraint to be able to recursively verify UltraRollupFlavor properly by either forwarding or accumulating IPA claims.
- Loading branch information
1 parent
015ec0e
commit a204d1b
Showing
9 changed files
with
285 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
19 changes: 14 additions & 5 deletions
19
barretenberg/cpp/src/barretenberg/dsl/acir_format/honk_recursion_constraint.hpp
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
#pragma once | ||
#include "barretenberg/commitment_schemes/claim.hpp" | ||
#include "barretenberg/dsl/acir_format/recursion_constraint.hpp" | ||
#include "barretenberg/honk/proof_system/types/proof.hpp" | ||
#include "barretenberg/stdlib/primitives/bigfield/bigfield.hpp" | ||
#include "barretenberg/stdlib/primitives/curves/grumpkin.hpp" | ||
#include <vector> | ||
|
||
namespace acir_format { | ||
using Builder = bb::UltraCircuitBuilder; | ||
|
||
using namespace bb; | ||
|
||
PairingPointAccumulatorIndices create_honk_recursion_constraints( | ||
Builder& builder, | ||
const RecursionConstraint& input, | ||
PairingPointAccumulatorIndices input_aggregation_object, | ||
bool has_valid_witness_assignments = false); | ||
struct HonkRecursionConstraintOutput { | ||
PairingPointAccumulatorIndices agg_obj_indices; | ||
OpeningClaim<stdlib::grumpkin<Builder>> ipa_claim; | ||
StdlibProof<Builder> ipa_proof; | ||
}; | ||
|
||
template <typename Flavor> | ||
HonkRecursionConstraintOutput create_honk_recursion_constraints(Builder& builder, | ||
const RecursionConstraint& input, | ||
PairingPointAccumulatorIndices input_aggregation_object, | ||
bool has_valid_witness_assignments = false); | ||
|
||
} // namespace acir_format |
Oops, something went wrong.