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
Release history Release notifications | RSS feed
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 hashes)
Built Distributions
Close
Hashes for py_bip39_bindings-0.1.4-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7159be0e2a0f44d3566fbb58eac17a17e0e1c34eb71281301a6d9f5fc0738d2f |
|
MD5 | b7e607ac35f35ba87953ea0cb2388582 |
|
BLAKE2b-256 | e6c53352e3dcc84e4cf703a25bf5172fc50d3671d3ebb87d06ec08c534a56eaf |
Close
Hashes for py_bip39_bindings-0.1.4-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cf3d2b123f924cde803faffa6d1e3304abfe84d5583c4d1a2877d46df89cbd2 |
|
MD5 | df2d5fc34309d0252ad0f9d998dce914 |
|
BLAKE2b-256 | 9bc43fbd816df05967168041e61fd013cd2220d4e5047b665420180a2fee24e7 |
Close
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 |
Close
Hashes for py_bip39_bindings-0.1.4-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f111c4bf55b93e9cf36de8c0ceb8800c871f2629b254011564fe554b00cd876 |
|
MD5 | b3dff2a1b3bcae6ae20441e0398d4932 |
|
BLAKE2b-256 | 29dd41435abb1ca26e09647748da2515fa925d34797fc824f901c413457db688 |
Close
Hashes for py_bip39_bindings-0.1.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f36488942a3a2ec956890d7ac1b20ec0caeabc35c1a4ab0dad629d2fe4e2186c |
|
MD5 | 62e129096b8e07132cf927b44ab7cdfd |
|
BLAKE2b-256 | 96b870ebbd5bf0b07dff9336982217762873507c353325fd3b96b8f0eac5d899 |
Close
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 |
Close
Hashes for py_bip39_bindings-0.1.4-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614a4004ac6dd95701e34ff8a9ea1287f74274a44c7983182bf713832129a125 |
|
MD5 | a790b4de30e79511f71971d56d263586 |
|
BLAKE2b-256 | b30a4f6662590c3cd35a2de7cf0506f072041d3c995940195c3f6579e31ae8d8 |
Close
Hashes for py_bip39_bindings-0.1.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b065aab6f839cb818848c4e9c34c34219be43fd8521ffe45240b5e4c62e4757 |
|
MD5 | 21c719e06823385c665666653a6f4a58 |
|
BLAKE2b-256 | 94aa27bd5d9fecd6ccd80c08b9a8c5268c1373247b2d8aa334cfbc560a4b9081 |
Close
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 |
Close
Hashes for py_bip39_bindings-0.1.4-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77a96cc302e6e8010499a3ca9677b826e0d56fca4b6052e687535df84b806d17 |
|
MD5 | 2b48d4de2bacc60acefb25db273a9105 |
|
BLAKE2b-256 | a550bc5ec2c1c40138e12b1dab3d47cb4669bef7bec5f4154cceb7a25e75927f |
Close
Hashes for py_bip39_bindings-0.1.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bdc93a2e1ad6027877c577624dee596f0368b7df0c70d0dfd113595f449319e |
|
MD5 | ede79e81792fa9d749f5202cfe3c8814 |
|
BLAKE2b-256 | 970566f53224b491df178b5c1d69f72ab8c761d5cfa13ac4f7531deb60f5dd75 |
Close
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 |