mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-08 04:11:08 +03:00
Clarification on range element count and parent insertion
This commit is contained in:
parent
8f4dbfa540
commit
922b04608f
1 changed files with 4 additions and 4 deletions
|
@ -6,11 +6,11 @@ Merkle Mountain Ranges [1] are an alternative to Merkle trees [2]. While the
|
||||||
latter relies on perfectly balanced binary trees, the former can be seen
|
latter relies on perfectly balanced binary trees, the former can be seen
|
||||||
either as list of perfectly balance binary trees or a single binary tree that
|
either as list of perfectly balance binary trees or a single binary tree that
|
||||||
would have been truncated from the top right. A Merkle Mountain Range (MMR) is
|
would have been truncated from the top right. A Merkle Mountain Range (MMR) is
|
||||||
strictly append-only, elements are added from the left to the right and
|
strictly append-only: elements are added from the left to the right, adding a
|
||||||
the range fills up accordingly.
|
parent as soon as 2 children exist, fillung up the range accordingly.
|
||||||
|
|
||||||
This illustrates a range of 19 elements, where each node is annotated with
|
This illustrates a range with 11 inserted leaves and total size 19, where each
|
||||||
its order of insertion.
|
node is annotated with its order of insertion.
|
||||||
|
|
||||||
```
|
```
|
||||||
Height
|
Height
|
||||||
|
|
Loading…
Reference in a new issue