lotus-sdk
Version:
Central repository for several classes of tools for integrating with, and building for, the Lotusia ecosystem
23 lines • 1.03 kB
TypeScript
import { HDPrivateKey } from '../hdprivatekey.js';
import { Network } from '../networks.js';
export declare class Mnemonic {
readonly wordlist: string[];
readonly phrase: string;
constructor(data?: Buffer | string | number | string[], wordlist?: string[]);
static Words: {
ENGLISH: string[];
};
static isValid(mnemonic: string, wordlist?: string[]): boolean;
static _belongsToWordlist(mnemonic: string, wordlist: string[]): boolean;
static _getDictionary(mnemonic?: string): string[] | undefined;
toSeed(passphrase?: string): Buffer;
static fromSeed(seed: Buffer, wordlist?: string[]): Mnemonic;
toHDPrivateKey(passphrase?: string, network?: string | Network): HDPrivateKey;
toString(): string;
inspect(): string;
static _mnemonic(ENT: number, wordlist: string[]): string;
static _entropy2mnemonic(entropy: Buffer, wordlist: string[]): string;
static _entropyChecksum(entropy: Buffer): string;
}
export default Mnemonic;
//# sourceMappingURL=mnemonic.d.ts.map