mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-04 11:05:38 +00:00
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:
parent
4b59e472aa
commit
44c543129e
2
vendor/zerokit
vendored
2
vendor/zerokit
vendored
@ -1 +1 @@
|
||||
Subproject commit c319f32a1e4a3471554006523c90856a943b366e
|
||||
Subproject commit 584c2cf4c000b391ca6b415c09d8399fde329e5c
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user