@helium/crypto
Version:
Cryptography utilities including mnemonics, keypairs and base58-check encoding
10 lines • 666 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
export declare const randomBytes: (n: number) => Promise<Buffer>;
export declare const sha256: (buffer: Buffer | string) => Buffer;
export declare const lpad: (str: string | any[], padString: string, length: number) => string | any[];
export declare const bytesToBinary: (bytes: any[]) => string;
export declare const binaryToByte: (bin: string) => number;
export declare const deriveChecksumBits: (entropyBuffer: Buffer | string) => string;
export declare const verify: (signature: Uint8Array, message: string | Uint8Array, publicKey: Uint8Array) => Promise<boolean>;
//# sourceMappingURL=utils.d.ts.map