We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ae80a2 commit 3c246f7Copy full SHA for 3c246f7
src/hashes.ts
@@ -8,6 +8,7 @@ export type NodeHash = (left: BytesLike, right: BytesLike) => HexString;
8
export function keccak256(input: BytesLike): HexString {
9
return toHex(_keccak256(toBytes(input)));
10
}
11
+
12
export function standardLeafHash<T extends any[]>(types: string[], value: T): HexString {
13
return keccak256(keccak256(encode(types, value)));
14
0 commit comments