29 Commits

Author SHA1 Message Date
Balazs Komuves
2d201ea8bb
yet another attempt to make it work as nimble dependency (this time it seem successful) 2024-10-22 11:47:26 +02:00
Balazs Komuves
0d12b14293
more c path fixes (or not, you can never know with this pile of nonsense...) 2024-10-18 17:29:32 +02:00
Balazs Komuves
3ed1829e5d
fix a typo (uint64 -> int) 2024-10-18 16:20:49 +02:00
Balazs Komuves
f72a0d47d9
move the c files under the package subdirectory, so nimble copies them when installing the package... 2024-10-18 15:20:58 +02:00
Balazs Komuves
606562832f
hack in the t=16 version of Poseidon2 into the Haskell reference implementation 2024-10-16 17:30:29 +02:00
Balazs Komuves
7ce2bc49d0
add some marshalling functionality (digests to/from bytes) 2024-10-15 21:46:56 +02:00
Balazs Komuves
5adda6d8e9
apply the same stylistic improvements to the poseidon2 code, too 2024-10-15 11:11:34 +02:00
Balazs Komuves
dfaf56f28d
Merge pull request #1 from codex-storage/review
Suggestions
2024-10-12 16:43:52 +02:00
Mark Spanbroek
ec42ffb42f simplify type parameters 2024-10-10 11:52:36 +02:00
Mark Spanbroek
8b2cb52bf0 remove cast to ptr UncheckedArray 2024-10-10 11:52:27 +02:00
Mark Spanbroek
268eabbc20 replace new by init; Sponge is not a reference type 2024-10-10 11:14:45 +02:00
Mark Spanbroek
30083a16be replace runtime checks with compile time checks 2024-10-10 11:14:45 +02:00
Mark Spanbroek
55346e5164 whitespace formatting 2024-10-10 10:51:17 +02:00
Mark Spanbroek
7d7420a542 replace fakeAssert by raiseAssert and doAssert 2024-10-10 10:51:02 +02:00
Balazs Komuves
c3955c9581
minor documentation changes 2024-10-03 00:46:50 +02:00
Balazs Komuves
06bd13b2bd
a small optimization in the poseidon2 hash 2024-10-03 00:32:49 +02:00
Balazs Komuves
d89a5cca7b
add Monolith hash implementation (C + Nim + tests) 2024-10-03 00:26:28 +02:00
Balazs Komuves
eb413af279
add reference implementation for Monolith hash 2024-10-02 22:55:15 +02:00
Balazs Komuves
495631f6b2
fix markdown formatting 2024-10-01 21:06:32 +02:00
Balazs Komuves
69f1994eea refactoring the structure of the nimble package 2024-10-01 21:00:27 +02:00
Balazs Komuves
61bd510fd7 updating the README 2024-10-01 20:03:30 +02:00
Balazs Komuves
2681bf15d7 add Merkle trees w/ tests (+ some minor refactorings) 2024-10-01 16:00:27 +02:00
Balazs Komuves
5c72f57809 add sponge construction with test (the Nim API is hackish and incomplete) 2024-10-01 12:19:59 +02:00
Balazs Komuves
9bf867b821 add tests for Poseidon2 permutations 2024-10-01 11:19:19 +02:00
Balazs Komuves
affa213628 sponge reference implementation (Haskell) 2024-09-29 19:06:13 +02:00
Balazs Komuves
f60ca83c55 Poseidon2 permutation reference implementation (Haskell) 2024-09-29 19:06:02 +02:00
Balazs Komuves
5512db6242 add permutation and compression 2024-09-24 14:11:53 +02:00
Balazs Komuves
fcc86bbc20 initial improt: some basic C FFI seems to work 2024-09-24 13:19:16 +02:00
Balazs Komuves
69c99128c9 initial commit 2024-09-24 13:19:16 +02:00