Alvaro Revuelta
7cc3239466
feat(networking): integrate gossipsub scoring ( #1769 )
2023-06-06 19:28:47 +02:00
5ebf095477
feat(discv5): added find random nodes with predicate ( #1762 ) ( #1763 )
...
* feat(discv5): added find random nodes with predicate (#1762 )
Co-authored-by: Lorenzo Delgado <lnsdev@proton.me >
* chore: play around with sleep times on tests
* chore: simplify flaky tests
* chore: update waku/v2/node/waku_node.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* chore: update tests/v2/test_waku_discv5.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* chore: update examples/v2/subscriber.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
---------
Co-authored-by: Lorenzo Delgado <lnsdev@proton.me >
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
2023-06-06 16:36:20 +02:00
Vaclav Pavlin and Ivan Folgueira Bande
b9892120b9
chore(docs): fix docs and mark some as deprecated ( #1754 )
...
* chore(docs): fix docs and mark some as deprecated
* Update docs/contributors/continuous-integration.md
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* Update examples/v2/README.md
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* mark TODO with date
* replace nim-waku with nwaku in docs
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
2023-05-25 13:37:49 +02:00
Ivan Folgueira Bande
b9ea435acc
refactor: proper use of setupNat ( #1740 )
...
Notice that I had to adapt to use 'rlpx_connected_peers' instead
of 'connected_peers' in 'wakunode1.nim' because due to the update
of the 'vendor/nim-eth', which adds the dependency-break with
'confutils' but also includes another changes.
Aside note: we cannot have 'confutils' dependency in 'nim-eth' because
that will prevent the generation of any waku dynamic library.
2023-05-17 18:32:53 +02:00
Ivan Folgueira Bande
2f1eb2c0ca
feat(cbindings): first commit - waku relay ( #1632 ) ( #1714 )
...
* feat(cbindings): first commit - waku relay (#1632 )
* test_app.nim: fix compilation issue. App.init(..) -> App.new(..)
* Simplifying library name (libwaku) and standardizing function names (waku_*)
* Proper wrapper of the waku_node API and creation of the libwaku.a
* Rolling back changes that are not needed
* Rolling back changes that are out of the scope of this task
* wakunode.nim: Removing unnecessary import
* Aplying PR suggestions
* Renaming 'waku.h' -> 'libwaku.h'
* Use of 'isNil' instead of '== nil'
* libwaku.nim: explicitly setting waku_poll() as gcsafe
2023-05-12 18:08:41 +02:00
Hanno Cornelius and Ivan Folgueira Bande
573cd548ef
feat: example using filter and lightpush ( #1720 )
...
* feat: add filter-lightpush example
* chore: examples/v2/filter_subscriber.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* chore: update examples/v2/filter_subscriber.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
2023-05-12 12:35:26 +02:00
Lorenzo Delgado
1b1708884b
chore(core): move utils time module to waku_core
2023-04-19 16:39:52 +02:00
Lorenzo Delgado
e2dc11912c
chore(core): rename waku_message module to waku_core
2023-04-19 13:29:23 +02:00
Lorenzo Delgado
cc85f7f213
chore: flatten waku v2 protocols folder
2023-04-18 15:22:10 +02:00
Lorenzo Delgado
97f3b7be4e
feat(node): added waku node builder type
2023-04-05 14:27:11 +02:00
Lorenzo Delgado
5cca16b818
chore: pointed all waku node imports to the barrel import
2023-04-05 11:58:59 +02:00
Lorenzo Delgado
d00c0a0a8d
refactor(enr): move waku enr multiaddr to typedrecod and builder extensions
2023-03-30 09:35:13 +02:00
Lorenzo Delgado
f5c77ed76f
refactor(enr): node capabilities code clean up and reorganization
2023-03-08 15:44:10 +01:00
Lorenzo Delgado
4ac7af2928
chore(enr): move waku_enr to protocols module
2023-03-07 10:52:12 +01:00
Lorenzo Delgado
6ffc95a2ec
chore: move discovery protocols under protocol module
2023-03-06 17:18:41 +01:00
Alvaro Revuelta
5a939ee37c
feat: add WakuMessage validation in gossipsub ( #1537 )
2023-02-07 17:42:17 +01:00
Aaryamann Challani
13b7153aad
feat(discv5): advertise custom multiaddresses ( #1512 )
...
* feat(discv5): allow custom multiaddr advertisement in discv5
feat(discv5): allow custom multiaddr advertisement in discv5
feat(discv5): move discv5 setup from wakunode2 to waku_node
fix(waku_node): def param
test(discv5): test for ext multiaddr
fix(discv5): address comments
fix(discv5): address comments
fix(wakunode2): discoveryconfig in var before init
fix(discv5): pass multiaddr to discv5 directly
fix(discv5): make multiaddrs optional
fix(test): discv5 init
fix(discv5): split discv5 mounting from waku_node
chore(discv5): s/WakuAddressMetadata/WakuNodeAddrMeta/g
* fix(waku_node): 1.25 max conns
* fix(discv5): s/WakuNodeAddrMeta/NetConfig/g
* fix(discv5): address reviews
* fix(discv5): smaller try-catches
* fix(discv5): missing arg
* fix: compile error
2023-02-07 18:36:50 +05:30
Aaryamann Challani
fd433ce0e2
fix(rng): create rng only within isMainModule blocks ( #1523 )
...
* fix(rng): create rng only within isMainModule blocks
* fix(rng): wakucanary rng
* fix(rng): address comments
2023-02-06 17:23:05 +05:30
Lorenzo Delgado
0ea7acdd6a
chore(peer_manager): added peer_manager barrel module
2023-02-06 10:03:30 +01:00
Lorenzo Delgado
6f21b33831
feat(wakunode2): support log format format selection
2022-12-07 12:30:32 +01:00
Alvaro Revuelta
8eada1927a
refactor: reuse nim-libp2p peerstore + move peermanager logic ( #1383 )
...
* refactor: reuse nim-libp2p peerstore + move peermanager logic
* refactor: fix comments
* refactor: modify reconnectPeers and unittest
* feat(apps): new flag for peerStoreCapacity
* fix(examples): fix example2 target
* refactor: fix comments
2022-11-24 14:11:23 +01:00
Lorenzo Delgado
44c07d96ae
chore: rename protocols rpc_codec procs from init to decode
2022-11-07 16:24:16 +01:00
Lorenzo Delgado
a013cf68d5
chore: build rln dependecies only when building v2
2022-11-07 09:14:21 +01:00
Alvaro Revuelta
98a611e6c1
chore(examples): add pubsub example with production env ( #1333 )
...
* chore(examples): add pubsub example with production env
* chore(examples): fix comments 1/2
* chore(examples): fix comments 2/2
2022-11-04 13:40:24 +01:00
Lorenzo Delgado
0e70c043b6
refactor(wakunode2): move configuration load logic to config module
2022-11-03 10:45:06 +01:00
Lorenzo Delgado
141e3d443a
fix: replace TaintedString type deprecated in nim 1.5
2022-11-02 14:55:48 +01:00
Hanno Cornelius
1a271d9c79
chore: update submodules and bump Nim to 1.6.6 ( #1307 )
...
* chore: update submodules
* fix: libp2p now provides callback to update peer addrs
* fix: breaking change in EthereumNode constructor
* fix: contentType type has changed (again)
* fix: explicit future type
* fix: nim 1.6.6 error handling requirements
* fix: missed a spot - peer info addrs in sim2
* fix: help compiler a bit here
2022-10-28 12:51:46 +03:00
Lorenzo Delgado
3b228db37f
chore(node): waku node code reorganization
2022-10-27 17:29:09 +02:00
Lorenzo Delgado
2ca1d9d954
chore(wakunode2): move wakunode2 to apps directory
2022-10-18 12:35:26 -05:00
Lorenzo Delgado
c8ac16d6fb
refactor(node): split wakunode into waku_node and wakunode2
2022-10-18 09:05:53 -05:00
Lorenzo Delgado
5959680b8e
chore: move apps and tools to their own directory
2022-10-12 14:41:25 -05:00
G
a03315b83c
refactor(rln): display byte arrays in hex as uints and fix Kilic's proofVerify proc ( #1259 )
...
* refactor(rln): convert 32 bytes arrays to hex as uints
* fix(rln): fix Kilic's proofVerify proc to take stub validRoots
* refactor(rln): use input's length when convert to/from hex
* chore(rln): print more commitments inHex in debug logs
2022-10-12 10:38:48 +02:00
Aaryamann Challani
042ea550df
chore(rln-relay): make account address optional ( #1258 )
...
* chore(rln-relay): make account address optional
* fix(rln-relay): onchain test
* chore(chat2): update docs, and handle error case in chat2
* fix(rln-relay): handle registration better
2022-10-12 07:48:11 +05:30
Aaryamann Challani
e39efc28cf
chore(rln-relay): namespaced flags ( #1204 )
...
* chore(rln-relay): namespaced flags
* chore(rln-relay): shorten flag size
* fix(rln-relay): consistent config naming
* chore(rln-relay): consistency with address configs
* fix(rln-relay): config
2022-10-03 13:25:56 -07:00
Sanaz Taheri Boshrooyeh
90591d8683
chore(rln-relay): specifies the address type for the eth-client-address config parameter ( #1176 )
2022-09-23 21:57:28 -07:00
Hanno Cornelius
505754b36f
fix: signing key for wakuv2 DNS lists has changed ( #1174 )
2022-09-22 14:51:17 +02:00
Lorenzo Delgado
4ece585a3a
refactor(wakunode): remove deprecated non-async methods
2022-09-21 18:27:40 +02:00
kaiserd
3e894b0072
feat: waku peer exchange (RFC34) ( #1152 )
2022-09-20 13:03:34 +02:00
Lorenzo Delgado
568ead13af
refactor(store): protocol code refactoring and api reorganization
2022-09-20 11:39:52 +02:00
Lorenzo Delgado
dd3b44ff97
refactor(wakunode): remove waku rln relay export from wakunode
2022-09-14 12:25:05 +02:00
Lorenzo Delgado
3724c46250
refactor(wakunode): remove waku message export from wakunode
2022-09-14 12:25:05 +02:00
Lorenzo Delgado
7ce48aae4d
refactor(wakunode): remove libp2p builders export from wakunode
2022-09-14 12:25:05 +02:00
Hanno Cornelius
73a93ed0d2
chore: update nwaku submodules ( #1123 )
...
* chore: update submodules
* fix: SIGTERM ambiguity
* fix: ambiguous RNGs
* fix: ContentType is no longer a string
* fix: more fixes related to ambiguous RNGs
* fix: start all protocols
* chore: also update nim-eth
* chore: important new fixes in nim-libp2p
* fix: more changes related to RNG. Some reversion to reflect nim-eth update
* fix: breaking changes in nim-eth submodule
* fix: start protocols in tests
* fix: chat2bridge protocols async mounting
* fix: v1 test compilation
* fix: rln test compilation
* fix: remove confusing keys qualifier for the same HmacDrbgContext
2022-09-07 16:31:27 +01:00
Aaryamann Challani
260615c742
chore(chat2): selection of store node at random ( #1118 )
...
* chore(chat2): selection of store node at random
* fix(chat2): random number overflow fix
2022-09-06 16:57:55 +05:30
Sanaz Taheri Boshrooyeh
a7979540bc
fix|feat(rln-relay|rln-chat2): Handling on-chain transactions errors and informing chat2 users ( #1093 )
...
If any error occurs during the on-chain registration, it will be handled; the chat2 users will get informed about the cause and the installation of rln-relay gets discarded and the chat program continues with no crashing.
2022-08-30 10:59:02 -07:00
Lorenzo Delgado
cb3912fc64
refactor(waku-filter): remove wakunode2 waku_filter exports
2022-08-29 10:14:35 +02:00
Sanaz Taheri Boshrooyeh
cd01c673f9
feat(Rln relay): Improves rln-chat2 interface, displays links to the registration tx, warns about spam messages ( #1082 )
...
* warns about publishing spam messages, display tx hash on Goerli
* passes registration handler
2022-08-24 15:47:06 -07:00
Sanaz Taheri Boshrooyeh
49a6b7c462
feat(Rln-Relay): Consolidates the input paths of rln credential, chat2 reads rln credential from file only ( #1080 )
...
* Consolidates the input paths of rln credential, accepts credential file only
* fixes a typo
2022-08-18 10:35:02 -07:00
G
adef02cfaa
fix(rln): add zerokit rln to chat2 + fix static group members ( #1077 )
2022-08-17 12:11:46 +02:00
Lorenzo Delgado
913aef504d
refactor(waku-lightpush): remove wakunode2 waku_lightpush exports
2022-08-10 19:44:40 +02:00