From 3efec101ad61efd753b6add9abbd651eeb1119c2 Mon Sep 17 00:00:00 2001 From: DanZ Date: Tue, 14 Nov 2023 14:00:48 +0200 Subject: [PATCH] Update signature.ts --- src/js/signature.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];