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)
ext_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.3.tar.gz (15.1 kB view details)

Uploaded Source

Built Distributions

py_bip39_bindings-0.1.3-cp38-cp38-manylinux1_x86_64.whl (265.4 kB view details)

Uploaded CPython 3.8

py_bip39_bindings-0.1.3-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.3-cp37-cp37m-manylinux1_x86_64.whl (265.4 kB view details)

Uploaded CPython 3.7m

py_bip39_bindings-0.1.3-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.3-cp36-cp36m-manylinux1_x86_64.whl (265.5 kB view details)

Uploaded CPython 3.6m

py_bip39_bindings-0.1.3-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.3-cp35-cp35m-manylinux1_x86_64.whl (265.3 kB view details)

Uploaded CPython 3.5m

py_bip39_bindings-0.1.3-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.3.tar.gz.

File metadata

  • Download URL: py_bip39_bindings-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b68bd0d1271d06f3144a70f1538ad31ac710a2cb5128657fe1fa4d7e56427360
MD5 9f6d96f68cef4122cf23e9bb11bcd867
BLAKE2b-256 efb3aec5182fd06e76651757222e57825236372e75a7f1cbcd29c3a8965df542

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.3-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 46afb4b7a6db089d420c63fa8de20f0118f7ff4b9ee452f9434c2cb19ae8eb08
MD5 f41819050f5d8a5b42481dcac5d4a97d
BLAKE2b-256 1065d159152ca5e1d985bde614e4de99da0dafaace98e10dc5d102d7ef7aa3d5

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e1454e8d00f457b67cb342f07205f9c6489ff96f5f582ff5b9cb9ffb58c10a03
MD5 df80c750d78f312e858f77409b39f5da
BLAKE2b-256 525a057bffd032853c300f42ddb79bfe8ed5a93cd198fa1d17de3e0659c12742

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7fabd60d8b6caec53fa4793968c3369ba298fb20251a768f2baee074bb051048
MD5 67e1b8e0cea7fd56c53c06fdda33b71b
BLAKE2b-256 2959a4a704b4e749e2a4b2f7daab994c53c7b637f9eabdb04a143875002c2e05

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e2780a77af797c17d73cb1ca0976a1fab7617984fe26d79705548d9b74510cf9
MD5 c4b021f5acd015f2448631e0db70f591
BLAKE2b-256 02d030b7766c166ba612b4a521e9c34e6f062c0d4d887dbb695630f0e3509a5b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3ad63720bd983ba643abe7ab0526e0ce2c4f52f708337badb0eb2f5d5ba930ad
MD5 37f9f7c9771c63ba312df2cd743deb1b
BLAKE2b-256 93526f6d5668789dc7d068272b8996e685617fe980f151279d5f87b6661f9e41

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.3-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 16c6f0b5fa59801183e9255cd378f4728cd77ac2084156c1056c2f6d19bbdd6a
MD5 7f8405847bc90144e6c59e125fc0841e
BLAKE2b-256 76cfba03ab6885957f7e20baa86b42802ba0311345969ce280a5cc23714a1538

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 35b10024fabb1da6479206d2218f56860dd81b17290fd1ba2147f71c3cc5523a
MD5 b38f5f17ee514b0c0806fe4caa18ad88
BLAKE2b-256 d075b5f0974f930796141f8516b4c3dfed3be4d60f3e852e3db149993f7f583e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for py_bip39_bindings-0.1.3-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 5dcc7d01cf9b665e0d5d7585ab4331361b3d8c5098560c3aa3ae48875485dbf9
MD5 4804843564de026b014b9d517ba2ffa3
BLAKE2b-256 299e048f04f4c67737b846423d9310921d6060613828232c1c6e155d28a2cb28

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