28 Commits

Author SHA1 Message Date
fryorcraken.eth
f44e13885c
chore: replace todo with issue reference 2022-09-06 12:29:13 +10:00
fryorcraken.eth
d79984fdba
fix: do not discard messages with no payload
While they do not need to be decoded, they might still be used.
e.g. timestamp, network connectivity, etc.
2022-08-31 14:22:06 +10:00
fryorcraken.eth
db22c2e86b
fix: set default value for version if not on the wire 2022-08-24 19:06:53 +10:00
fryorcraken.eth
79146711c5
fix: ensure the content topics that needs to be decrypted are passed 2022-08-24 17:51:06 +10:00
Franck Royer
43e9de6fe2
cleanup: Migrate from ts-proto to protons 2022-06-20 14:32:21 +10:00
Franck Royer
82aba32f9e
Migrate from ts-proto to protons
The latter does not bring Buffer/Long and is ESM compatible.
2022-06-20 14:32:20 +10:00
Franck Royer
cb10ca16d1
Migrate package to ESM 2022-06-20 14:32:20 +10:00
Franck Royer
8e6f9e320e
Remove secp256k1 usage from version_1 2022-05-09 16:57:48 +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
bf63e85e9e
Move utf-8 utils to utils 2022-03-25 17:08:03 +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 Royer
f73afc5244
Handle errors thrown when converting to utf-8 2022-03-01 16:58:15 +11:00
Franck R
a488988f37
Implement Waku Store 2.0.0-beta4 (#566) 2022-02-24 16:25:58 +11:00
Franck R
64657a250f
Replace rlp with ethers' rlp (#526) 2022-02-16 14:08:48 +11:00
Franck R
4c80f7f0df
Remove odd prettier config (#500) 2022-02-04 14:12:00 +11:00
Franck R
96cf24d34e
Allow specifying decryption methods and content topic (#409) 2022-01-17 14:11:05 +11:00
Franck Royer
1f692f1683
Fixed payloadAsUtf8 returning garbage on utf-8 non-ascii characters 2021-08-02 09:51:37 +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
44efd28ac1
Update terminology and docs to cater for both sym and asym encryption 2021-07-15 12:25:47 +10:00
Franck Royer
25fccb4c9a
Add symmetric encryption support to Waku Message 2021-07-15 10:23:40 +10:00
Franck Royer
56c30059b2
Add comments on Waku Message Options 2021-07-15 10:23:34 +10:00
Franck Royer
48bdb0b3f2
Use WakuMessage version 1 instead of eth-crypto 2021-07-12 17:09:44 +10:00
Franck Royer
f95d9aec3c
Add version 1 support to waku relay, test decryption against nim-waku 2021-07-09 15:50:16 +10:00
Franck Royer
34e6ac5247
Add version 1 support to WakuMessage 2021-07-09 15:50:15 +10:00
Franck Royer
2266f31d30
Move optional parameters to a single Options object. 2021-07-09 15:50:15 +10:00
Franck Royer
381333347e
Remove dupe code 2021-07-09 15:50:15 +10:00
Franck Royer
7b5c8d6094
Move waku_message to dedicated folder 2021-07-09 14:49:09 +10:00