Commit Graph

570 Commits

Author SHA1 Message Date
Franck Royer 7c47a6b215
Merge pull request #222 from status-im/eth-dm-observer-infinite-loop 2021-07-09 14:48:39 +10:00
Franck Royer d00c1c874a
Do not fail if connection to one peer fails
As long as we connect to at least one peer then we can move forward.
2021-07-09 14:35:06 +10:00
Franck Royer 66d450ae36
Fix bad comparison logic 2021-07-09 14:35:06 +10:00
Franck Royer 44db58d2fd
Fix the dependencies 2021-07-09 14:35:04 +10:00
Franck Royer eec6de9f0c
Remove InitWaku component
There was an issue where the observers are added/removed continously.
This is due to using `useEffect` on props.

By removing this component then `useEffect` ends only being called when
 waku changes, ie, at initialisation.
2021-07-09 14:34:33 +10:00
Franck Royer db6bb95a9b
Merge pull request #220 from status-im/eth-dm-clean-up 2021-07-05 09:55:17 +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 707979bf4c
Only use Prod nodes
js-waku maintains compatibility with latest nim-waku release, deployed
in the prod fleet.

js-waku may not be compatible with nim-waku master branch if backward
compatible changes were introduced.
2021-07-02 15:28:26 +10:00
Franck Royer 354dcd66a5
Constructor is more appropriate when comparing function signatures 2021-07-02 13:52:50 +10:00
Franck Royer c5419630fc
Define util function for hex<>buf conversions 2021-07-02 13:52:10 +10:00
Franck Royer a4dd8771f6
re-arrange app bar and display address in use 2021-07-02 13:45:22 +10:00
Franck Royer 5c3f768c83
Do not crash if Ethereum is locked 2021-07-02 13:27:50 +10:00
Franck Royer 6bc79ad587
Merge pull request #218 from status-im/remove-json 2021-07-02 13:12:42 +10:00
Franck Royer e59e9f4162
Fix typo 2021-07-02 11:44:04 +10:00
Franck Royer e9a1d88512
Fix Public Key Message validation and use it 2021-07-02 11:29:42 +10:00
Franck Royer 2f2f89cf65
Fix filtering of own messages 2021-07-02 11:29:41 +10:00
Franck Royer f020aa7a8c
Improve logging upon receiving messages 2021-07-02 10:54:56 +10:00
Franck Royer 3c618f435e
Fix typo 2021-07-02 10:52:46 +10:00
Franck Royer f9174cd3d2
Do not process Public Key Message if field is missing 2021-07-02 10:52:35 +10:00
Franck Royer 370a347ff2
Actually disable keep alive if set to 0 2021-07-02 10:51:58 +10:00
Franck Royer 75297b9987
Display # of connections 2021-07-01 19:58:08 +10:00
Franck Royer dc2c09bd41
Change public key message encoding to protobuf 2021-07-01 14:37:07 +10:00
Franck Royer 90e39d3e0a
Merge pull request #216 from status-im/213-derivation 2021-06-30 11:14:26 +10:00
Franck Royer 90cdd5385c
Fix typo 2021-06-29 16:38:54 +10:00
Franck Royer 8c62105d95
Replace empty div with react fragment 2021-06-29 16:38:43 +10:00
Franck Royer 4284be142f
Fix spelling 2021-06-29 16:21:32 +10:00
Franck Royer b1a1c82de3
Use material ui list 2021-06-29 16:14:27 +10:00
Franck Royer a46a05a5ea
Move messaging components to single component 2021-06-29 15:53:59 +10:00
Franck Royer 5bc0eddd3a
Move messaging components to module 2021-06-29 15:46:07 +10:00
Franck Royer 31d0efc8d2
Organise elements in fieldboxes 2021-06-29 15:32:29 +10:00
Franck Royer 5661c7d1ec
Do not attempt to decrypt other's messages 2021-06-29 12:46:42 +10:00
Franck Royer 6921242877
Extract waku initialisation in separate component 2021-06-29 12:30:57 +10:00
Franck Royer 5de030d3ca
Deconstruct properties for more concise code 2021-06-29 12:10:24 +10:00
Franck Royer 53182e834d
Extract Key Pair Handling as separate component 2021-06-29 12:05:16 +10:00
Franck Royer b677b0eb7b
Use Key Pair terminology for eth-dm keypair 2021-06-29 11:56:49 +10:00
Franck Royer f9152f24b0
Move key handling modules to common dir 2021-06-29 11:52:48 +10:00
Franck Royer 9a68cc2a86
Encrypt KeyPair before saving to storage 2021-06-28 16:18:12 +10:00
Franck Royer 47a27a0969
Replace deprecated method 2021-06-28 13:54:22 +10:00
Franck Royer 820307ef8c
Do not list own public key as recipient 2021-06-25 16:18:15 +10:00
Franck Royer 452f4285eb
Move most EthCrypto usage to crypto.ts 2021-06-25 16:18:15 +10:00
Franck Royer 93665feac8
Generate fresh new keypair, do not use signature as entropy 2021-06-25 16:18:15 +10:00
Franck Royer bd0ad81d17
Disable generate button if key is already present 2021-06-25 16:18:15 +10:00
Franck Royer d6d548a09e
Save private key in storage
In clear for now.
2021-06-25 16:18:14 +10:00
Franck Royer fdb720eeed
Merge pull request #212 from status-im/eth-dm 2021-06-22 14:31:12 +10:00
Franck Royer 8cecfc205b
Use plain websocket in tests
Thanks to the libp2p upgrade, waku actually tries to listen to a
secure websocket. Using plain websocket for now, testing secure
websocket is tracked with #50.
2021-06-22 14:11:38 +10:00
Franck Royer 01c1c253b4
Install linter 2021-06-22 13:21:24 +10:00
Franck Royer 3a7c7a1bb7
Fix spelling 2021-06-22 13:21:23 +10:00
Franck Royer ce2bfde12d
Remove webvitals 2021-06-22 13:21:23 +10:00
Franck Royer b3bb363a50
Upgrade node types 2021-06-22 13:21:23 +10:00
Franck Royer 0425821ea3
Remove all tests
Issue with `TextDecoder is not defined` and we are not testing anything
at the moment.
2021-06-22 13:21:23 +10:00