Skip to content

Commit

Permalink
Update hashes.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx authored Oct 9, 2024
1 parent 8ae80a2 commit 3c246f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type NodeHash = (left: BytesLike, right: BytesLike) => HexString;
export function keccak256(input: BytesLike): HexString {
return toHex(_keccak256(toBytes(input)));
}

export function standardLeafHash<T extends any[]>(types: string[], value: T): HexString {
return keccak256(keccak256(encode(types, value)));
}
Expand Down

0 comments on commit 3c246f7

Please sign in to comment.