Skip to content

Commit dee0cfb

Browse files
committed
verify keccak
1 parent 7f31960 commit dee0cfb

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,13 @@ it("proves and verifies on-chain", async () => {
121121
expect(result).to.eq(true);
122122

123123
// You can also verify in JavaScript.
124-
const resultJs = await backend.verifyProof({
125-
proof,
126-
publicInputs: [String(input.y)],
127-
});
124+
const resultJs = await backend.verifyProof(
125+
{
126+
proof,
127+
publicInputs: [String(input.y)],
128+
},
129+
{ keccak: true },
130+
);
128131
expect(resultJs).to.eq(true);
129132
});
130133
```

test/noir.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,13 @@ describe("Integration tests examples", function () {
7171
expect(result).to.eq(true);
7272

7373
// You can also verify in JavaScript.
74-
const resultJs = await backend.verifyProof({
75-
proof,
76-
publicInputs: [String(input.y)],
77-
});
74+
const resultJs = await backend.verifyProof(
75+
{
76+
proof,
77+
publicInputs: [String(input.y)],
78+
},
79+
{ keccak: true },
80+
);
7881
expect(resultJs).to.eq(true);
7982
});
8083

0 commit comments

Comments
 (0)