mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
Fix: recovery phrase (#201)
This commit is contained in:
committed by
GitHub
parent
c2d90fb5ad
commit
2155bf95a5
26
app/src/types/mnemonic.ts
Normal file
26
app/src/types/mnemonic.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user