ethers.js/packages/wallet/lib/mnemonic.d.ts

16 lines
910 B
TypeScript
Raw Permalink Normal View History

2022-04-11 17:14:19 -04:00
import type { BytesLike } from "@ethersproject/logger";
import type { Wordlist } from "@ethersproject/wordlists";
export declare class Mnemonic {
readonly phrase: string;
readonly password: string;
readonly wordlist: Wordlist;
readonly entropy: string;
constructor(guard: any, entropy: string, phrase: string, password?: null | string, wordlist?: null | Wordlist);
computeSeed(): string;
static fromPhrase(phrase: string, password?: null | string, wordlist?: null | Wordlist): Mnemonic;
static fromEntropy(_entropy: BytesLike, password?: null | string, wordlist?: null | Wordlist): Mnemonic;
static entropyToPhrase(_entropy: BytesLike, wordlist?: null | Wordlist): string;
static phraseToEntropy(phrase: string, wordlist?: null | Wordlist): string;
static isValidMnemonic(phrase: string, wordlist?: null | Wordlist): boolean;
}
//# sourceMappingURL=mnemonic.d.ts.map