Crates.io | tari_mmr |
lib.rs | tari_mmr |
version | 1.0.0-rc.5 |
source | src |
created_at | 2019-09-02 08:29:47.581219 |
updated_at | 2024-02-09 14:25:36.992549 |
description | A Merkle Mountain Range implementation |
homepage | |
repository | https://github.com/tari-project/tari |
max_upload_size | |
id | 161536 |
size | 232,607 |
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.