Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
export
function
hash256(payload: Uint8Array): Uint8Array {
20
return
sha256(sha256(payload));
21
}
Callers
4
generateUnlockingBytecode
Method · 0.90
scriptToP2SHLockingBytecode
Function · 0.90
unlockP2PKH
Method · 0.90
hash.test.ts
File · 0.85
Calls
1
sha256
Function · 0.85
Tested by
no test coverage detected