Releases: btclib-org/btclib-mnemonics
Releases · btclib-org/btclib-mnemonics
Release list
v2026.9.29
The first release of btclib-mnemonics: there is no earlier version of
it to upgrade from.
Coming from btclib_wallet.mnemonic, import the modules from
btclib_mnemonics instead: bip39, dispatch, electrum, entropy,
mnemonic and slip39 keep their names. What does not carry over, one
name at a time:
btclib_wallet.mnemonic's own names --WORDLISTS,BinStr,
Entropy,Mnemonic,indexes_from_mnemonic,
mnemonic_from_indexes,normalize_mnemonicand the three public
entropy functions it re-exported,bin_str_entropy_from_random,
bin_str_entropy_from_rollsandcollect_rolls-- are not
re-exported bybtclib_mnemonics, whose root publishes its modules
only: import each from the module that defines it,mnemonicor
entropy. The other seven entropy functions it re-exported are
private, each named below.bip39.mxprv_from_mnemonicis not here: derive the master key
frombip39.seed_from_mnemonic's seed.electrum.mxprv_from_mnemonicis not here: derive the master key
fromelectrum.seed_from_mnemonic's seed, a function new in this
package, as the versionelectrum.version_from_mnemonicanswers asks.electrum.old_master_pub_key_from_mnemonicis not here: take the
public key ofelectrum.old_master_prv_key_from_mnemonic's private key,
uncompressed and without its04prefix, the 128 hexadecimal digits an
Electrum wallet file holds.slip39.mxprv_from_mnemonicsis not here: derive the master key
fromslip39.master_secret_from_mnemonics's master secret.entropy.bin_str_entropy_from_bytesis private: pass the bytes to
the scheme'smnemonic_from_entropy, which reads them.entropy.bin_str_entropy_from_entropyis private, for the same
reason.entropy.bin_str_entropy_from_intis private, for the same reason.entropy.bin_str_entropy_from_stris private: pass the binary
string itself.entropy.bin_str_entropy_from_wordlist_indexesis private: use
mnemonic.mnemonic_from_indexesand the scheme's
entropy_from_mnemonic.entropy.bytes_entropy_from_stris private:int(entropy, 2).to_bytes(len(entropy) // 8, "big")is the conversion.entropy.wordlist_indexes_from_bin_str_entropyis private: use the
scheme'smnemonic_from_entropyandmnemonic.indexes_from_mnemonic.- The exceptions are
BTClibMnemonicsException,
BTClibMnemonicsTypeErrorandBTClibMnemonicsValueError, not
btclib's; each of the last two is also aTypeErroror aValueError.