nwaku/tests/v2
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
..
resources Resolve jenkins windows error (#777) 2021-11-23 11:40:43 +00:00
00002_test.up.sql Persisting Waku message timestamp & implementing DB migration & convert receiver timestamp data type to float64 (#607) 2021-06-16 13:23:55 -07:00
membershipContract.txt Rln relay/membership contract (#359) 2021-02-04 12:10:25 -08:00
poseidonHasher.txt Rln relay/membership contract (#359) 2021-02-04 12:10:25 -08:00
test_enr_utils.nim Update submodules (#814) 2022-01-14 10:25:01 +01:00
test_jsonrpc_waku.nim Improve node metrics (#831) 2022-01-26 12:02:57 +01:00
test_message_store.nim Fix: store dimensioning issues (#758) 2021-11-03 11:59:51 +01:00
test_migration_utils Add db migration support for peer store (#648) 2021-06-25 14:06:56 -07:00
test_migration_utils.nim General refactoring: `nim-waku` (#671) 2021-07-16 17:13:36 +02:00
test_namespacing_utils.nim General refactoring: `nim-waku` (#671) 2021-07-16 17:13:36 +02:00
test_peer_manager.nim Remove node peerInfo copy (#801) 2022-01-10 16:07:35 +01:00
test_peer_storage.nim Update submodules (#761) 2021-11-04 15:46:38 +01:00
test_rln_wrappers.nim Nim wrappers for Rln lib (Key and Params generation) (#373) 2021-02-10 12:51:41 -08:00
test_utils.nim Rln relay/membership contract (#359) 2021-02-04 12:10:25 -08:00
test_waku.nim Bump submodules (#363) 2021-02-02 13:33:59 +02:00
test_waku_bridge.nim Remove node peerInfo copy (#801) 2022-01-10 16:07:35 +01:00
test_waku_discv5.nim Proposal: ENR filtering on Waku-field in `discv5` (#763) 2021-11-12 15:10:54 +01:00
test_waku_dnsdisc.nim Remove node peerInfo copy (#801) 2022-01-10 16:07:35 +01:00
test_waku_filter.nim Update submodules (#814) 2022-01-14 10:25:01 +01:00
test_waku_keepalive.nim Remove node peerInfo copy (#801) 2022-01-10 16:07:35 +01:00
test_waku_lightpush.nim Update submodules (#814) 2022-01-14 10:25:01 +01:00
test_waku_pagination.nim Integrates proof generation and verification into wakunode2 (#735) 2021-10-19 17:37:29 -07:00
test_waku_payload.nim Bump chronos and fix exception tracking issues (#436) 2021-03-26 10:52:04 +01:00
test_waku_rln_relay.nim Rln-relay integration into chat2 (#835) 2022-02-04 15:58:27 -08:00
test_waku_store.nim stop sockets after use in test_waku_store.nim (#829) 2022-01-25 10:31:14 +08:00
test_waku_swap.nim Remove node peerInfo copy (#801) 2022-01-10 16:07:35 +01:00
test_waku_swap_contracts.nim Better error handling with Results from interactions with swap-contracts-module (#393) 2021-02-25 10:47:48 +08:00
test_wakunode.nim Updates rln-chat2 interface (#846) 2022-02-16 14:52:21 -08:00
test_web3.nim Improvement/bridge improvements (#429) 2021-03-23 10:04:51 +02:00
utils.nim Remove node peerInfo copy (#801) 2022-01-10 16:07:35 +01:00