Crates.io | merklemountainrange |
lib.rs | merklemountainrange |
version | 0.0.1 |
source | src |
created_at | 2019-03-29 13:21:25.070761 |
updated_at | 2019-03-29 13:21:25.070761 |
description | A general Merkle Mountain Range implementation and API |
homepage | https://tari.com |
repository | https://github.com/tari-project/tari |
max_upload_size | |
id | 124548 |
size | 57,170 |
This crate is part of the Tari Cryptocurrency project.
The Merkle mountain range was invented by Peter Todd. More about them can be read here and here
A Merkle mountain range(MMR) is a binary tree where each parent is the concatenated hash of its two children. The leaves at the bottom of the MMR is the hashes of the data. The MMR allows easy to add and proof of existence inside of the tree. MMR always tries to have the largest possible single binary tree, so in effect it is possible to have more than one binary tree. Every time you have to get the merkle root (the single merkle proof of the whole MMR) you have the bag the peaks of the individual trees, or mountain peaks.