API Reference / @evolu/common / Buffer / bytesToHex
Function: bytesToHex()
function bytesToHex(bytes): string;
Defined in: node_modules/@noble/ciphers/esm/utils.d.ts:46
Convert byte array to hex string. Uses built-in function, when available.
Parameters
Parameter | Type |
---|---|
bytes | Uint8Array |
Returns
string
Example
bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'