Skip to content

Commit

Permalink
Fix issue with knockout proof encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Meeseeks committed Aug 26, 2024
1 parent 7507b53 commit 12bd290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoding/knockout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function packKnockoutLink (pivotTime: BigNumberish,
mileage: BigNumberish, commitEntropy: bigint): bigint {
// Converted BigInt code
const packed = (BigInt(pivotTime) << BigInt(64)) + BigInt(mileage);
return commitEntropy + BigInt(packed);
return (commitEntropy << BigInt(96)) + BigInt(packed);
}

const KNOCKOUT_ARG_TYPES = [
Expand Down

0 comments on commit 12bd290

Please sign in to comment.