8 lines
287 B
TypeScript
8 lines
287 B
TypeScript
import { bytesToHex, hexToBytes } from "@suaveplan/bytes";
|
|
|
|
/** Convert a Uint8Array to lowercase hex string. Delegates to @suaveplan/bytes. */
|
|
export const toHex = bytesToHex;
|
|
|
|
/** Convert a hex string to Uint8Array. Delegates to @suaveplan/bytes. */
|
|
export const fromHex = hexToBytes;
|