Skip to content

Commit

Permalink
fix another script
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Sep 24, 2024
1 parent a91ed3a commit 1b377fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/fake-proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ let { verificationKey: contractVk } = await RecursiveContract.compile();
let { verificationKey: programVk } = await RecursiveProgram.compile();

// proof that should be rejected
const fakeProof = await FakeProgram.make(UInt64.from(99999));
const { proof: fakeProof } = await FakeProgram.make(UInt64.from(99999));
const dummyProof = await RealProof.dummy(undefined, undefined, 0);

for (let proof of [fakeProof, dummyProof]) {
Expand All @@ -76,10 +76,10 @@ for (let proof of [fakeProof, dummyProof]) {
}

// proof that should be accepted
const realProof = await RealProgram.make(UInt64.from(34));
const { proof: realProof } = await RealProgram.make(UInt64.from(34));

// zkprogram accepts proof
const brokenProof = await RecursiveProgram.verifyReal(realProof);
const { proof: brokenProof } = await RecursiveProgram.verifyReal(realProof);
assert(
await verify(brokenProof, programVk.data),
'recursive program accepts real proof'
Expand Down

0 comments on commit 1b377fe

Please sign in to comment.