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
Built Distributions
Close
Hashes for py_bip39_bindings-0.1.5-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fc99c35cb6b9f13603485c42abb0290ea007c8c5d2e9d9658ae3804c7667ef0 |
|
MD5 | c51e0ca8a0973309184de836fb6cfea1 |
|
BLAKE2b-256 | c306c2268c606aabdee54adbed951adc2ccae9c8aeb4d21301bd592729a01a9f |
Close
Hashes for py_bip39_bindings-0.1.5-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63c5630f0733fc7eeb45d74fd2079c05e8cbe2b743e385b5ad2c86ea1d57b5b |
|
MD5 | ea9234324e3fd73d73e9755e7d610254 |
|
BLAKE2b-256 | 427007ec58c0a0e66afa8b7bfb9712c4b5214f86ad84276bccf55503400bdf77 |
Close
Hashes for py_bip39_bindings-0.1.5-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 763343c348526adedd559b41397d504a8e35136dafc2fb79e3443e84cd496bcd |
|
MD5 | 9d370397f65c0d6cbc8f9708b08c345b |
|
BLAKE2b-256 | 9353d19daaadeb5d5d593a1d328c28746bcc91370f718cf85b1b120e16d7f821 |
Close
Hashes for py_bip39_bindings-0.1.5-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa319de07922dfb7ad3053dd0c6089cc29ec692a8f43f1290cee0fe1134bd751 |
|
MD5 | 9a79678dbc2baabea172510f8a188805 |
|
BLAKE2b-256 | 3677b824b72234e9b854257a98aa72a4fe4ef389d4c4c78fd57c496ea07c3f2f |
Close
Hashes for py_bip39_bindings-0.1.5-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7a39c801bc62952953d66b32b69f2abf6c8c5a96b2d9aa3b866158fe59ac823 |
|
MD5 | c22db7e7a9096ed7c18eb1463920c943 |
|
BLAKE2b-256 | 272d7495dfebbe09c84fd97167beff8832f58d27cc879052cca07bc083eef08c |
Close
Hashes for py_bip39_bindings-0.1.5-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd49489023f384299fd728267a36c8ef168968c00ac98ed461831aa515b4871e |
|
MD5 | 1760ab10fc9082a72da3ec1ec8c8cd99 |
|
BLAKE2b-256 | 8b00f2c76ee0cc03911946c6acb9d4c07aa74a07e54c81011025192801a823e6 |
Close
Hashes for py_bip39_bindings-0.1.5-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8af4ac9ae96b2a65fe3ac4248f0d7c625d9ae54384681245fdb2c61f00615a4 |
|
MD5 | 2aad86545f09abae8193c19cd8f41fad |
|
BLAKE2b-256 | 0a0cfee326105a4e383368794b08249d7b1d515dfc9a7cf427c773a3cb525c57 |
Close
Hashes for py_bip39_bindings-0.1.5-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebba819af33c171628ce4240b3f145b0f5149e2c6c8066575022fe5697c00408 |
|
MD5 | a1343f361204840d53245b8e493584a0 |
|
BLAKE2b-256 | fe052b557475634270762bd23542133d210998e95174507ed1ed0f69a7729c05 |
Close
Hashes for py_bip39_bindings-0.1.5-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de122034cd2644518cf27a03d33f7fd73bbc144f40ace869fc197bf250817643 |
|
MD5 | 07fd0b86bb64eaa20f2581eef747bd77 |
|
BLAKE2b-256 | beffb9c5c33627a086857d459d222a63ca865ab6d91fcd7168040c15c8dfc5bc |
Close
Hashes for py_bip39_bindings-0.1.5-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff29307f451313e4648b3981ea2346d196cf6cf81f043549a874bafd0d4a4e39 |
|
MD5 | a2827a92dea561cf82921ebcf3fbf6f4 |
|
BLAKE2b-256 | 4a2032bb66744e52cf6e0e3017d6a7daffda9df2db271e2424d4bb7af3fc47a4 |
Close
Hashes for py_bip39_bindings-0.1.5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5265c36a03a9745c2fbd2da7dd28f7d711e886b223e02c8b8fe8d98d5e3fc153 |
|
MD5 | c80050e42bf04b840de48df627442291 |
|
BLAKE2b-256 | e57c6bf496908042cc22b47d9e5d0bb3e2f7440f8fdccc1e468eb7e95657279e |
Close
Hashes for py_bip39_bindings-0.1.5-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30c42daff81532dfaaa07d4b7463a964d5124d793a345ceb344189f8e4432cf9 |
|
MD5 | 18db7c4c882bcc91828bf1855153057e |
|
BLAKE2b-256 | 0d40994fe08e2e1ac0d3764b825a1894f99b499755a5c1ee60d5573269ff5571 |