mnemonic-keyring
Version:
Mnemonic Keyring for secp256k1 and ed25519
15 lines • 687 B
TypeScript
import { KeyPair, KeyringOptions, MasterKey } from './types';
export declare class MnemonicKeyring {
mnemonic: string;
masterKey: MasterKey;
static generateMnemonic(length?: number): string;
static deriveMasterKey(mnemonic: string): Promise<MasterKey>;
static init(opts: KeyringOptions): Promise<MnemonicKeyring>;
constructor(mnemonic: string, masterKey: MasterKey);
getPrivateKey(derivationPath: string): string;
getPublicKey(derivationPath: string, ellipticCurve?: string): string;
getKeyPair(derivationPath: string, ellipticCurve?: string): KeyPair;
private derivePrivateKey;
private derivePublicKey;
}
//# sourceMappingURL=keyring.d.ts.map