MCPcopy Create free account
hub / github.com/B3Pay/B3Wallet / hashToHex

Function hashToHex

scripts/utils.ts:126–130  ·  view source on GitHub ↗
(hash: number[])

Source from the content-addressed store, hash-verified

124}
125
126export function hashToHex(hash: number[]) {
127 const hashHex = hash.map(byte => byte.toString(16).padStart(2, "0")).join("")
128
129 return `0x${hashHex}`
130}
131
132export async function calculateWasmHash(name: string, asHex: boolean) {
133 const buffer = await readFile(

Callers 3

loadFunction · 0.90
loadFunction · 0.90
calculateSha256Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected