Skip to content

Commit

Permalink
Update signature.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-ziv authored Nov 14, 2023
1 parent 166b97b commit 3efec10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function hasHexPrefix(str: string) {
function pedersen(input: Array<string>) {
let point = shiftPoint;
for (let i = 0; i < input.length; i++) {
let x = new BN(input[i], 16);
const x = new BN(input[i], 16);
assert(x.gte(zeroBn) && x.lt(prime), 'Invalid input: ' + input[i]);
for (let j = 0; j < 252; j++) {
const pt = constantPoints[2 + i * 252 + j];
Expand Down

0 comments on commit 3efec10

Please sign in to comment.