Commit graph

422 commits

Author SHA1 Message Date
Victor Lopez
9307178873
feat: add from_elements to NodeIndex 2023-02-16 21:14:07 +01:00
Victor Lopes
3af53e63cf
Merge pull request #54 from 0xPolygonMiden/vlopes11-36-feat-add-merkle-index
feat: add merkle node index
2023-02-16 00:39:18 +01:00
Victor Lopez
0799b1bb9d
feat: add merkle node index
This commit introduces a wrapper structure to encapsulate the merkle
tree traversal.

related issue: #36
2023-02-15 23:53:01 +01:00
Victor Lopes
0c242d2c51
Merge pull request #53 from 0xPolygonMiden/vlopes11-36-feat-add-merkle-types
feat: add merkle path wrapper
2023-02-13 22:46:59 +01:00
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
2023-02-13 22:43:13 +01:00
Bobbin Threadbare
66da469ec4
Merge pull request #46 from 0xPolygonMiden/vlopes11-44-fix-rpo256-sponge-pad
fix: sponge pad panics on input
2023-02-09 11:43:42 -08:00
Victor Lopez
ed36ebc542
fix: sponge pad panics on input
closes #44
2023-02-09 13:06:06 +01:00
grjte
398af59045
Merge pull request #50 from 0xPolygonMiden/next
Tracking PR for release v0.1.1
2023-02-06 16:30:01 +00:00
grjte
cf7011a287
Merge pull request #49 from 0xPolygonMiden/grjte-add-changelog
docs: add changelog
2023-02-06 16:14:15 +00:00
grjte
d25a90b5a4
chore: update version to 0.1.1 2023-02-06 15:00:58 +00:00
grjte
e0e4610f2a
docs: add changelog 2023-02-06 14:51:41 +00:00
Kaneki (カネキ ケン)
f399df5def
Merge pull request #47 from 0xPolygonMiden/kaneki-domain-separator
refactor merge in domain tests
2023-02-01 13:21:24 +00:00
0xKanekiKen
37c6f003c4
tests: refactor merge_in_domain tests
Signed-off-by: 0xKanekiKen <100861945+0xKanekiKen@users.noreply.github.com>
2023-02-01 13:14:03 +00:00
Kaneki (カネキ ケン)
6de7730e30
Merge pull request #40 from 0xPolygonMiden/kaneki-domain-separator
Domain separator during merge
2023-01-23 20:20:38 +00:00
0xKanekiKen
5757b896fe
test: unit tests for merge in domain method
Signed-off-by: 0xKanekiKen <100861945+0xKanekiKen@users.noreply.github.com>
2023-01-23 20:17:34 +00:00
grjte
581887916f
Merge pull request #42 from 0xPolygonMiden/kaneki-random-coin
Reexport publiccoin & publiccoinerror from winterfell
2023-01-23 17:08:48 +00:00
0xKanekiKen
ce2cbe704b
refactor: reexport publiccoin & publiccoinerror from winterfell
Signed-off-by: 0xKanekiKen <100861945+0xKanekiKen@users.noreply.github.com>
2023-01-23 16:50:30 +00:00
0xKanekiKen
bc6191b3fa
feat: new merge method for 2 digest with a domain separator
Signed-off-by: 0xKanekiKen <100861945+0xKanekiKen@users.noreply.github.com>
2023-01-23 16:26:53 +00:00
Bobbin Threadbare
f51d6b78aa
Merge pull request #34 from 0xPolygonMiden/bobbin-merkle-derive
Implement PartialEq and Eq traits on Merkle structs
2022-12-28 07:00:46 -08:00
Bobbin Threadbare
4f65d01df4 feat: add PartialEq and Eq traits to Merkle structs 2022-12-27 19:40:58 -08:00
Bobbin Threadbare
3c60484e21
Merge pull request #32 from 0xPolygonMiden/next
Tracking PR for next release
2022-12-14 07:52:20 -08:00
Bobbin Threadbare
ad2b63ce02
Merge pull request #31 from 0xPolygonMiden/bobbin-readme-improv
Minor updates to main and benchmark README files
2022-12-14 07:44:13 -08:00
Bobbin Threadbare
527455f600 docs: minor updates to main and benchmark README files 2022-12-14 07:30:37 -08:00
Victor Lopes
aa12215d30
Merge pull request #27 from 0xPolygonMiden/add-simple-smt
feat: add simple sparse merkle tree
2022-12-14 14:32:40 +01:00
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
2022-12-14 14:26:01 +01:00
Bobbin Threadbare
41cb6c94c6
Merge pull request #26 from 0xPolygonMiden/al-bench-docs
Benchmark instructions for hash functions
2022-12-13 11:03:21 -08:00
Al-Kindi-0
c728423902 doc: benchmark hash functions
doc: benchmark hash functions

fix nits

fix: misc. nits

fix: nits and link

fix additional nits

fix: nits
2022-12-13 18:42:38 +01:00
Bobbin Threadbare
4ed0611463
Merge pull request #28 from 0xPolygonMiden/bobbin-blake3-improv
Improve BLAKE3 sequential hashing performance
2022-12-12 06:45:28 -08:00
Anjan Roy
1332299a82
Merge pull request #29 from 0xPolygonMiden/itzmeanjan-blake3-improv
Optimize BLAKE3 Sequential Hashing
2022-12-12 10:51:36 +04:00
Anjan Roy
b4f9d60981
chg: don't assume we're only working with base field elements, consider extension field elements too
See https://github.com/0xPolygonMiden/crypto/pull/29#discussion_r1045108928 where it was suggested.

Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
2022-12-12 09:49:33 +04:00
Anjan Roy
0d713af4ac
chg: don't assume that default features are available on all targets
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
2022-12-10 12:49:38 +04:00
Anjan Roy
aa4e313690
chg: first convert all elements to little endian bytes and then consume them in a single call to blake3 hasher
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
2022-12-10 11:48:19 +04:00
Bobbin Threadbare
9782992662 feat: improve blake3 sequential hashing performance 2022-12-09 13:51:16 -08:00
Bobbin Threadbare
8f3aaa7eb6
Merge pull request #25 from 0xPolygonMiden/al-blake3-bench
feat: blake3 benchmarks
2022-12-09 07:55:41 -08:00
Al-Kindi-0
20b437f842 feat: blake3 benchmarks 2022-12-06 08:25:48 +01:00
Bobbin Threadbare
ed07f89fe7
Merge pull request #16 from 0xPolygonMiden/next
Tracking PR for v0.1 release
2022-12-02 13:06:31 -08:00
Bobbin Threadbare
a41329f9f6
Merge pull request #23 from 0xPolygonMiden/bobbin-readme-updates
Update README file in preparation for v0.1 release
2022-12-02 12:39:31 -08:00
Bobbin Threadbare
9b08ac731d docs: update main README file 2022-12-02 11:25:18 -08:00
Bobbin Threadbare
3e54680167
Merge pull request #20 from 0xPolygonMiden/bobbin-crate-cleanup
Clean up crate interfaces in preparation for v0.1 release
2022-12-01 10:51:55 -08:00
Bobbin Threadbare
ee1d5dc2e1 chore: clean up create interfaces 2022-11-30 21:28:54 -08:00
Bobbin Threadbare
0257538a1e
Merge pull request #18 from 0xPolygonMiden/add-blake3
feat: add blake3 160, 192 & 256 bits
2022-11-30 13:51:28 -08:00
Victor Lopez
57d4cb0303
feat: add blake3 160, 192 & 256 bits
closes #6
2022-11-30 14:15:13 +01:00
Bobbin Threadbare
a3553ad04d
Merge pull request #11 from 0xPolygonMiden/implement-ord-for-rpo
Implement ord for rpo
2022-11-28 13:04:01 -08:00
Victor Lopez
dc2e82e011
feat: implement ord for rpo digest 256
closes #8
2022-11-28 20:58:02 +01:00
Bobbin Threadbare
adb6083066
Merge pull request #17 from 0xPolygonMiden/al-rpo-bench
feat: benchmark RPO
2022-11-28 11:28:19 -08:00
Al-Kindi-0
0abadf327e chore: rustfmt fix + minor nits 2022-11-25 17:24:11 +01:00
Al-Kindi-0
1e177f0ba3 feat: benchmark RPO 2022-11-25 16:16:20 +01:00
Bobbin Threadbare
6cf3b07e3f
Merge pull request #10 from 0xPolygonMiden/implement-no-std
feat: add no-std support
2022-11-24 14:38:34 -08:00
Victor Lopez
3b9d515d00
feat: add no-std support
closes #5
2022-11-24 22:10:56 +01:00
Bobbin Threadbare
7395697a68 refactor: flattened repo structure 2022-10-26 14:54:38 -07:00