UNPKG

@stricahq/bip32ed25519

Version:

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

15 lines (14 loc) 522 B
/// <reference types="node" /> import Bip32PublicKey from "./Bip32PublicKey"; import PrivateKey from "./PrivateKey"; export default class Bip32PrivateKey { protected xprv: Buffer; constructor(xprv: Buffer); static fromEntropy(entropy: Buffer): Promise<Bip32PrivateKey>; derive(index: number): Bip32PrivateKey; deriveHardened(index: number): Bip32PrivateKey; derivePath(path: string): Bip32PrivateKey; toBip32PublicKey(): Bip32PublicKey; toBytes(): Buffer; toPrivateKey(): PrivateKey; }