Skip to content

Commit

Permalink
chore: bake input_aggregration_object into circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Oct 24, 2023
1 parent 4c0a05e commit c3251bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 4 additions & 7 deletions compiler/integration-tests/circuits/recursion/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ fn main(
proof : [Field; 94],
public_inputs : [Field; 1],
key_hash : Field,
input_aggregation_object : [Field; 16],
) -> pub [Field;16]{
let vk : [Field] = verification_key;
let p : [Field] = proof;
let pi : [Field] = public_inputs;
let input_aggregation_object = [0; 16];
std::verify_proof(
vk,
p,
pi,
verification_key.as_slice(),
proof.as_slice(),
public_inputs.as_slice(),
key_hash,
input_aggregation_object
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ it(`smart contract can verify a recursive proof`, async () => {
proof: proofAsFields,
public_inputs: [main_inputs.y as Field],
key_hash: vkHash,
input_aggregation_object: ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'],
};

const recursion_proof = await recursion.generateFinalProof(recursion_inputs);
Expand Down

0 comments on commit c3251bd

Please sign in to comment.