Python-3 compatible Merkle tree implementation.
#### Current Stable Version
```
0.1.3
```
# Install
### Pip
```
pip install nr-merkletree
```
### Development Installation
* Clone the project.
* Install in Anaconda3 environment
```
$ conda env create --force -f dev_environment.yml
$ source activate nr-merkletree
$ pip install -e .
```
# Test
To run the tests:
```
make test
```
# Usage
```python
from nr_merkletree import MerkleTree
from pprint import pprint
# A list of bytes data
data_chunks = [b'0', b'1', b'2', b'3', b'4']
# Create merkle_tree
merkle_tree = MerkleTree(data_chunks)
# Print out Merkle Tree
pprint(merkle_tree.tree.to_dict())
```
# Examples
```
$ python examples/simple_merkle_tree.py
```
# License
MIT
Metadata
Release files for nr-merkletree 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nr-merkletree-0.1.3.tar.gz | 4.2 kB | Without provenance | Details for nr-merkletree-0.1.3.tar.gz |
Release files / nr-merkletree-0.1.3.tar.gz
| Download URL | nr-merkletree-0.1.3.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a586cfb05721f5185ce5fd52e5c84932c50eef615e1bc53a8202d9695d9dcd13
|
|
BLAKE2b-256 checksum How to use checksums |
e6e2aa6b61fbadb3fddc91b75b79790bc90f02c00b8ad370d9c02f092221f224
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nr-merkletree 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.