Skip to content

Commit 3c246f7

Browse files
authored
Update hashes.ts
1 parent 8ae80a2 commit 3c246f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hashes.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type NodeHash = (left: BytesLike, right: BytesLike) => HexString;
88
export function keccak256(input: BytesLike): HexString {
99
return toHex(_keccak256(toBytes(input)));
1010
}
11+
1112
export function standardLeafHash<T extends any[]>(types: string[], value: T): HexString {
1213
return keccak256(keccak256(encode(types, value)));
1314
}

0 commit comments

Comments
 (0)