517 Commits

Author SHA1 Message Date
Franck Royer
661c6227e7
Move type definition to the top 2022-05-20 10:32:43 +10:00
Franck Royer
ab3b23f100
Remove Buffer from symmetric.ts 2022-05-20 10:32:43 +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
4639537fd6
Ensure ENR.create is used instead of the constructor 2022-05-19 15:17:19 +10:00
Franck Royer
1d8e3837ea
Replace deprecated multihashes with multiformats 2022-05-19 15:17:16 +10:00
Franck Royer
e8ba7f6440
Calculate peer id at creation
As the peer id method calculation method will become async.
2022-05-19 15:16:35 +10:00
Franck Royer
b708077483
Remove assert usage 2022-05-13 17:28:38 +10:00
Franck Royer
c41dfcba40
test: Increase timeout 2022-05-10 15:24:53 +10:00
Franck Royer
7a15fbf8f8
test: Ensure private key is not 0 2022-05-10 15:07:17 +10:00
Franck Royer
50fa2d881d
Use @noble/secp2156k1's sha3 util 2022-05-10 10:59:27 +10:00
Franck Royer
9829cc2cab
Use @noble/secp2156k1's random byte util 2022-05-10 10:47:13 +10:00
Franck Royer
1fd32639b9
Private Key 0..0 is not valid 2022-05-09 23:10:16 +10:00
Franck Royer
1ca7215478
Improve error feedback when crypto/subtle is not available 2022-05-09 23:10:16 +10:00
Franck Royer
d3671b7167
Remove secp256k1 usage from entree.ts 2022-05-09 23:10:15 +10:00
Franck Royer
3f6d9fb590
Remove secp256k1 usage from secp256k1.ts 2022-05-09 23:10:14 +10:00
Franck Royer
ae6cb98d5d
Remove secp256k1 usage from enr.ts 2022-05-09 23:10:14 +10:00
Franck Royer
8e6f9e320e
Remove secp256k1 usage from version_1 2022-05-09 16:57:48 +10:00
Franck Royer
12528acaeb
Remove node crypto import 2022-05-09 16:05:22 +10:00
Franck Royer
111f31bb53
Remove node implementation 2022-05-09 16:05:22 +10:00
Franck Royer
9dae5168fc
Use browser (subtle) implementation for all env 2022-05-09 16:05:14 +10:00
Franck Royer
a5219efc14
Support ENR waku2 field 2022-05-05 14:40:53 +10:00
Franck Royer
d30a918a44
Fix odd case where 0 is encoded as an empty byte array 2022-05-05 14:40:53 +10:00
Franck Royer
5de2f1996f
Facilitate the use of a polyfill for BigInt
By preferring the use of `BigInt` over integer literal (`n` postfix).
2022-05-02 14:51:14 +10:00
Franck Royer
277e11f781
Remove unneeded path from libp2p-noise import 2022-04-06 13:41:15 +10:00
Franck Royer
f953a41546
Declare it-pipe dependency, properly import
As it was implicitly using it-pipe@1.0.0 that has a different import
format.
2022-04-06 13:41:15 +10:00
Franck
2511b7daec
Nwaku v0.9 is taking more time to start-up 2022-04-06 12:39:18 +10:00
Franck
dc90279905
Rename nim-waku to nwaku 2022-04-06 12:39:18 +10:00
Franck Royer
dc6d37a94e
test: Only use timestamps in the past for a more realistic test 2022-04-06 12:39:18 +10:00
Franck Royer
d95d773f45
Send nanoseconds timestamp in nim-waku RPC 2022-04-06 12:39:18 +10:00
Franck Royer
c07396c30b
Update nwaku RPC with nanoseconds timestamp 2022-04-06 12:39:18 +10:00
Franck Royer
49998c02bd
Ensure Uint8Array is passed to utf-8 conversion function
Proto unexpectedly returns an `Array<number>`.
2022-03-25 17:08:03 +11:00
Franck Royer
52009b7be9
Use concat to simplify code 2022-03-25 17:08:03 +11:00
Franck Royer
bf63e85e9e
Move utf-8 utils to utils 2022-03-25 17:08:03 +11:00
Franck Royer
638b96c17d
Replace custom utf-8 convert implementations with uint8arrays 2022-03-25 17:08:03 +11:00
Franck Royer
6ef0550433
Replace custom utf-8 convert implementations with uint8arrays 2022-03-25 17:08:03 +11:00
Franck Royer
33e6c3fe39
Replace custom hex implementations with uint8arrays 2022-03-25 17:08:02 +11:00
Franck Royer
a915acfcda
Remove deprecated utils functions 2022-03-25 17:08:02 +11:00
Franck Royer
c4d779d1db
Remove equalByteArrays 2022-03-25 17:08:02 +11:00
Franck Royer
d0dea3884b
Replace Base 64 buggy conversion functions with uint8arrays 2022-03-25 11:02:40 +11:00
Dylan Oliver
9cf2924f7b
check presence of window before using it and appease ts types 2022-03-18 14:41:32 +11:00
Franck R
c806135810
Revert "Use BigInt constructor instead of happening n as it seems to have better browser support. (#611)" (#613)
This reverts commit f4e81dd29ce6a0c98a9c10d7a8bf3e6a3f17b0a0.
2022-03-13 20:33:47 +11:00
Franck R
f4e81dd29c
Use BigInt constructor instead of happening n as it seems to have better browser support. (#611) 2022-03-13 10:11:04 +11:00
Franck R
b904114d1f
Export protocols (#609) 2022-03-10 14:00:09 +11:00
Franck R
ed23332965
Allow passing multiaddr to bootstrap.peers (#608) 2022-03-09 18:38:28 +11:00
Franck R
e649f772a7
WakuMessage.timestamp field must use nanoseconds (#606) 2022-03-09 12:00:02 +11:00
Franck R
2798376776
Remove ecies-geth (#598)
* test: specify encryption method

Makes debugging easier.

* Fix log typo

* Remove ecies-geth

Start removal of elliptic dependency and move towards exclusive usage to
CryptoSubtle.
2022-03-06 23:20:59 +11:00
Franck R
ad5b3ddc7f
New pubsub_topic field on the cursor of Waku Store queries (#596) 2022-03-04 16:47:23 +11:00