Convert hex string to byte array.
hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) Copy
hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])
Convert hex string to byte array.
Example