Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJepsen committed Aug 15, 2024
1 parent 3a4f781 commit ef54fc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions circuits/test/gfmulx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ describe("GFMulX", () => {
console.log("#constraints:", await circuit.getConstraintCount());
});

// x^8 + x^4 + x^3 + x + 1
it("should compute correctly 1", async () => {
// x^128 = x^7 + x^2 + x + 1
let test = [1].concat(Array(127).fill(0)) // 128-bit array with MSB = 1 and everything else 0
/// 10000111
/// 10000111 : x^7 + x^2 + x + 1
let expected_output: number[] = Array(120).fill(0).concat([1,0,0,0,0,1,1,1])
await circuit.expectPass({in: test}, {out: expected_output})
});
Expand Down

0 comments on commit ef54fc8

Please sign in to comment.