Bobbin Threadbare
a03f2b5d5e
feat: implement iterator over key-value pairs for TSMT
2023-08-01 11:02:29 -07:00
Bobbin Threadbare
1bb75e85dd
feat: implement value removal in TSMT
2023-07-31 21:23:18 -07:00
Bobbin Threadbare
1578a9ee1f
refactor: simplify TSTM leaf node hashing
2023-07-27 21:15:45 -07:00
Andrey Khmuro
71b04d0734
refactor: replace MerklePathSet with PartialMerkleTree
2023-07-27 22:03:16 +03:00
frisitano
da2d08714d
feat: introduce TryApplyDiff and refactor RecordingMap finalizer
2023-07-26 12:14:39 +02:00
frisitano
aaf1788228
Merge pull request #166 from 0xPolygonMiden/frisitano-tx-result
...
feat: introduce `Diff` traits and objects
2023-07-20 16:45:45 +02:00
frisitano
44e60e7228
feat: introduce diff traits and objects
2023-07-20 16:41:59 +02:00
Andrey Khmuro
08aec4443c
Enhancement of the Partial Merkle Tree ( #163 )
...
feat: implement additional functionality for the PartialMerkleTree
2023-07-06 00:19:03 +03:00
Bobbin Threadbare
b2d6866d41
refactor: rename Merkle store Node into StoreNode
2023-06-25 01:42:21 -07:00
Bobbin Threadbare
f08644e4df
refactor: simplify recording MerkleStore structure
2023-06-23 23:19:12 -07:00
frisitano
679a30e02e
feat: introduce recorder objects
2023-06-23 14:26:57 +01:00
Bobbin Threadbare
4215e83ae5
feat: add EMPTY_VALUE const to SMTs
2023-06-13 22:53:14 -07:00
Bobbin Threadbare
fe5cac9edc
fix: compilation errors
2023-06-13 22:43:08 -07:00
Bobbin Threadbare
53d52b8adc
Merge pull request #156 from 0xPolygonMiden/andrew-partial-mt
...
Partial Merkle tree implementation
2023-06-13 22:10:26 -07:00
Bobbin Threadbare
049ae32cbf
chore: clean up test code
2023-06-13 14:40:31 -07:00
Andrey Khmuro
b9def61e28
refactor: improve tests, add error tests
2023-06-13 16:14:07 +03:00
tohrnii
0e0a3fda4f
refactor: refactor to clean up and simplify things
2023-06-13 10:53:41 +01:00
tohrnii
fe9aa8c28c
refactor: refactor crypto APIs to use RpoDigest instead of Word
2023-06-09 21:27:09 +01:00
Andrey Khmuro
766702e37a
refactor: improve tests, small fixes
2023-06-09 13:53:50 +03:00
Andrey Khmuro
218a64b5c7
refactor: small fixes
2023-06-07 17:31:38 +03:00
Andrey Khmuro
2708a23649
refactor: optimize code, fix bugs
2023-06-06 01:36:53 +03:00
Andrey Khmuro
43f1a4cb64
refactor: MerkleStore clippy fix
2023-06-06 01:36:53 +03:00
Andrey Khmuro
55cc71dadf
fix: fix add_path func leaf determination
2023-06-06 01:36:53 +03:00
Andrey Khmuro
ebf71c2dc7
refactor: optimize code, remove not momentarily necessary functions
2023-06-06 01:36:53 +03:00
Andrey Khmuro
b4324475b6
feat: change constructor from with_leaves to with_paths
2023-06-06 01:36:53 +03:00
Andrey Khmuro
23f448fb33
feat: partial Merkle tree
2023-06-06 01:36:53 +03:00
Bobbin Threadbare
21e7a5c07d
feat: implement iterators over contents of TieredSmt
2023-05-20 22:47:07 -07:00
Bobbin Threadbare
b768eade4d
feat: added handling of bottom tier to TieredSmt
2023-05-16 15:38:05 -07:00
Bobbin Threadbare
51ce07cc34
feat: implement basic TieredSmt
2023-05-12 11:33:34 -07:00
Bobbin Threadbare
629494b601
feat: add leaves() iterator to SimpleSmt
2023-05-11 00:37:16 -07:00
Bobbin Threadbare
13aeda5a27
feat: add subset() to MerkleStore
2023-05-09 18:38:21 -07:00
Bobbin Threadbare
fcf03478ba
refactor: update SimpleSmt interfaces
2023-05-08 00:12:24 -07:00
frisitano
2100d6c861
refactor(mmr): expose method to join mmr peaks in a vector and pad
2023-05-05 12:03:32 +08:00
frisitano
4555fc918f
feat: add .inner_nodes() to [MerkleStore]
2023-05-04 19:15:52 +07:00
Bobbin Threadbare
130ae3d12a
feat: add inner node iterator to MerklePath
2023-04-21 14:27:58 -07:00
Bobbin Threadbare
22c9f382c4
fix: serialization test
2023-04-21 11:39:49 -07:00
Bobbin Threadbare
9be4253f19
feat: remove clone requirement for MerkleStore From constructors
2023-04-21 11:22:36 -07:00
Augusto F. Hack
59595a2e04
feat: added From convertions for the MerkleStore
2023-04-21 14:47:58 +02:00
Augusto F. Hack
eb316f51bc
store: remove SimpleSMT/MerkleTree/Mmr add/with methods
2023-04-21 14:47:48 +02:00
Augusto F. Hack
8161477d6a
store: support adding existing structures
2023-04-20 13:45:31 +02:00
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.
2023-04-17 12:21:51 +02:00
frisitano
79915cc346
feat: re-export MmrProof
2023-04-14 13:25:19 +01:00
Augusto F. Hack
bbb1e641a3
config: add rustfmt config
2023-04-11 17:38:39 +02:00
Bobbin Threadbare
051167f2e5
Merge pull request #76 from 0xPolygonMiden/bobbin-blake3-opt
...
BLAKE3 hash_elements() optimization
2023-04-07 23:12:41 -07:00
Victor Lopes
498bc93c15
Merge pull request #125 from 0xPolygonMiden/vlopes11-store-get-leaf-depth
...
feat: add `MerkleStore::get_leaf_depth`
2023-04-06 23:13:54 +02:00
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
2023-04-06 23:01:38 +02:00
Augusto F. Hack
ab903a2229
mmr: optimized peak hash for Miden VM
2023-04-06 18:22:01 +02:00
Bobbin Threadbare
bd557bc68c
fix: add validation to NodeIndex constructor and remove BitIterator
2023-04-05 12:08:00 -07:00
Augusto Hack
cf94ac07b7
Merge pull request #121 from 0xPolygonMiden/hacka-simple-smt-parent-node-iterator
...
feat: add parent node iterator for SimpleSMT
2023-04-05 00:46:32 +02:00
Augusto F. Hack
9275dd00ad
feat: add parent node iterator for SimpleSMT
2023-04-04 22:33:26 +02:00