nanocurrency
Version:
A toolkit for the Nano cryptocurrency, allowing you to derive keys, generate seeds, hashes, signatures, proofs of work and blocks.
7 lines (6 loc) • 317 B
TypeScript
/** @hidden */
export declare function derivePublicFromSecret(sk: Uint8Array): Uint8Array;
/** @hidden */
export declare function signDetached(msg: Uint8Array, secretKey: Uint8Array): Uint8Array;
/** @hidden */
export declare function verifyDetached(msg: Uint8Array, sig: Uint8Array, publicKey: Uint8Array): boolean;