diff --git a/src/js/signature.ts b/src/js/signature.ts index d01fb7b..d45eb1b 100644 --- a/src/js/signature.ts +++ b/src/js/signature.ts @@ -86,7 +86,7 @@ function hasHexPrefix(str: string) { function pedersen(input: Array) { 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];