API reference@evolu/commonBuffer › hexToBytes

function hexToBytes(hex: string): Uint8Array;

Defined in: node_modules/.bun/@noble+ciphers@2.1.1/node_modules/@noble/ciphers/utils.d.ts:45

Convert hex string to byte array. Uses built-in function, when available.

Example

hexToBytes("cafe0123"); // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])