frisitano
0ddd0db89b
Merge pull request #148 from 0xPolygonMiden/frisitano-mmr-accumulator
refactor: Mmr accumulator
1 year ago
frisitano
2100d6c861
refactor(mmr): expose method to join mmr peaks in a vector and pad
2 years ago
Bobbin Threadbare
52409ac039
Merge pull request #146 from 0xPolygonMiden/frisitano-merkle-store-inner-nodes
feat: add .inner_nodes() to [MerkleStore]
1 year ago
frisitano
4555fc918f
feat: add .inner_nodes() to [MerkleStore]
1 year ago
Bobbin Threadbare
52db23cd42
chore: update crate version to v0.5.0
2 years ago
Bobbin Threadbare
09025b4014
Merge pull request #129 from 0xPolygonMiden/next
Tracking PR for v0.4 release
2 years ago
Bobbin Threadbare
e983e940b2
chore: update changelog
2 years ago
Bobbin Threadbare
ae4e27b6c7
Merge pull request #139 from 0xPolygonMiden/hacka-support-adding-existing-structures-to-store
store: support adding existing structures
2 years ago
Bobbin Threadbare
130ae3d12a
feat: add inner node iterator to MerklePath
2 years ago
Bobbin Threadbare
22c9f382c4
fix: serialization test
2 years ago
Bobbin Threadbare
9be4253f19
feat: remove clone requirement for MerkleStore From constructors
2 years ago
Augusto F. Hack
59595a2e04
feat: added From convertions for the MerkleStore
2 years ago
Augusto F. Hack
eb316f51bc
store: remove SimpleSMT/MerkleTree/Mmr add/with methods
2 years ago
Augusto F. Hack
8161477d6a
store: support adding existing structures
2 years ago
Augusto Hack
158167356d
Merge pull request #138 from 0xPolygonMiden/hacka-merge-support-for-leaves
feat: allow merging of leaves
2 years ago
Augusto F. Hack
3996374a8b
feat: allow merging of leaves
Consider the case of a MMR with one entry, and a new entry is being
added. Both of these values are quite unique, they are at the same time
the root and only leaf of their corresponding tree. Currently this
representation is not supported by the [MerkleStore], so the leaves are
not in it. Once the two values are merged, they both become leaves of a
new tree under the new parent, and the existing validation didn't permit
that promotion from happening.
This lifts the validation, and changes the method to clarify that not
only `root` are being merged, by arbitrary nodes of a tree (leafs,
internal, or roots), with arbitrary mixing of each.
2 years ago
Augusto Hack
7fa03c7967
Merge pull request #137 from 0xPolygonMiden/frisitano-reexport-mmr-proof
re-export mmr proof
2 years ago
frisitano
79915cc346
feat: re-export MmrProof
2 years ago
Augusto Hack
45412b5cec
Merge pull request #134 from 0xPolygonMiden/add-rustfmt-config
config: add rustfmt config
2 years ago
Augusto F. Hack
bbb1e641a3
config: add rustfmt config
2 years ago
Bobbin Threadbare
e02507d11e
chore: update version to v0.4.0
2 years ago
Bobbin Threadbare
b5eb68e46c
Merge pull request #120 from 0xPolygonMiden/next
Tracking PR for v0.3 release
2 years ago
Bobbin Threadbare
61db888b2c
chore: update crate version to v0.3
2 years ago
Bobbin Threadbare
051167f2e5
Merge pull request #76 from 0xPolygonMiden/bobbin-blake3-opt
BLAKE3 hash_elements() optimization
2 years ago
Victor Lopes
498bc93c15
Merge pull request #125 from 0xPolygonMiden/vlopes11-store-get-leaf-depth
feat: add `MerkleStore::get_leaf_depth`
2 years ago
Victor Lopez
00ffc1568a
feat: add `MerkleStore::get_leaf_depth`
This commit introduces `get_leaf_depth`, a tiered SMT helpers that will
retrieve the depth of a leaf for a given root, capped by `64`.
closes #119
2 years ago
Augusto Hack
cbf51dd3e2
Merge pull request #127 from 0xPolygonMiden/hacka-optimized-peak-hash
mmr: optimized peak hash for Miden VM
2 years ago
Augusto F. Hack
ab903a2229
mmr: optimized peak hash for Miden VM
2 years ago
Bobbin Threadbare
86dba195b4
Merge pull request #124 from 0xPolygonMiden/bobbin-merkle-fixes
Merkle fixes
2 years ago
Bobbin Threadbare
bd557bc68c
fix: add validation to NodeIndex constructor and remove BitIterator
2 years ago
Augusto Hack
cf94ac07b7
Merge pull request #121 from 0xPolygonMiden/hacka-simple-smt-parent-node-iterator
feat: add parent node iterator for SimpleSMT
2 years ago
Augusto Hack
d873866f52
Merge pull request #118 from 0xPolygonMiden/hacka-support-mmr-in-the-merkle-store
feat: add support for MMR to the MerkleStore
2 years ago
Augusto F. Hack
9275dd00ad
feat: add parent node iterator for SimpleSMT
2 years ago
Augusto F. Hack
429d3bab6f
feat: add support for MMR to the MerkleStore
2 years ago
Augusto Hack
f19fe6e739
Merge pull request #117 from 0xPolygonMiden/hacka-simplify-consuming-merkle-tree
feat: add node iterator to MerkleTree
2 years ago
Augusto F. Hack
1df4318399
feat: add node iterator to MerkleTree
2 years ago
Bobbin Threadbare
433b467953
feat: optimized hash_elements for blake3 hasher
2 years ago
Augusto Hack
f46d913b20
Merge pull request #116 from 0xPolygonMiden/hacka-remove-merke-store
Remove SimpleSmt store
2 years ago
Augusto F. Hack
f8a62dae76
chore: remove simple_smt::Store
2 years ago
Victor Lopes
49b9029b46
Merge pull request #115 from 0xPolygonMiden/vlopes11-store-smt-depth
feat: Add `depth` as store SMT argument
2 years ago
Victor Lopez
d37f3f5e84
feat: Add `depth` as store SMT argument
Prior to this commit, MerkleStore allowed the creation of Sparse Merkle
tree only with the maximum depth of 63. However, this doesn't fit the
Tiered Sparse Merkle tree requirements, as it will contain trees of
depth 16.
This commit adds the `depth` argument to the MerkleStore methods that
will create Sparse Merkle trees.
2 years ago
Bobbin Threadbare
9389f2fb40
Merge pull request #80 from 0xPolygonMiden/next
v0.2 tracking PR
2 years ago
Bobbin Threadbare
703692553d
chore: add winterfell dependency update to changelog
2 years ago
Bobbin Threadbare
d68be83bc4
chore: add Mmr to readme and changelog
2 years ago
Bobbin Threadbare
80171af872
Merge pull request #114 from 0xPolygonMiden/v0.2.0-release-prep
Prepare v0.2 release
2 years ago
Augusto Hack
75af3d474b
Merge pull request #113 from 0xPolygonMiden/hacka-merkle-store-fix-empty-roots
bugfix: fix internal nodes of for empty leafs of a SMT
2 years ago
Augusto F. Hack
9e6c8ff700
bugfix: fix internal nodes of for empty leafs of a SMT
The path returned by `EmptySubtreeRoots` starts at the root, and goes to
the leaf. The MerkleStore constructor assumed the other direction, so
the parent/child hashes were reversed.
This fixes the bug and adds a test.
2 years ago
Bobbin Threadbare
a58922756a
chore: update crate versions, dependencies, and CHANGELOG
2 years ago
Augusto Hack
bf15e1331a
Merge pull request #112 from 0xPolygonMiden/hacka-add-serde-to-merklestore
Add serde to merklestore
2 years ago
Augusto F. Hack
7957cc929a
feat: added MerkleStore serde
2 years ago