Encodes bytes as lowercase hex, the inverse of fromHex. Hand-rolled so it exists on
every target runtime (no Buffer); the result feeds cross-runtime hashes, so lowercase is the
only spelling it ever produces.
toHex(bytes:Uint8Array):string
Lowercase hex, hand-written because neither Buffer nor Uint8Array.prototype.toHex exists on
every target runtime, and the result feeds cross-runtime hashes.
Parameters
bytes: Uint8Array
Returns string
See
Integrity for the
hash chain these hex helpers feed.
Encodes bytes as lowercase hex, the inverse of fromHex. Hand-rolled so it exists on every target runtime (no
Buffer); the result feeds cross-runtime hashes, so lowercase is the only spelling it ever produces.