Fix: recovery phrase (#201)

This commit is contained in:
Nicolas Brugneaux
2025-02-21 22:49:38 +01:00
committed by GitHub
parent c2d90fb5ad
commit 2155bf95a5
16 changed files with 379 additions and 150 deletions

26
app/src/types/mnemonic.ts Normal file
View File

@@ -0,0 +1,26 @@
export interface Mnemonic {
/**
* The mnemonic phrase of 12, 15, 18, 21 or 24 words.
*
* Use the [[wordlist]] ``split`` method to get the individual words.
*/
readonly phrase: string;
/**
* The password used for this mnemonic. If no password is used this
* is the empty string (i.e. ``""``) as per the specification.
*/
readonly password: string;
/**
* The wordlist for this mnemonic.
*/
readonly wordlist: {
readonly locale: string;
};
/**
* The underlying entropy which the mnemonic encodes.
*/
readonly entropy: string;
}