We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e084b0 commit 81dbf86Copy full SHA for 81dbf86
packages/proof/src/hash.ts
@@ -9,5 +9,5 @@ import { NumericString } from "snarkjs"
9
* @returns The message digest.
10
*/
11
export default function hash(message: BigNumberish): NumericString {
12
- return (BigInt(keccak256(toBeHex(message, 32))) >> BigInt(8)).toString()
+ return (BigInt(keccak256(toBeHex(message, 32))) >> 8n).toString()
13
}
0 commit comments