tohrnii
0e0a3fda4f
refactor: refactor to clean up and simplify things
1 year ago
tohrnii
fe9aa8c28c
refactor: refactor crypto APIs to use RpoDigest instead of Word
1 year ago
Bobbin Threadbare
629494b601
feat: add leaves() iterator to SimpleSmt
1 year ago
Bobbin Threadbare
13aeda5a27
feat: add subset() to MerkleStore
1 year ago
Bobbin Threadbare
130ae3d12a
feat: add inner node iterator to MerklePath
2 years ago
Bobbin Threadbare
9be4253f19
feat: remove clone requirement for MerkleStore From constructors
2 years ago
Augusto F. Hack
bbb1e641a3
config: add rustfmt config
2 years ago
Bobbin Threadbare
bd557bc68c
fix: add validation to NodeIndex constructor and remove BitIterator
2 years ago
Augusto F. Hack
1df4318399
feat: add node iterator to MerkleTree
2 years ago
Augusto F. Hack
0375f31035
feat: added utility to format MerkleTree and MerklePath to hex
Example formatted MerkleTree:
```
880abe452320966617646e7740b014954300f19a28780a0889d62ff33f4b0534
1ade1369091efa31201e9b60c9c28874d0ddce5362b335135a6bb4c917285983
3e60a9c843b4bb19f7a0572102e6507195f5240767a396335fd21981b048b807
0100000000000000000000000000000000000000000000000000000000000000
0200000000000000000000000000000000000000000000000000000000000000
0300000000000000000000000000000000000000000000000000000000000000
0400000000000000000000000000000000000000000000000000000000000000
```
Example formatted MerklePath:
```
[0400000000000000000000000000000000000000000000000000000000000000, 1ade1369091efa31201e9b60c9c28874d0ddce5362b335135a6bb4c917285983]
```
2 years ago
Augusto F. Hack
d6cbd178e1
chore: clarified assert message
2 years ago
Augusto F. Hack
88a646031f
feat: add merkle store
2 years ago
Bobbin Threadbare
3c9a5235a0
docs: fix typos in doc comments
2 years ago
Victor Lopez
9307178873
feat: add `from_elements` to `NodeIndex`
2 years ago
Victor Lopez
0799b1bb9d
feat: add merkle node index
This commit introduces a wrapper structure to encapsulate the merkle
tree traversal.
related issue: #36
2 years ago
Victor Lopez
21a8cbcb45
feat: add merkle path wrapper
A Merkle path is a vector of nodes, regardless of the Merkle tree
implementation.
This commit introduces an encapsulation for such vector, also to provide
functionality that is common between different algorithms such as
opening verification.
related issue: #36
2 years ago
Bobbin Threadbare
4f65d01df4
feat: add PartialEq and Eq traits to Merkle structs
2 years ago
Victor Lopez
5fd0d692e8
feat: add simple sparse merkle tree
This commit moves the previous implementation of `SparseMerkleTree` from
miden-core to this crate.
It also include a couple of new tests, a bench suite, and a couple of
minor fixes. The original API was preserved to maintain compatibility
with `AdviceTape`.
closes #21
2 years ago
Bobbin Threadbare
ee1d5dc2e1
chore: clean up create interfaces
2 years ago
Victor Lopez
3b9d515d00
feat: add no-std support
closes #5
2 years ago
Bobbin Threadbare
7395697a68
refactor: flattened repo structure
2 years ago
Al-Kindi-0
7cb9f7bfdf
chore: update to winter 0.4.1
2 years ago
Al-Kindi-0
bbfddcfbd3
fix misc. nits
2 years ago
Al-Kindi-0
32af9aaed2
fix: misc. nits
2 years ago
Al-Kindi-0
4d108fe5e5
fix nits
2 years ago
Al-Kindi-0
17f13dbe9f
fix nits
2 years ago
Al-Kindi-0
22cf7aba44
feat: Merklepathset & Merkle tree
2 years ago