Metadata-Version: 2.1
Name: py-bip39-bindings
Version: 0.1.7
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Summary: Python bindings for tiny-bip39 RUST crate
Home-Page: https://github.com/polkascan/py-bip39-bindings
Author: Stichting Polkascan (Polkascan Foundation)
Maintainer: Stichting Polkascan (Polkascan Foundation)
Maintainer-Email: legal@polkascan.org
License: Apache-2.0
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# 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

```shell script
pip install py-bip39-bindings
```

### Compile for local development

```shell script
pip install -r requirements.txt
maturin develop
```
### Build wheelhouses
```shell script
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

```python
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

