Nicholas Molnar
c77b74c10c
Add/delete decryption keys
2022-05-27 20:37:14 +10:00
Nicholas Molnar
4734e4b7c7
Finish implementation
2022-05-27 20:37:14 +10:00
Franck Royer
aad678a708
Add a timeout to waitForRemotePeer
2022-05-19 16:04:38 +10:00
Franck Royer
06930c15dc
Remove unneeded variable
2022-05-19 16:04:06 +10:00
Franck Royer
d9940f4d9b
Simplify async iterator usage
...
The iterator will return only once there is a first item available.
Hence, there is no need to add an observer on `change:protocols` event.
2022-05-19 16:04:06 +10:00
Franck Royer
4b43db6daa
Change default to wait for Relay only
...
Store is not used by all applications, also, note all
nodes have store enabled.
Default value should prefer working software over feature complexity.
2022-05-19 16:04:04 +10:00
Franck Royer
277e11f781
Remove unneeded path from libp2p-noise import
2022-04-06 13:41:15 +10:00
Franck R
a488988f37
Implement Waku Store 2.0.0-beta4 ( #566 )
2022-02-24 16:25:58 +11:00
Franck R
3a4e98e184
Remove unnecessary use of Buffer ( #548 )
2022-02-17 13:23:39 +11:00
Franck R
64657a250f
Replace rlp with ethers' rlp ( #526 )
2022-02-16 14:08:48 +11:00
Franck R
160fea0e7b
Waku.dial accepts protocols expected from the peer. Defaults to Waku Relay only. (#516 )
2022-02-13 19:04:50 +11:00
Franck R
0f678750df
Improve docs ( #519 )
2022-02-11 17:27:15 +11:00
Franck R
4c80f7f0df
Remove odd prettier config ( #500 )
2022-02-04 14:12:00 +11:00
Franck R
69f0005445
Bump libp2p from 0.32.4 to 0.36.2, libp2p-gossipsub from 0.12.1 to 0.13.0 ( #470 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 15:12:08 +11:00
Franck R
47c5565371
Wait for heartbeat before considering relay peer ready ( #472 )
2022-01-31 15:30:49 +11:00
Franck R
03491a892b
Fix waitForRemotePeer & test behaviour ( #471 )
2022-01-31 10:30:25 +11:00
Franck R
d9248dbc56
Replace waitForConnectedPeer with waitForRemotePeer ( #469 )
2022-01-30 21:56:21 +11:00
Franck R
cba5212872
Upgrade nim-waku to v0.7 ( #417 )
2022-01-19 15:43:45 +11:00
Franck R
96cf24d34e
Allow specifying decryption methods and content topic ( #409 )
2022-01-17 14:11:05 +11:00
Franck Royer
fa4e94750f
Make parseBootstrap a class
...
Makes it easier to use the resulting function and document defaults.
2022-01-13 16:40:10 +11:00
Franck Royer
f0eb9d1609
Rename libp2p bootstrap import
...
To avoid name conflict.
2022-01-13 16:39:52 +11:00
Franck Royer
284644b822
Fix-up new bootstrap API
2022-01-13 16:39:52 +11:00
Franck Royer
e47335f4c0
Implement DNS Discovery and ENR tree
2022-01-13 15:38:22 +11:00
Franck Royer
e244bae03d
Renamed getBootstrapNodes to getNodesFromHostedJson
...
So that the name better matches the function's behaviour.
2022-01-13 15:33:37 +11:00
Franck Royer
6f4d765e30
Remove useless log
2021-10-05 13:36:04 +11:00
Franck Royer
640a672257
Do not setup libp2p discovery module if we fail to retrieve node addrs
2021-09-21 14:47:45 +10:00
Franck Royer
a21d641280
Added Waku.waitForConnectedPeer helper
...
To ensure that we are connected to Waku peers when using the bootstrap
option.
2021-09-02 15:46:23 +10:00
Franck Royer
cfb97b6bde
Allow passing decryption keys to Waku instance
...
Keys can be set at creation or at run time.
They are passed to `WakuStore` and `WakuRelay` instances.
2021-09-02 15:20:43 +10:00
Franck Royer
1d48dc4372
Rename all pubsubTopic occurrences to pubSubTopic
2021-08-20 10:13:02 +10:00
Franck Royer
60290e8d84
Moved DefaultPubSubTopic to waku.ts and fixed the casing
...
The pubsub topic is used by several protocol, not just relay.
2021-08-20 10:12:55 +10:00
Franck Royer
3f95934250
Replace deprecated package for libp2p-noise
2021-08-19 11:26:34 +10:00
Franck Royer
6d42c39298
export values so they are included in the documentation
2021-08-13 16:18:03 +10:00
Franck Royer
140791cc91
Provide easy way to bootstrap when creating Waku node
2021-08-13 16:18:00 +10:00
Franck Royer
0cfdd34284
Removed DefaultContentTopic
...
As developers must choose a content topic for their app.
The`WakuMessage` APIs have been changed to move `contentTopic` out of
the optional parameters. Recommendations for content topic can be found
at https://rfc.vac.dev/spec/23/ .
2021-07-28 12:03:51 +10:00
Franck Royer
9638f6db10
Introduced new relayKeepAlive option
...
..on `Waku` with a default to 5min to send ping messages over relay
to ensure the relay stream stays open.
This is a workaround until
[js-libp2p#744](https://github.com/libp2p/js-libp2p/issues/744 ) is done
as there are issues when TCP(?) timeouts and the stream gets closed.
2021-07-27 16:24:04 +10:00
Franck Royer
ea33b9cd8a
Rename keepAlive option to pingKeepAlive
...
In preparation for introducing a relay keep alive feature.
2021-07-27 16:06:57 +10:00
Franck Royer
92a76b3be0
Support multiple protocol id for relay
...
Support id of latest nim-waku release 0.4 and current master.
2021-07-21 15:43:30 +10:00
Franck Royer
f3738b1eac
doc: Fix keep alive default value
2021-07-15 14:00:24 +10:00
Franck Royer
e443237a81
Remove local type definitions for Karma to not return "not found"
2021-07-14 12:25:23 +10:00
Franck Royer
a0d3a21762
Improve importing of Muxed Stream type
2021-07-14 11:38:59 +10:00
Franck Royer
acdc032253
Simplify code
2021-07-09 15:50:16 +10:00
Franck Royer
aaf3b1867e
Disable keep alive by default as latest nim-waku release does not
...
support ping protocol.
2021-07-05 09:40:07 +10:00
Franck Royer
370a347ff2
Actually disable keep alive if set to 0
2021-07-02 10:51:58 +10:00
Franck Royer
6cb92dd4b9
Upgrade to latest libp2p versions
...
And few other packages
2021-06-22 13:21:23 +10:00
Franck Royer
381fc8b82c
Add keep alive feature
...
Using libp2p ping protocol.
2021-06-21 09:46:41 +10:00
Franck Royer
e3b4a42822
Add keep alive feature
...
Using libp2p ping protocol.
2021-06-21 09:46:29 +10:00
Franck Royer
5ce0717f05
Enable passing a custom pubsub topic
...
Note that we currently only support one, and only one, pubsub topic for
a given instance across the codebase. The PubSub topic needs to be set
when instantiating the Waku* classes.
At this stage, we believe that most DApp will use, and only use, the
default PubSub topic. Some application want to use an alternative topic
but not use the default one so this behaviour should be fine. See #174
for details.
2021-06-09 15:00:03 +10:00
Franck Royer
f17a008278
Separate the libp2p create options from Waku's
2021-06-09 15:00:02 +10:00
Franck Royer
de3aea626a
Implement Light Push protocol
2021-05-19 12:29:29 +10:00
Franck Royer
6f7c1e0ca3
Enhance addPeerToAddressBook
...
So that consumer does not need to import multiaddr and peer-id.
2021-05-13 13:42:40 +10:00