utils.d.ts 661 B

123456789101112
  1. declare const assertBool: typeof import("@noble/hashes/_assert").bool;
  2. declare const assertBytes: typeof import("@noble/hashes/_assert").bytes;
  3. export { assertBool, assertBytes };
  4. export { bytesToHex, bytesToHex as toHex, concatBytes, createView, utf8ToBytes } from "@noble/hashes/utils";
  5. export declare function bytesToUtf8(data: Uint8Array): string;
  6. export declare function hexToBytes(data: string): Uint8Array;
  7. export declare function equalsBytes(a: Uint8Array, b: Uint8Array): boolean;
  8. export declare function wrapHash(hash: (msg: Uint8Array) => Uint8Array): (msg: Uint8Array) => Uint8Array;
  9. export declare const crypto: {
  10. node?: any;
  11. web?: any;
  12. };