ConstPure-JavaScript hex encoder, exported for benchmarking and for
environments where the native TC39 Uint8Array.prototype.toHex
intrinsic (proposal-arraybuffer-base64) is unavailable or has been
removed. See encodeHex below for the dispatched default.
Emits lowercase hex. Callers that need uppercase can call
.toUpperCase() on the result.
Encodes a Uint8Array as a lowercase hex string.
Dispatches to the native
Uint8Array.prototype.toHexintrinsic when available (stage-4 TC39 proposal-arraybuffer-base64). Otherwise falls through to the pure-JavaScript polyfill.