UNPKG

@stricahq/bip32ed25519

Version:

Pure javascript implementation of Bip32Ed25519, used for Cardano blockchain key pair.

12 lines (11 loc) 354 B
/// <reference types="node" /> import PublicKey from "./PublicKey"; export default class PrivateKey { private privKey; constructor(privKey: Buffer); static fromSecretKey(secretKey: Buffer): PrivateKey; toBytes(): Buffer; toPublicKey(): PublicKey; sign(data: Buffer): Buffer; verify(signature: Buffer, message: Buffer): any; }