mirror of
https://github.com/jwetzell/acn-js.git
synced 2026-08-17 04:23:23 +00:00
8 lines
164 B
TypeScript
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;
|
|
}
|