Files
acn-js/packages/acn/src/utils.ts
T
2024-12-07 11:19:20 -06:00

8 lines
164 B
TypeScript

export function toHex(bytes: Uint8Array): string {
let hex = '';
bytes.forEach((byte) => {
hex += byte.toString(16).padStart(2, '0');
});
return hex;
}