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
Documentation
https://docs.rs/py-bip39-bindings/
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, 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
Built Distributions
Close
Hashes for py_bip39_bindings-0.1.6-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ceb867165d46b7f93761a43df2a13f9b7ec5276563bb11935e53c0ea9bb9bd9 |
|
MD5 | 293d81d410fbfb7cee87e87d6ff58bb6 |
|
BLAKE2b-256 | 820d7a6f5c36f3958a404435c70f8d31dcd9344af5bab7d8a02e67706ed1f649 |
Close
Hashes for py_bip39_bindings-0.1.6-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eebbe301cbcd691a4e23c331d5ecb23070837db87fe12cd9758bc51db0e7f52 |
|
MD5 | ba25648c317faa066f4f93b246236ac7 |
|
BLAKE2b-256 | 70e877546c1ac722d08aa1f0efe8efe5713c101ec22556f72f21fd176db1a61c |
Close
Hashes for py_bip39_bindings-0.1.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de1ccf9494b11323b1d4ffb74395d61809fc33deeafce53ceb830d5f9af35f00 |
|
MD5 | 4d999d0ba2e12d36e4cfcb4695b68760 |
|
BLAKE2b-256 | 31ddb522823931333c9024ece71fe2c22eb2142fcd88952f41ecca8bbe456cdd |
Close
Hashes for py_bip39_bindings-0.1.6-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6736092f4c5307d5647cd995b4c2b8fafe02a488365684cc99cfbdac36d6e85 |
|
MD5 | 779bd88872bf7872ba9f7e35d033561a |
|
BLAKE2b-256 | 1eefd419304c2416aed0736e9cc8abfc65d944ad1db874a7870042ff27b9c879 |
Close
Hashes for py_bip39_bindings-0.1.6-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abd4e9b92809185424b15f6197ffb46dede36bbce488bbf4992989a6a0c70446 |
|
MD5 | e084b17edce4bec4a9afdd6cfb62ed5b |
|
BLAKE2b-256 | 2cf96d3954842f37604d76c7597e7a1507def3fbca357f4899084045025f95f9 |
Close
Hashes for py_bip39_bindings-0.1.6-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb79dffd3f2719e248c703034cc8f8e574ae2491c257cbd01ebee56b68370f6 |
|
MD5 | 166995db62e6f3ad3345782c88194c50 |
|
BLAKE2b-256 | f62bb33e109b1ffe397bf785e8db24355e4437c609e3d7e4fb987e04b843f5d6 |
Close
Hashes for py_bip39_bindings-0.1.6-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 227a073b3f187b136316b3fe3ec995371f0392c858a9d26cedc8e681c69537ea |
|
MD5 | f5fdee2c6208d1ca4d7679239c5a4937 |
|
BLAKE2b-256 | dc1a6f304174f8bf2bbb26ad0b85c2b058fbeb4bf898d98314669fa7cb600207 |
Close
Hashes for py_bip39_bindings-0.1.6-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c9eeed71839b2ac5b5622216283ad9bc1e4edeaf9c770f9b7a9a2015bb6fd6b |
|
MD5 | f5ded6bb8a96870f9e457c711b3a08b9 |
|
BLAKE2b-256 | 13c0d6bc75d53ebfc9cafc094e96e15ffc7bf63179de7d555a2c4c25df138608 |
Close
Hashes for py_bip39_bindings-0.1.6-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80ac8bf3ca74943705a63789345a9f7a3fcb7f583c4deb5331c07b4ad1e7d88f |
|
MD5 | 2f293a57af9ab72900dff47c90660977 |
|
BLAKE2b-256 | 9f17c3dc9cbffe893b2480223d362d5d2e76e24c80c54c013d326239709cf723 |
Close
Hashes for py_bip39_bindings-0.1.6-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9964e874461a5e62b7b914c9b86fc1b1dd77a508075994aae91a15c42f89c2 |
|
MD5 | c07634aafaf38a02ab1be1aa7b7651cc |
|
BLAKE2b-256 | 51d882e9a97bb6821acbc18ed9f8135d5d88d18b543d24789bd68275a1879046 |
Close
Hashes for py_bip39_bindings-0.1.6-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141fafbdc312354bcd0fb398fd2b8d215bb51d89b2824c14d86ddc7b5b9f23e7 |
|
MD5 | 13856fd9a809bd493b750d9a1115d027 |
|
BLAKE2b-256 | f87381a4a14056e5ad3fc0107c82225328dfd233282a41a1b1433426f114ef32 |
Close
Hashes for py_bip39_bindings-0.1.6-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3eda5bc475f23b6a0053990943960ddc90349f21f8db87949ff5efa065eab72 |
|
MD5 | 6bee14e29d1fa6dd8e4b46690df48fbf |
|
BLAKE2b-256 | e612eb7323d832ed67fe0766293978154e38b49e6154949078ec8240a4a50a17 |
Close
Hashes for py_bip39_bindings-0.1.6-cp37-cp37m-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fb8058981bc641173931cabb9573322d95b84f0041c705b7fd902f93b84eeec |
|
MD5 | ba8b6cefe44898ee930e556195318327 |
|
BLAKE2b-256 | d15e921449f628da47a99ec1eaf247dbe346f3f922e7fc42cbe02bb098210427 |
Close
Hashes for py_bip39_bindings-0.1.6-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59793eb59fedaa111f49da60642e68beb6c92fee12a40012654d60f64e8f8cf6 |
|
MD5 | 47e87e473b020041ed4231d286173297 |
|
BLAKE2b-256 | 42268953643382f21674c040a57a69b889811cc8415060bd593088cf4d634473 |
Close
Hashes for py_bip39_bindings-0.1.6-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c7005fd64a3f34b453f140abf5bbfdb7fed0ea974ea3787a3c22b9f84d8bb15 |
|
MD5 | 5ed84b4929c2341ec56d4808d7fac83a |
|
BLAKE2b-256 | 122a1a22cc80eddfe3f2103ca4edbfc233ee70eb231424cfdd8d5c8f36129b24 |
Close
Hashes for py_bip39_bindings-0.1.6-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2796a133dce426e50dd3d91b3af3a172cef4e944d8afe7d0c00b14f7eb5a7f6 |
|
MD5 | 37f40bd460b9141f1d76cfdbd4a32c4f |
|
BLAKE2b-256 | c6b18cb435226e982b2f0e540de7cc44645fa4f35b7e8fbf5f31ed140bbec718 |
Close
Hashes for py_bip39_bindings-0.1.6-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6954a9757d516a1d565b953132bc82b0d25a485db875d83031416f172c90a42c |
|
MD5 | b276e00a67cd9cc84a0c4af1c2b88735 |
|
BLAKE2b-256 | e2172ef07d3b4c65b79ee8f4bdc692d3e7bbd6874b0783c6ed41c4a249002c3d |
Close
Hashes for py_bip39_bindings-0.1.6-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a653041dee1c8cad322b30d84f5714aa2ece2805eb91220104c2c90f39a6cf92 |
|
MD5 | 33e5bf3c2853494744e0cc5d9f697704 |
|
BLAKE2b-256 | 198be4402896d6b49a9e6608022d44e5de3664377c88a6e2b3710ef1de204a47 |
Close
Hashes for py_bip39_bindings-0.1.6-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8486b1548534b022d88506b62a97abb936a9f51973c83ce60d4401f472426260 |
|
MD5 | 6674f582c547d43a2f690a4f0655b9b9 |
|
BLAKE2b-256 | 990a4669bc1e153563f05e56d442db002a59682d521b4eb8e2152a5a4ac1c496 |
Close
Hashes for py_bip39_bindings-0.1.6-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dccd5516df07ac47c5fa3cf12c567a4d041a928ee775b5b5c121d73d64d3cc01 |
|
MD5 | 0cfe6f28fdc51ab2b833ecf87daac8a3 |
|
BLAKE2b-256 | b28400bb8302bd80d116efb426af65d4e618cc84e9b616559a641cbf84c94fe5 |
Close
Hashes for py_bip39_bindings-0.1.6-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef80e0a944d54af3165b28f6817942e5ddd92d8c9eca16d7e8275d19f539a636 |
|
MD5 | 41425424acb693a7848418c5f09eb13e |
|
BLAKE2b-256 | 62cc0807edc4ee5825c0534039dad7f95487382ae67cd253a0493cce08df4971 |