chore(rln-relay): use new config for ffi (#1718)

* chore(rln-relay): use new config for ffi

* chore: update zerokit submodule

* fix: missing comma
This commit is contained in:
Aaryamann Challani 2023-05-10 12:54:58 +05:30 committed by GitHub
parent 4b59e472aa
commit 44c543129e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

2
vendor/zerokit vendored

@ -1 +1 @@
Subproject commit c319f32a1e4a3471554006523c90856a943b366e
Subproject commit 584c2cf4c000b391ca6b415c09d8399fde329e5c

View File

@ -1,9 +1,11 @@
import
std/json,
stint
import
../waku_keystore
# Acceptable roots for merkle root validation of incoming messages
const AcceptableRootWindowSize* = 5
@ -28,7 +30,7 @@ const
const
# The relative folder where the circuit, proving and verification key for RLN can be found
# Note that resources has to be compiled with respect to the above MerkleTreeDepth
RlnResourceFolder* = "tree_height_" & $MerkleTreeDepth & "/"
RlnConfig* = $(%* { "resources_folder": "tree_height_" & $MerkleTreeDepth & "/" })
# temporary variables to test waku-rln-relay performance in the static group mode
const

View File

@ -59,7 +59,7 @@ proc createRLNInstanceLocal*(d: int = MerkleTreeDepth): RLNResult =
var
rlnInstance: ptr RLN
merkleDepth: csize_t = uint(d)
resourcesPathBuffer = RlnResourceFolder.toOpenArrayByte(0, RlnResourceFolder.high).toBuffer()
resourcesPathBuffer = RlnConfig.toOpenArrayByte(0, RlnConfig.high).toBuffer()
# create an instance of RLN
let res = new_circuit(merkleDepth, addr resourcesPathBuffer, addr rlnInstance)