mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 19:43:41 +00:00
deploy: d44eab7cd7a3b41cd9c1aadead4490f5d328b406
This commit is contained in:
parent
c6949f9c9a
commit
3eae2c753d
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# libtool - Provide generalized library-building support services.
|
# libtool - Provide generalized library-building support services.
|
||||||
# Generated automatically by config.status (libbacktrace) version-unused
|
# Generated automatically by config.status (libbacktrace) version-unused
|
||||||
# Libtool was configured on host fv-az129-926:
|
# Libtool was configured on host fv-az182-283:
|
||||||
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
||||||
#
|
#
|
||||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
||||||
|
@ -31,7 +31,10 @@ export
|
|||||||
waku_rln_relay_types
|
waku_rln_relay_types
|
||||||
|
|
||||||
when defined(rln):
|
when defined(rln):
|
||||||
import ../protocol/waku_rln_relay/[rln, waku_rln_relay_utils]
|
import
|
||||||
|
libp2p/protocols/pubsub/rpc/messages,
|
||||||
|
web3,
|
||||||
|
../protocol/waku_rln_relay/[rln, waku_rln_relay_utils]
|
||||||
|
|
||||||
declarePublicCounter waku_node_messages, "number of messages received", ["type"]
|
declarePublicCounter waku_node_messages, "number of messages received", ["type"]
|
||||||
declarePublicGauge waku_node_filters, "number of content filter subscriptions"
|
declarePublicGauge waku_node_filters, "number of content filter subscriptions"
|
||||||
@ -462,6 +465,7 @@ when defined(rln):
|
|||||||
node.wakuRlnRelay = rlnPeer
|
node.wakuRlnRelay = rlnPeer
|
||||||
|
|
||||||
when defined(rln):
|
when defined(rln):
|
||||||
|
|
||||||
proc addRLNRelayValidator*(node: WakuNode, pubsubTopic: string) =
|
proc addRLNRelayValidator*(node: WakuNode, pubsubTopic: string) =
|
||||||
## this procedure is a thin wrapper for the pubsub addValidator method
|
## this procedure is a thin wrapper for the pubsub addValidator method
|
||||||
## it sets message validator on the given pubsubTopic, the validator will check that
|
## it sets message validator on the given pubsubTopic, the validator will check that
|
||||||
|
@ -15,7 +15,9 @@ contract(MembershipContract):
|
|||||||
# TODO define a return type of bool for register method to signify a successful registration
|
# TODO define a return type of bool for register method to signify a successful registration
|
||||||
proc register(pubkey: Uint256) # external payable
|
proc register(pubkey: Uint256) # external payable
|
||||||
|
|
||||||
proc createRLNInstance*(d: int, ctxPtr: var ptr RLN[Bn256]): bool =
|
proc createRLNInstance*(d: int, ctxPtr: var ptr RLN[Bn256]): bool
|
||||||
|
{.raises: [Defect, IOError].} =
|
||||||
|
|
||||||
## generates an instance of RLN
|
## generates an instance of RLN
|
||||||
## An RLN instance supports both zkSNARKs logics and Merkle tree data structure and operations
|
## An RLN instance supports both zkSNARKs logics and Merkle tree data structure and operations
|
||||||
## d indicates the depth of Merkle tree
|
## d indicates the depth of Merkle tree
|
||||||
|
Loading…
x
Reference in New Issue
Block a user