Module wordlists

Module wordlists 

Source
Expand description

Built-in word lists for word-based encoding.

Currently includes:

  • BIP-39 English (2048 words)
  • EFF Long (7776 words)
  • EFF Short 1 (1296 words)
  • EFF Short 2 (1296 words)
  • Diceware (7776 words)
  • PGP Even (256 words, 2-syllable)
  • PGP Odd (256 words, 3-syllable)

Constants§

BIP39_ENGLISH
The BIP-39 English word list (2048 words). Used for cryptocurrency seed phrases. Each word encodes 11 bits.
DICEWARE
The original Diceware word list (7776 words). Classic passphrase generation list by Arnold Reinhold.
EFF_LONG
The EFF Long word list (7776 words). Improved diceware list with longer, more memorable words.
EFF_SHORT1
The EFF Short word list #1 (1296 words). Shorter words, 4 dice rolls per word.
EFF_SHORT2
The EFF Short word list #2 (1296 words). Longer memorable words, 4 dice rolls per word.
PGP_EVEN
PGP word list - even positions (256 words, 2-syllable). Used for fingerprint verification.
PGP_ODD
PGP word list - odd positions (256 words, 3-syllable). Used for fingerprint verification.

Functions§

bip39_english
Creates a WordDictionary from the built-in BIP-39 English word list.
diceware
Creates a WordDictionary from the Diceware word list (7776 words).
eff_long
Creates a WordDictionary from the EFF Long word list (7776 words).
eff_short1
Creates a WordDictionary from the EFF Short word list #1 (1296 words).
eff_short2
Creates a WordDictionary from the EFF Short word list #2 (1296 words).
pgp_even
Creates a WordDictionary from the PGP even (2-syllable) word list (256 words).
pgp_odd
Creates a WordDictionary from the PGP odd (3-syllable) word list (256 words).