MCPcopy 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
29export function calcScriptHash(scriptBuffer: Buffer) {
30 const reversedHash256Hex = hash256(scriptBuffer).reverse().toString("hex");
31 return reversedHash256Hex;
32}

Callers 8

generateP2PHKAddressFunction · 0.90
generateP2SHAddressFunction · 0.90
generateP2SHNoteAddressFunction · 0.90
generateP2WPHKAddressFunction · 0.90
generateP2TRNoteAddressFunction · 0.90
mapAddressToScriptHashFunction · 0.85

Calls 1

hash256Function · 0.90

Tested by

no test coverage detected