UNPKG

@ecash/lib

Version:

Library for eCash transaction building

14 lines 698 B
/** Word list to generate a seed phrase. */ export interface WordList { /** Word separator of the seed phrase (Japanese has \u3000 as space) */ separator: string; /** Words in the word list to generate a mnemonic phrase */ words: string[]; } /** Derive the mnemonic from entropy */ export declare function entropyToMnemonic(entropy: Uint8Array, wordlist: WordList): string; /** Recover the entropy from the mnemonic */ export declare function mnemonicToEntropy(phrase: string, wordlist: string[]): Uint8Array; /** Derive the seed bytes from the mnemonic */ export declare function mnemonicToSeed(phrase: string, password?: string): Uint8Array; //# sourceMappingURL=mnemonic.d.ts.map