MCPcopy Create free account
hub / github.com/xerrors/Yuxi / bytesToHex

Function bytesToHex

web/src/utils/subagentThread.js:20–23  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

18const rightRotate = (value, shift) => ((value >>> shift) | (value << (32 - shift))) >>> 0
19
20const bytesToHex = (bytes) =>
21 Array.from(bytes)
22 .map((byte) => byte.toString(16).padStart(2, '0'))
23 .join('')
24
25const sha256Hex = (bytes) => {
26 const paddedLength = Math.ceil((bytes.length + 9) / 64) * 64

Callers 1

digestSha256HexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected