fixup: kats from zerokit

This commit is contained in:
rymnc
2024-03-13 14:50:14 +05:30
parent 33502bd39a
commit c540f3ab32
3 changed files with 32 additions and 13 deletions

View File

@@ -2,7 +2,11 @@
gnark implementation of rln-v2. super hacky and unclean.
Need to get kats from zerokit and replace the circuit assertions for y, root, nullifier.
Need to get test vectors for other backends, but bn254 works with the kats from [zerokit](https://github.com/vacp2p/zerokit/blob/8614b2a33a295921aef30129b9fc3cf6d5710c9d/rln/tests/protocol.rs#L240)
Poseidon implementation taken from [here](https://raw.githubusercontent.com/AlpinYukseloglu/poseidon-gnark/main/circuits/poseidon.go)
Merkle tree Inclusion proof taken from [here](https://github.com/reilabs/gnark-lean-demo/blob/a3955946e0d5f63d8bdc4e5bb2a60d0ba613544c/go-circuit/semaphore.go#L31)
## Usage