Franck Royer
20b3b5b667
Move common crypto functions to crypto.ts
2022-05-20 10:59:32 +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
1fd32639b9
Private Key 0..0 is not valid
2022-05-09 23:10:16 +10:00
Franck Royer
8e6f9e320e
Remove secp256k1 usage from version_1
2022-05-09 16:57:48 +10: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
928d888ad8
Remove 'browser' from test filename
...
These tests are run both on node and in browser.
2021-09-24 17:09:34 +10:00
Franck Royer
d900945b6d
Add 'node' in test file names that only run on node
2021-09-24 17:09:34 +10:00
Franck Royer
75352abcac
Promote dedicated symmetric key generation API
...
Using the private key API for symmetric key is confusing.
2021-09-02 15:09:31 +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
1d4137e2c4
Rename so that it does make dev thinks it's for asymmetric enc only
2021-07-16 10:24:29 +10:00
Franck Royer
13c8a0527b
Test symmetric encryption with nim-waku using relay
2021-07-15 12:12:43 +10:00
Franck Royer
302fc20243
Remove dupe tests
2021-07-15 10:36:24 +10:00
Franck Royer
25fccb4c9a
Add symmetric encryption support to Waku Message
2021-07-15 10:23:40 +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
4fe0116039
Use ecies library that provide right ECIES parameters
2021-07-12 11:30:19 +10:00
Franck Royer
2b1a6dafea
Skip nim-waku interop tests
...
ecies-parity does not provide the same ECIES that waku:
ecies-parity uses a shared hmac of `[0,0]` whereas waku uses `[]`.
Work is needed to find or create a new library.
2021-07-09 15:50:17 +10:00
Franck Royer
22c716e0e6
Add API to generate keys
2021-07-09 15:50:16 +10:00
Franck Royer
f123cd7e62
Test asymmetric encryption against nim-waku
2021-07-09 15:50:16 +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
7b5c8d6094
Move waku_message to dedicated folder
2021-07-09 14:49:09 +10:00