참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.A Mnemonic wraps all properties required to compute BIP-39 seeds and convert between phrases and entropy.
Constructors
new Mnemonic()
Parameters
Returns
Mnemonic
Source
wallet/mnemonic.ts:175Properties
Methods
computeSeed()
Returns
string
The seed.
Source
wallet/mnemonic.ts:191entropyToPhrase()
mnemonic.
Parameters
Returns
string
The mnemonic phrase.
Source
wallet/mnemonic.ts:248fromEntropy()
entropy.
The default password is the empty string and the default wordlist is the [English wordlist.
Parameters
Returns
Mnemonic
The new Mnemonic object.
Source
wallet/mnemonic.ts:229fromPhrase()
phrase.
The default password is the empty string and the default wordlist is the English wordlist.
Parameters
Returns
Mnemonic
The new Mnemonic object.
Source
wallet/mnemonic.ts:206isValidMnemonic()
phrase is a valid BIP-39 phrase.
This checks all the provided words belong to the wordlist, that the length is valid and the checksum is
correct.
Parameters
Returns
boolean
True if the phrase is valid.
Throws
If the phrase is invalid.Source
wallet/mnemonic.ts:275phraseToEntropy()
phrase.
Parameters
Returns
string
The entropy.
