22 Commits

Author SHA1 Message Date
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
4d101442ca
update the README to include the per-block hashing convention 2023-11-28 15:23:50 +01:00
Balazs Komuves
55015008e7
the circuit seems to work 2023-11-28 12:32:36 +01:00
Balazs Komuves
0ae539a0ed
add CeilingLog2 template 2023-11-25 20:50:54 +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
49e77f6f78
add log2 circuit template 2023-11-24 12:40:21 +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
35582f6178
update the README 2023-11-17 08:13:39 +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
Balazs Komuves
b0bbb9150e initial commit 2023-10-25 18:12:26 +02:00