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

Function hash160

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

Source from the content-addressed store, hash-verified

13}
14
15export function hash160(payload: Uint8Array): Uint8Array {
16 return ripemd160(sha256(payload));
17}
18
19export function hash256(payload: Uint8Array): Uint8Array {
20 return sha256(sha256(payload));

Callers 7

vars.tsFile · 0.90
common.tsFile · 0.90
common-js.jsFile · 0.90
keys.tsFile · 0.90
hash.test.tsFile · 0.85

Calls 2

ripemd160Function · 0.85
sha256Function · 0.85

Tested by

no test coverage detected