Skip to main content

Python bindings for tiny-bip39 RUST crate

Project description

py-bip39-bindings

Python bindings for the tiny-bip39 library: https://crates.io/crates/tiny-bip39

Reference to Reference to https://github.com/LocalCoinSwap/kusama-reference-implementation/tree/improve-trading-tests/bindings for the initial work

Installation

Install from PyPI

pip install py-bip39-bindings

Compile for local development

pip install -r requirements.txt
maturin develop

Build wheelhouses

pip install -r requirements.txt

# Build local OS wheelhouse
maturin build

# Build manylinux1 wheelhouse
docker build . --tag polkasource/maturin
docker run --rm -i -v $(pwd):/io polkasource/maturin build

Examples

import binascii
from bip39 import bip39_to_mini_secret, bip39_generate, ext_bip39_validate

mnemonic = bip39_generate(12)
bip39_validate(mnemonic)

seed_array = bip39_to_mini_secret(mnemonic, "")
seed_hex = binascii.hexlify(bytearray(seed_array)).decode("ascii")

License

https://github.com/polkascan/py-bip39-bindings/blob/master/LICENSE

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

py_bip39_bindings-0.1.4.tar.gz (15.1 kB view details)

Uploaded Source

Built Distributions

py_bip39_bindings-0.1.4-cp38-none-win_amd64.whl (168.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

py_bip39_bindings-0.1.4-cp38-cp38-manylinux1_x86_64.whl (265.3 kB view details)

Uploaded CPython 3.8

py_bip39_bindings-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl (230.1 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

py_bip39_bindings-0.1.4-cp37-none-win_amd64.whl (168.8 kB view details)

Uploaded CPython 3.7 Windows x86-64

py_bip39_bindings-0.1.4-cp37-cp37m-manylinux1_x86_64.whl (265.3 kB view details)

Uploaded CPython 3.7m

py_bip39_bindings-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl (230.1 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

py_bip39_bindings-0.1.4-cp36-none-win_amd64.whl (169.2 kB view details)

Uploaded CPython 3.6 Windows x86-64

py_bip39_bindings-0.1.4-cp36-cp36m-manylinux1_x86_64.whl (265.5 kB view details)

Uploaded CPython 3.6m

py_bip39_bindings-0.1.4-cp36-cp36m-macosx_10_7_x86_64.whl (230.4 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

py_bip39_bindings-0.1.4-cp35-none-win_amd64.whl (169.1 kB view details)

Uploaded CPython 3.5 Windows x86-64

py_bip39_bindings-0.1.4-cp35-cp35m-manylinux1_x86_64.whl (265.3 kB view details)

Uploaded CPython 3.5m

py_bip39_bindings-0.1.4-cp35-cp35m-macosx_10_7_x86_64.whl (230.3 kB view details)

Uploaded CPython 3.5m macOS 10.7+ x86-64

File details

Details for the file py_bip39_bindings-0.1.4.tar.gz.

File metadata

  • Download URL: py_bip39_bindings-0.1.4.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.8.1

File hashes

Hashes for py_bip39_bindings-0.1.4.tar.gz
Algorithm Hash digest
SHA256 67c904d2abe9da3faf4f98e885330facca59f555a4e817202fa8dab11ef21000
MD5 3a15736f75ff2d0bb526961098c0b732
BLAKE2b-256 7457f8c63937e4e2dc2dfd3aa2a3b636fac2f43995c364fa187ed50c1969a23e

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 7159be0e2a0f44d3566fbb58eac17a17e0e1c34eb71281301a6d9f5fc0738d2f
MD5 b7e607ac35f35ba87953ea0cb2388582
BLAKE2b-256 e6c53352e3dcc84e4cf703a25bf5172fc50d3671d3ebb87d06ec08c534a56eaf

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp38-cp38-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6cf3d2b123f924cde803faffa6d1e3304abfe84d5583c4d1a2877d46df89cbd2
MD5 df2d5fc34309d0252ad0f9d998dce914
BLAKE2b-256 9bc43fbd816df05967168041e61fd013cd2220d4e5047b665420180a2fee24e7

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ef349ba4c088231079e129eb8b2206eb998a31bda8899bcab8fc45531dce5300
MD5 d4c511f81fa27181100a1190d8ed8a68
BLAKE2b-256 2dae8222c5f8a7a1c28bbc0ff2f218fa3a8e3b5ac83e5cd4b11de9bd804821ac

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 2f111c4bf55b93e9cf36de8c0ceb8800c871f2629b254011564fe554b00cd876
MD5 b3dff2a1b3bcae6ae20441e0398d4932
BLAKE2b-256 29dd41435abb1ca26e09647748da2515fa925d34797fc824f901c413457db688

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f36488942a3a2ec956890d7ac1b20ec0caeabc35c1a4ab0dad629d2fe4e2186c
MD5 62e129096b8e07132cf927b44ab7cdfd
BLAKE2b-256 96b870ebbd5bf0b07dff9336982217762873507c353325fd3b96b8f0eac5d899

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 65c98434b30c4b8688dff76e5a5868b354ba6bb8753deefd4a9e095709f53639
MD5 f1de5b3fba8021b22bdfc7c354d648b4
BLAKE2b-256 dcea10567c7974bbe653f2504a00097d9c5a352826a6561814662857e88d7888

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp36-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 614a4004ac6dd95701e34ff8a9ea1287f74274a44c7983182bf713832129a125
MD5 a790b4de30e79511f71971d56d263586
BLAKE2b-256 b30a4f6662590c3cd35a2de7cf0506f072041d3c995940195c3f6579e31ae8d8

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1b065aab6f839cb818848c4e9c34c34219be43fd8521ffe45240b5e4c62e4757
MD5 21c719e06823385c665666653a6f4a58
BLAKE2b-256 94aa27bd5d9fecd6ccd80c08b9a8c5268c1373247b2d8aa334cfbc560a4b9081

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 45bfe45fe899e4fc1302f462a35a3b078102de16e34ae88e4bea144d9e98d07b
MD5 bd9c09d2ad738333674850254afb1d52
BLAKE2b-256 98f0df74326afb772c2fca29ab2f1e5bba941b6b8640d1424bacf60c6a81911a

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 77a96cc302e6e8010499a3ca9677b826e0d56fca4b6052e687535df84b806d17
MD5 2b48d4de2bacc60acefb25db273a9105
BLAKE2b-256 a550bc5ec2c1c40138e12b1dab3d47cb4669bef7bec5f4154cceb7a25e75927f

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5bdc93a2e1ad6027877c577624dee596f0368b7df0c70d0dfd113595f449319e
MD5 ede79e81792fa9d749f5202cfe3c8814
BLAKE2b-256 970566f53224b491df178b5c1d69f72ab8c761d5cfa13ac4f7531deb60f5dd75

See more details on using hashes here.

Provenance

File details

Details for the file py_bip39_bindings-0.1.4-cp35-cp35m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.4-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 57bbb34b8348612c907ec5a70a0d93c0e121fada274f821526d0cb503020aa3e
MD5 4907ac59df16f5a719f04ce2c5956f38
BLAKE2b-256 22b61ce32f3f0cac59629d6f27972a17ab6e8717ced89128eb060a603a33f112

See more details on using hashes here.

Provenance

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