Encodes a Uint8Array as a lowercase hexadecimal string.
The byte array to encode.
The hex string (two chars per byte).
const hex = toHex(new Uint8Array([0x0f, 0xff]));// '0fff' Copy
const hex = toHex(new Uint8Array([0x0f, 0xff]));// '0fff'
Encodes a Uint8Array as a lowercase hexadecimal string.