View Source BitcoinLib.Key.HD.MnemonicSeed.Wordlist (BitcoinLib v0.2.0-pre1)
A list of all the words that can be contained in a private key seed
Source: https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/english.txt
Link to this section Summary
Functions
Get a list of all words in the wordlist
Convert a word into an indice from the wordlist
Convert a list of words into a list of indices from the wordlist
Get a single word from the wordlist by index
Convert a list of indices into words from the wordlist
Link to this section Functions
@spec all() :: [binary()]
Get a list of all words in the wordlist
examples
Examples
iex> BitcoinLib.Key.HD.MnemonicSeed.Wordlist.all ...> |> Enum.count() 2048
Convert a word into an indice from the wordlist
examples
Examples
iex> BitcoinLib.Key.HD.MnemonicSeed.Wordlist.get_indice("absurd")
{:found, 8, "absurd"}
Convert a list of words into a list of indices from the wordlist
examples
Examples
iex> ["absurd", "able", "absent"] ...> |> BitcoinLib.Key.HD.MnemonicSeed.Wordlist.get_indices() [8, 2, 5]
Get a single word from the wordlist by index
examples
Examples
iex> BitcoinLib.Key.HD.MnemonicSeed.Wordlist.get_word(8) "absurd"
Convert a list of indices into words from the wordlist
examples
Examples
iex> BitcoinLib.Key.HD.MnemonicSeed.Wordlist.get_words([8, 2, 5]) ["absurd", "able", "absent"]