Skip to main content
# nr-merkletree
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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nr-merkletree-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file nr-merkletree-0.1.3.tar.gz.

File metadata

  • Download URL: nr-merkletree-0.1.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nr-merkletree-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a586cfb05721f5185ce5fd52e5c84932c50eef615e1bc53a8202d9695d9dcd13
MD5 7fb39df183c6f15be78e9bdd0f57dcd0
BLAKE2b-256 e6e2aa6b61fbadb3fddc91b75b79790bc90f02c00b8ad370d9c02f092221f224

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 file

0.1.2

1 file

0.1.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page