Darshan K
04fdf0a8c1
chore: add missing metrics ( #3565 )
2025-09-26 03:30:55 +05:30
Darshan K
9bba8b0f9c
fix: refact rln-relay and post sync test ( #3434 )
2025-09-10 16:18:51 +05:30
Ivan FB
9f68c83fed
chore: bump dependencies for v0.36 ( #3410 )
...
* properly pass userMessageLimit to OnchainGroupManager
* waku.nimble 2.2.4 Nim compiler
* rm stew/shims/net import
* change ValidIpAddress.init with parseIpAddress
* fix serialize for zerokit
* group_manager: separate if statements
* protocol_types: add encode UInt32 with zeros up to 32 bytes
* windows build: skip libunwind build and rm libunwind.a inlcusion step
* bump nph to overcome the compilation issues with 2.2.x
* bump nim-libp2p to v1.10.1
2025-05-26 21:58:02 +02:00
Darshan K
39e65dea28
fix: timestamp based validation ( #3406 )
2025-05-26 17:56:29 +05:30
Ivan FB
e321774e91
properly pass userMessageLimit to OnchainGroupManager ( #3407 )
2025-05-14 23:38:26 +02:00
Ivan FB
42ab866f2c
chore: allow multiple rln eth clients ( #3402 )
...
* use of multiple Eth clients instead of just one
* config_chat2 enhance param comment
* group_manager: raise exception if could not connect to any of the eth clients
2025-05-12 10:57:13 +02:00
Darshan K
d86babac3a
feat: deprecate sync / local merkle tree ( #3312 )
2025-05-09 05:37:58 +05:30
fryorcraken
cc66c7fe78
chore!: separate internal and CLI configurations ( #3357 )
...
Split `WakuNodeConfig` object for better separation of concerns and to introduce a tree-like structure to configuration.
* fix: ensure twn cluster conf is still applied when clusterId=1
* test: remove usage of `WakuNodeConf`
* Remove macro, split builder files, remove wakunodeconf from tests
* rm network_conf_builder module as it is not used
---------
Co-authored-by: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com>
Co-authored-by: Ivan Folgueira Bande <ivansete@status.im>
2025-05-07 23:05:35 +02:00
Ivan FB
2d6e5ef9ad
chore: rln_relay simplify code a little ( #3392 )
2025-04-25 14:52:37 +02:00
Simon-Pierre Vivier
7dbc1fe061
fix: apply latest nph formating ( #3334 )
2025-03-19 11:30:47 -04:00
Darshan K
aef2a7045f
chore: improve epoch monitoring ( #3197 )
2025-03-14 01:44:33 +05:30
Ivan FB
c01a21e01f
chore: bump dependencies for v0.35 ( #3255 )
...
Changes:
modified: .gitmodules
modified: tests/waku_discv5/utils.nim
modified: tests/waku_enr/utils.nim
modified: tests/waku_rln_relay/test_rln_group_manager_onchain.nim
modified: tests/waku_rln_relay/utils.nim
modified: tests/waku_rln_relay/utils_onchain.nim
modified: vendor/nim-chronicles
modified: vendor/nim-eth
modified: vendor/nim-http-utils
modified: vendor/nim-json-rpc
modified: vendor/nim-json-serialization
modified: vendor/nim-libp2p - 1.8.0!
modified: vendor/nim-metrics
new file: vendor/nim-minilru
modified: vendor/nim-nat-traversal
modified: vendor/nim-presto
modified: vendor/nim-secp256k1
modified: vendor/nim-serialization
modified: vendor/nim-stew
modified: vendor/nim-taskpools
modified: vendor/nim-testutils
modified: vendor/nim-toml-serialization
modified: vendor/nim-unicodedb
modified: vendor/nim-unittest2
modified: vendor/nim-web3 - from distinct branch that solves Ethereum ABI issue.
modified: vendor/nim-websock
modified: vendor/nim-zlib
modified: vendor/nimcrypto
modified: waku.nimble
modified: waku/common/enr/builder.nim
modified: waku/common/enr/typed_record.nim
modified: waku/common/utils/nat.nim
modified: waku/discovery/waku_discv5.nim
modified: waku/waku_rln_relay/conversion_utils.nim
modified: waku/waku_rln_relay/group_manager/on_chain/group_manager.nim
modified: waku/waku_rln_relay/rln/wrappers.nim
modified: waku/waku_rln_relay/rln_relay.nim
* Eliminate C compilation issue with chat2bridge due to an overcomplicating import from json_rpc instead of using std/json
* Adapt ENR Record handling to new interface of nim-eth
* Fix chrash in group_manager on_chain
* Fix signature of register and MemberRegister to UInt256, check transaction success in register
* Upgrade json-rpc and serialization
* Update to match latest enr and nat interface
* Using of extracted result of contract macro - with necessary adaption
* Bump nim-chornicles, nim-libp2p, nimcrypto
* Bump nim-web3, nim-eth and deps - on_chain/group_manager.nim adaption
* Added status-im/nim-minilru submodule required by latest nim-eth
Fixing tests.
* group_manager: adapt smart contract param types
* update web3 vendor
* bump vendors for v0.35.0
* protobuf.nim: fix compilation error after nim-libp2p bump
* changes to make it compile after rebase from master
---------
Co-authored-by: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com>
2025-01-28 10:04:34 +01:00
Ivan FB
13316201f7
chore: Bump dependencies for v0.31.0 ( #2885 )
...
* bump_dependencies.md: add nim-results dependency
* change imports stew/results to results
* switching to Nim 2.0.8
* waku.nimble: reflect the requirement nim 1.6.0 to 2.0.8
Adding --mm:refc as nim 2.0 enables a new garbage collector that we're
not yet ready to support
* adapt waku code to Nim 2.0
* gcsafe adaptations because Nim 2.0 is more strict
2024-07-09 13:14:28 +02:00
Ivan Folgueira Bande
b574636e72
Merge branch 'release/v0.30' into update-master-from-release-v0.30
2024-07-02 10:16:40 +02:00
Darshan K
7ad9722ecf
chore: remove all pre-nim-1.6 deadcode from codebase ( #2857 )
2024-06-28 16:04:57 +05:30
Aaryamann Challani
e093af4c12
chore(rln-relay): add chain-id flag to wakunode and restrict usage if mismatches rpc provider ( #2858 )
2024-06-28 11:19:16 +02:00
Alvaro Revuelta
2d9f12fee8
fix(rln): nullifierlog vulnerability ( #2855 )
2024-06-28 09:25:10 +02:00
Aaryamann Challani
ec3d02a028
fix(rln-relay): clear nullifier log only if length is over max epoch gap ( #2836 )
2024-06-24 13:29:56 +02:00
Aaryamann Challani
aa16002a4e
feat(rlnv2): clean fork of rlnv2 ( #2828 )
...
* chore(rlnv2): contract interface changes (#2770 )
* fix: tests
* fix: remove stuint[32]
* chore(submodule): update zerokit submodule to v0.5.1 (#2782 )
* fix: remove cond comp for lightpush test
* fix: ci and nonceManager
2024-06-20 14:55:50 +02:00
Aaryamann Challani
7e4f18cda7
feat(rlnv2): clean fork of rlnv2 ( #2828 )
...
* chore(rlnv2): contract interface changes (#2770 )
* fix: tests
* fix: remove stuint[32]
* chore(submodule): update zerokit submodule to v0.5.1 (#2782 )
* fix: remove cond comp for lightpush test
* fix: ci and nonceManager
2024-06-20 11:35:21 +02:00
Ivan FB
652fc172d4
chore: generic change to reduce the number of compilation warnings ( #2696 )
2024-05-16 22:29:11 +02:00
Aaryamann Challani
7dd7531a4a
chore(rln-relay): resultify rln-relay 1/n ( #2607 )
...
* chore(rln-relay): resultify rln-relay 1/n
* fix: v2 too
* fix: for static group manager
* fix: cleanup, make PR digestable
* fix: remove resultified retry wrapper
* fix: cleanup
* fix: cleanup
2024-04-26 11:53:58 +02:00
Alvaro Revuelta
10ac14ca86
fix(rln): set a minimum epoch gap ( #2555 )
2024-03-27 11:36:14 +01:00
Ivan FB
cf6298ca1f
Generic re-style with nph 0.5.1 ( #2396 )
2024-03-16 00:08:47 +01:00
Aaryamann Challani
6d74aa08a9
chore(rln-relay-v2): wakunode testing + improvements ( #2501 )
...
* chore(rln-relay-v2): additional testing
* fix: bump librln to v0.4.2 for v2
* fix: catch possible error from the copyFrom
* ci: rename step title for rln-version
2024-03-12 16:20:30 +05:30
Aaryamann Challani
dc6381264f
fix(rln-relay): make nullifier log abide by epoch ordering ( #2508 )
...
* fix(rln-relay): nullifier log abide by epoch ordering
* fix: cleaner hasKey method, test
* chore: idiomatic usage of results, error handling
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-03-06 23:59:07 +05:30
Aaryamann Challani
545d9aee99
chore(rln-relay-v2): added tests for onchain rln-relay-v2 ( #2482 )
...
* chore(rln-relay-v2): added tests for onchain rln-relay-v2
* Update tests/waku_rln_relay/test_rln_group_manager_onchain.nim
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-03-01 14:15:40 +05:30
Alvaro Revuelta
cd9ebde02f
chore: remove rln epoch hardcoding ( #2483 )
2024-02-28 17:19:20 +01:00
Aaryamann Challani
57220f4606
chore(rln-relay): remove wss support from node config ( #2442 )
...
* chore(rln-relay): remove wss support from node config
* fix: incl regex pattern examples
* docs: update rln docs
2024-02-16 18:36:31 +05:30
Aaryamann Challani
1563ea8188
fix(rln-relay): graceful shutdown with non-zero exit code ( #2429 )
...
* fix(rln-relay): graceful shutdown with non-zero exit code
* fix: missed args
* fix: exception str
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
* fix: remove old comment
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-02-15 16:55:08 +05:30
Aaryamann Challani
3842584558
feat(rln-relay-v2): nonce/messageId manager ( #2413 )
...
* feat(rln-relay-v2): nonce/messageId manager
* fix: simplify
2024-02-13 10:18:02 +05:30
Aaryamann Challani
9133a2439c
feat(rln-relay-v2): rln-keystore-generator updates ( #2392 )
...
* chore: init rln-v2 in OnchainGroupManager
* chore: update wrappers
* fix: units for userMessageLimit
* valueOr for error handling
* fix: len usage
2024-02-09 16:31:45 +05:30
Ivan FB
45bc8add32
relay: add trace logs in case of msg validation rejection ( #2285 )
2023-12-15 13:34:30 +01:00
Ivan FB
7c692cc313
chore: vendor bump for 0.23.0 ( #2274 )
...
* on_chain/group_manager: use .async: (raises:[Exception]).
* bump nim-dnsdisc
* update nim-chronos to the latest state
* chat2.nim: catch any possible exception when stopping
* chat2bridge.nim: make it to compile after vendor bump
* ValidIpAddress (deprecated) -> IpAddress
* vendor/nim-libp2p additional bump
* libwaku: adapt to vendor bump
* testlib/wakunode.nim: adapt to vendor bump (ValidIpAddress -> IpAddress)
* waku_node: avoid throwing any exception from stop*(node: WakuNode)
* test_confutils_envvar.nim: ValidIpAddress -> IpAddress
* test_jsonrpc_store: capture exception
* test_rln*: handling exceptions
* adaptation to make test_rln_* to work properly
* signature enhancement of group_manager methods
2023-12-14 07:16:39 +01:00
Aaryamann Challani
a90ccfafd0
fix(rln-relay): segfault when no params except rln-relay is passed in ( #2047 )
2023-09-25 13:26:16 +05:30
Ivan Folgueira Bande
6694ec7689
Adding 'librln' to libwaku and cleaning waku_example.c ( #2044 )
...
* When adding the dependency with 'librln' to 'libwaku', it is required
to remove the dependency with 'confutils' because the 'nim-confutils'
module prevents the creation of a dynamic library (libwaku.so.)
* waku_example.c: less code is needed because the Waku Thread attends
any Waku event whereas the main thread can have a blocking scanf
to retrieve user inputs.
2023-09-19 17:01:32 +02:00
Aaryamann Challani
d91b0bdb2b
chore(rln-relay): add isReady check ( #1989 )
...
* chore(rln-relay): add isReady check
* fix(rln-relay): multiple parameters for checking if node is in sync
* fix: set latesthead in newHeadCallback
* fix: explicit rpc call
* fix: unhandled exception
2023-09-06 14:16:19 +05:30
Aaryamann Challani
7c4ce7361b
chore(rln-relay): clean up nullifier table every MaxEpochGap ( #1994 )
2023-09-06 13:48:02 +05:30
Aaryamann Challani
507966c844
feat(relay): ordered validator execution ( #1966 )
...
* feat(relay): ordered validator execution
* fix: make more readable
* test: ignore accepts only
* fix: idempotent .subscribe
* fix(rln-relay): make validators private
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
* fix: include comments, unsubscribe behaviour
* fix: compilation
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
2023-09-05 14:35:07 +05:30
Aaryamann Challani
1c18e4eff1
chore(rln-relay): log levels for certain logs ( #1986 )
2023-09-04 18:43:59 +05:30
Aaryamann Challani
8b34c4a4e6
chore(rln-relay): use the only key from keystore if only 1 exists ( #1984 )
...
* chore(rln-relay): use the only key from keystore if only 1 exists
* fix: convert iterator to seq and then index into it
2023-09-04 15:46:44 +05:30
Alvaro Revuelta
1b96999d55
chore(api): validate rln message before sending (rest + rpc) ( #1968 )
2023-09-01 15:03:59 +02:00
Aaryamann Challani
eeff44c9f0
fix(rln-relay): modify keystore credentials logic ( #1956 )
...
* fix(rln-relay): modify keystore credentials logic
fix: bump version
* Update waku/waku_rln_relay/group_manager/on_chain/group_manager.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
* Update tests/waku_rln_relay/test_waku_rln_relay.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
* Update waku/waku_keystore/protocol_types.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
* fix: greatly improve error handling
* fix: display proc and appropriate assert
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
2023-08-29 17:46:21 +05:30
Aaryamann Challani
0566d21000
chore(rln-relay): integrate waku rln registry ( #1943 )
2023-08-25 22:48:52 +05:30
Alvaro Revuelta
fa716d9b92
chore(rln): remove old and add new rln metric ( #1926 )
2023-08-22 16:30:33 +02:00
Aaryamann Challani
a2519906c6
fix(rln-relay): remove registration capability ( #1916 )
2023-08-22 11:49:18 +05:30
Alvaro Revuelta
6320ffb28a
chore(rln): run rln in all relay pubsubtopics + remove cli flags ( #1917 )
2023-08-21 08:55:34 +02:00
Aaryamann Challani
ce6f7e9e77
fix(rln-relay): invalid start index being set results in invalid proofs ( #1915 )
...
* fix(rln-relay): invalid proof usage
* fix(rln-relay): use startIndex from first event in block
* fix: latestIndex set after registerBatch
2023-08-18 16:38:24 +05:30
Hanno Cornelius
5e2e1b6bd0
chore: remove references to v2 ( #1898 )
...
* chore: remove references to v2
* fix: lingering rln-relay import path
2023-08-09 18:11:50 +01:00