Skip to content

Commit

Permalink
adjust comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed Oct 24, 2023
1 parent fa408e8 commit 08a5115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/gadgets/bitwise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function xor(a: Field, b: Field, length: number) {
return new Field(Fp.xor(a.toBigInt(), b.toBigInt()));
}

// calculate expect xor output
// calculate expected xor output
let outputXor = Provable.witness(
Field,
() => new Field(Fp.xor(a.toBigInt(), b.toBigInt()))
Expand All @@ -57,7 +57,7 @@ function buildXor(
) {
// construct the chain of XORs until padLength is 0
while (padLength !== 0) {
// slices the inputs 4 4bit-sized chunks
// slices the inputs into 4x 4bit-sized chunks
// slices of a
let in1_0 = witnessSlices(a, 0, 4);
let in1_1 = witnessSlices(a, 4, 4);
Expand Down

0 comments on commit 08a5115

Please sign in to comment.