MCPcopy Index your code
hub / github.com/NoteProtocol/NoteWallet / hash256

Function hash256

src/note.ts:103–105  ·  view source on GitHub ↗
(content: Buffer)

Source from the content-addressed store, hash-verified

101
102// Used to calculate sha256
103export function hash256(content: Buffer) {
104 return bitcore.crypto.Hash.sha256(content);
105}
106
107// Sign the sha256 of encrypted data using the private key, return hash256 and sig signature
108export function signContent(content: Buffer, privateKey: string) {

Callers 3

calcScriptHashFunction · 0.90
checkContentSigFunction · 0.85
mintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected