@libp2p/crypto
Version:
Crypto primitives for libp2p
10 lines • 465 B
TypeScript
import type { Uint8ArrayList } from 'uint8arraylist';
/**
* Hash and sign message with private key
*/
export declare function hashAndSign(key: Uint8Array, msg: Uint8Array | Uint8ArrayList): Uint8Array | Promise<Uint8Array>;
/**
* Hash message and verify signature with public key
*/
export declare function hashAndVerify(key: Uint8Array, sig: Uint8Array, msg: Uint8Array | Uint8ArrayList): boolean | Promise<boolean>;
//# sourceMappingURL=index.browser.d.ts.map