29 Commits

Author SHA1 Message Date
Balazs Komuves
72bc4ae612
.gitignore 2025-03-14 11:17:26 +01:00
thatben
354cca0573
bumps constantine and nim-poseidon to match codex v0.2.0 2025-02-28 13:52:01 +01:00
Balazs Komuves
1c51aca81b
more streamlined json output for the goldilocks field (4 field elements per line) 2024-10-22 12:37:34 +02:00
Balazs Komuves
14bab04b19
it almost compiles (but does not link/builds) after the big hack refactoring 2024-10-18 17:39:34 +02:00
Balazs Komuves
948f6c2c75 add CLI and config for the new hash functions 2024-10-15 11:52:40 +02:00
Balazs Komuves
72e55b22ab
update the nim-poseidon2 dependency 2024-07-12 12:45:21 +02:00
Balazs Komuves
bd0a5e968c
update to use the latest nim-poseidon2 2023-12-18 12:50:54 +01:00
Balazs Komuves
78dcaaa396
improve the nim-cli documentation 2023-12-15 22:33:41 +01:00
Balazs Komuves
cb144df60a
fix some typos 2023-12-15 17:49:11 +01:00
Balazs Komuves
dd95030a39
nim-cli: add --verbose option 2023-12-15 17:21:45 +01:00
Balazs Komuves
2f30a0cef8
Nim: add the missing commas in the JSON export :) 2023-12-15 17:21:34 +01:00
Balazs Komuves
30740a86b5
add generating the main component to the Nim proof input generator 2023-12-15 14:52:26 +01:00
Balazs Komuves
f9af4fa84f
add Nim CLI application to generate proof inputs 2023-12-15 13:13:49 +01:00
Balazs Komuves
fea3d520b4
make cellSize and blockSize global parameters 2023-12-15 12:08:28 +01:00
Balazs Komuves
cbcf9b476c
add padding of Merkle paths (to fixed length) to the Nim reference impl 2023-12-14 14:21:10 +01:00
Balazs Komuves
55015008e7
the circuit seems to work 2023-11-28 12:32:36 +01:00
Balazs Komuves
159b71959c
updated the Haskell and Nim code to produce inputs for proving against the dataset root (instead of the slot root) 2023-11-25 14:24:25 +01:00
Balazs Komuves
5159beebe5
make CellIdx etc newtypes 2023-11-24 16:10:17 +01:00
Balazs Komuves
950d6c9df9
the Nim and Haskell circuit input generators produces the same input 2023-11-23 14:39:20 +01:00
Balazs Komuves
9e61c14e5d
proof input generation reference impl. in Nim (WIP, untested!) 2023-11-17 18:17:26 +01:00
Balazs Komuves
fad92b6c75
move testvectors into a subdirectory 2023-11-17 11:32:09 +01:00
Balazs Komuves
be5a0ed2a9
generate test vectors, using Haskell and Nim 2023-11-16 14:01:22 +01:00
Balazs Komuves
868247f64d
add proper 10* padding to the bytestrings before converting to field elements 2023-11-16 13:15:33 +01:00
Balazs Komuves
c3e5c85f7b
move source into an src subdirectory 2023-11-16 12:58:55 +01:00
Balazs Komuves
d0cb4e1026
make the Merkle tree construction safe (no second preimages) using keyed compression at the nodes 2023-11-16 11:53:08 +01:00
Balazs Komuves
cada45df18
domain separation for the sponges 2023-11-16 11:52:25 +01:00
Balazs Komuves
39e4c924bd
cabalize 2023-11-16 11:50:42 +01:00
Balazs Komuves
5581ba56f5
fix the JSON does not handle large numbers problem 2023-10-26 18:03:24 +02:00
Balazs Komuves
1f4ae5874d initial import (copy from the private repo) 2023-10-25 18:12:26 +02:00