MCPcopy Create free account
hub / github.com/CashScript/cashscript / hash256

Function hash256

packages/utils/src/hash.ts:19–21  ·  view source on GitHub ↗
(payload: Uint8Array)

Source from the content-addressed store, hash-verified

17}
18
19export function hash256(payload: Uint8Array): Uint8Array {
20 return sha256(sha256(payload));
21}

Callers 4

unlockP2PKHMethod · 0.90
hash.test.tsFile · 0.85

Calls 1

sha256Function · 0.85

Tested by

no test coverage detected