Skip to main content

A self-contained and simple BIP39 implementation in Python

Project description

BIP39

This aims to be a simple and well tested BIP39 implementation in Python, which intentionally only supports the core properties of the specification i.e.,:

  • encode data to mnemonic
  • decode mnemonic phrase
  • convert mnemonic phrase to seed value (which than can be further process e.g., in BIP32)

Command line usage

You can also used the basic features on the command line::

$ ./bip39.py encode "00000000000000000000000000000000" 
abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about
$ python -m bip39 encode "00000000000000000000000000000000" # or like so
abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about
$ ./bip39.py decode "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
00000000000000000000000000000000
$ ./bip39.py toseed "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about" "TREZOR"
c55257c360c07c72029aebc1b53c05ed0362ada38ead3e3e9efa3708e53495531f09a6987599d18264c1e1c92f2cf141630c7a3c4ab7c81b2f001698e746

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bip39-0.0.2.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

bip39-0.0.2-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

Details for the file bip39-0.0.2.tar.gz.

File metadata

  • Download URL: bip39-0.0.2.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for bip39-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3e13b3e7b54f456d8ea07113b99344d148062da8e707ba40fc42ee13df68a7a2
MD5 44e28381830d2865bdf0a2ffacb24331
BLAKE2b-256 48b6e65017ce265ebd2f06bd73ce5374842e8a169d3bcec8d0e94e01301bd825

See more details on using hashes here.

File details

Details for the file bip39-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: bip39-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 50.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for bip39-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c07de276df96ee3258ceaba5860815f4c749289b5c7c1632cf5f12b3516f0629
MD5 caf0add7c62124292fe765075bc076bc
BLAKE2b-256 df41182dd011be7d9a5498fc909f475b583c162aa771709e3f9aa4feaaa4ffaa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page