注意: 此页面尚未翻译成中文。以下内容为英文原版。A Wordlist represents a collection of language-specific words used to encode and devoce BIP-39 encoded data by mapping words to 11-bit values and vice versa.
Parameter | Type |
---|---|
locale | string |
Wordlist
Parameter | Type |
---|---|
index | number |
string
Parameter | Type |
---|---|
word | string |
number
words
into a phrase.
By default, words
are joined by a single space.
Parameter | Type | Description |
---|---|---|
words | string [] | The words to join. |
string
The joined phrase.
phrase
into individual words.
By default, phrase
is split using any sequences of white-space as defined by regular expressions (i.e.
/\s+/
).
Parameter | Type | Description |
---|---|---|
phrase | string | The phrase to split. |
string
[]
The split words in the phrase.