Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/NoteProtocol/NoteWallet
/ calcScriptHash
Function
calcScriptHash
src/address.ts:29–32 ·
view source on GitHub ↗
(scriptBuffer: Buffer)
Source
from the content-addressed store, hash-verified
27
};
28
29
export
function
calcScriptHash(scriptBuffer: Buffer) {
30
const
reversedHash256Hex = hash256(scriptBuffer).reverse().toString(
"hex"
);
31
return
reversedHash256Hex;
32
}
Callers
8
generateP2PHKAddress
Function · 0.90
generateP2SHAddress
Function · 0.90
generateP2SHNoteAddress
Function · 0.90
generateP2WPHKAddress
Function · 0.90
generateP2TRNoteAddressV1
Function · 0.90
generateP2TRNoteAddress
Function · 0.90
generateP2TRCommitDataAddress
Function · 0.90
mapAddressToScriptHash
Function · 0.85
Calls
1
hash256
Function · 0.90
Tested by
no test coverage detected