bitpay-sdk
Version:
Complete version of the NodeJS library for the new cryptographically secure BitPay API
12 lines (11 loc) • 494 B
TypeScript
import * as elliptic from 'elliptic';
export declare class KeyUtils {
generate_keypair(): elliptic.ec.KeyPair;
load_keypair(buf: Buffer | string): elliptic.ec.KeyPair;
get_sin_from_key(kp: elliptic.ec.KeyPair): string;
signOrig(data: string, kp: elliptic.ec.KeyPair): Buffer;
sign(data: string, privkey: elliptic.ec.KeyPair): string;
getPublicKeyFromPrivateKey(privkey: any): string;
private get_version_from_compressed_key;
private get_checksum_from_version;
}