nwaku/waku/v2/node
Sanaz Taheri Boshrooyeh d851d48424
Updates rln-chat2 interface (#846)
* adds ProofMetadata

* adds EPOCH_INTERVAL

* adds messageLog field

* adds updateLog, toEpoch, fromEpoch, getEpoch, compareTo

* adds unit test for toEpoch and fromEpoch

* adds unit test for Epoch comparison

* adds result codes for updateLog

* adds unit test for update log

* renames epoch related consts

* modifies updateLog with new return type and new logic of spam detection

* adds unit text for the modified updateLog

* changes max epoch gap type size

* splits updateLog into two procs isSpam and updateLog

* updates unittests

* fixes a bug, returns false when the message is not spam

* renames messageLog to nullifierLog

* renames isSpam to hasDuplicate

* updates the rln validator, adds comments

* adds appendRLNProof proc plus some code beatification

* unit test for validate message

* adds unhappy test to validateMessage unit test

* renames EPOCH_UNIT_SECONDS

* renames MAX_CLOCK_GAP_SECONDS

* WIP: integration test

* fixes compile errors

* sets a real epoch value

* updates on old unittests

* adds comments to the rln relay tests

* adds more comments

* makes rln import conditional

* adds todos

* adds more todos

* adds rln-relay mount process into chat2

* further todos

* logs contentTopic

* introduces rln relay configs

* changes default pubsub topic

* adds contentTopic config

* imports rln relay dependencies

* consolidates imports

* removes module identifier from ContentTopic

* adds contentTopic field

* adds contentTopic argument to mountRlnRelay calls

* appends rln proof to chat2 messages

* changes the default chat2 contentTopic

* adds missing content topic fields

* fixes a bug

* adds a new logic about empty content topics

* appends proof only when rln flag is active

* removes unnecessary todos

* fixes an indentation issue

* adds log messages

* verifies the proof against the concatenation of msg payload and content topic

* a bug fix

* WIP

* removes duplicate epoch time calculation

* converts echo to log

* invokes handler

* bug fix

* prints calculated epoch

* changes the format of printed epoch

* updates log levels

* logs the input buffer supplied to the generate_proof

* replaces echos with logs

* changes log level to trace

* resets the log level of chat2 to INFO

* upgrades log level to debug

* exports toRLNSignal and adds a doc string

* updates log level

* enables all test2

* removes an echo statement

* modifies a comment

* further updates on the log level

* a minor update

* invokes the spam handler when provided

* checks for payload version

* deletes a redundant check

* deletes a rendant check

* updates default rln-relay cht2 content topic

* adds a todo and log

* changes the case of testnet content topic

* removes a flaky check
2022-02-16 14:52:21 -08:00
..
discv5 Add support for RFC31 ENR (#789) 2021-12-06 20:51:37 +01:00
dnsdisc Add support for RFC31 ENR (#789) 2021-12-06 20:51:37 +01:00
jsonrpc Update submodules: differentiate between local and remote `PeerInfo` (#730) 2021-10-06 14:29:08 +02:00
peer_manager Update submodules: differentiate between local and remote `PeerInfo` (#730) 2021-10-06 14:29:08 +02:00
scripts Makes the arguments of the store jsonrpc api optional (#526) 2021-05-03 12:25:28 -07:00
storage Fix empty scripts condition. Logging. (#795) 2021-12-07 13:06:59 +01:00
README.md Folder restructure (#274) 2020-11-17 17:34:53 +08:00
config.nim Support for dns `multiaddrs` (#851) 2022-02-16 17:12:09 +01:00
nim.cfg Folder restructure (#274) 2020-11-17 17:34:53 +08:00
quicksim2.nim Update submodules (#814) 2022-01-14 10:25:01 +01:00
start_network2.nim Update submodules (#761) 2021-11-04 15:46:38 +01:00
waku_payload.nim Move Whisper types and protocol from nim-eth to this repo (#663) 2021-07-19 16:14:37 +08:00
waku_setup.nim Fix empty scripts condition. Logging. (#795) 2021-12-07 13:06:59 +01:00
wakunode2.nim Updates rln-chat2 interface (#846) 2022-02-16 14:52:21 -08:00

README.md

Waku Node v2

This folder contains code related to running a wakunode2 process. The main entrypoint is the wakunode2 file.

See ../../docs/api/v2/node.md for more details on the the Nim Node API.