diff --git a/vendor/zerokit b/vendor/zerokit index c319f32a1..584c2cf4c 160000 --- a/vendor/zerokit +++ b/vendor/zerokit @@ -1 +1 @@ -Subproject commit c319f32a1e4a3471554006523c90856a943b366e +Subproject commit 584c2cf4c000b391ca6b415c09d8399fde329e5c diff --git a/waku/v2/waku_rln_relay/constants.nim b/waku/v2/waku_rln_relay/constants.nim index 4d36ab2f8..79451c13f 100644 --- a/waku/v2/waku_rln_relay/constants.nim +++ b/waku/v2/waku_rln_relay/constants.nim @@ -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 diff --git a/waku/v2/waku_rln_relay/rln/wrappers.nim b/waku/v2/waku_rln_relay/rln/wrappers.nim index 0c541f088..8599fd249 100644 --- a/waku/v2/waku_rln_relay/rln/wrappers.nim +++ b/waku/v2/waku_rln_relay/rln/wrappers.nim @@ -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)