This commit is contained in:
Paul Miller 2023-07-12 23:58:30 +02:00
parent 52c5df0264
commit dba2f0e732
No known key found for this signature in database
GPG Key ID: 697079DA6878B89B

@ -17,7 +17,9 @@ export type CHash = {
};
export type FHash = (message: Uint8Array | string) => Uint8Array;
const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0'));
const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) =>
i.toString(16).padStart(2, '0')
);
/**
* @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'
*/