45 Commits

Author SHA1 Message Date
Vasco Santos
11d7f21920 chore: update deps 2021-01-25 11:40:21 +01:00
achingbrain
1a6490d829 chore: update deps to latest versions
I've tried to make the minimum amount of changes necessary for this,
since the underlying crypto libraries only support node Buffers or
BufferLists there doesn't seem a lot of point in doing lots of
conversions between Uint8Arrays and Buffers.

BREAKING CHANGES:

- All deps use Uint8Arrays in place of node Buffers
2020-08-11 11:41:10 +01:00
Marin Petrunić
ca39bc5d99
lint fixes 2020-06-19 13:06:31 +02:00
Marin Petrunić
8327a60356
fix automatic lint 2020-06-19 12:49:40 +02:00
Jacob Heun
e9af13a1ee
fix: marshal the verified peer from its public key
This ensures that completed outbound handshakes will always contain the public key of the remote peer
2020-05-07 16:24:15 +02:00
morrigan
dff7f8bae0 Fix yarn.lock 2020-04-22 19:31:24 +02:00
Marin Petrunić
2d3c6167db
adjust imports for smaller bundlesize 2020-04-03 09:24:58 +02:00
Marin Petrunić
cc2fb94323
fix buffer usage in browser 2020-03-11 09:43:40 +01:00
Marin Petrunić
c6e7f361c7
handle aead auth tag 2020-02-17 12:11:55 +01:00
Marin Petrunić
f1133a9b77
adjust code to new proto 2020-02-17 09:18:44 +01:00
Marin Petrunić
dbb896c249
fix return types 2020-02-14 10:10:42 +01:00
morrigan
62cb0e7869 Remove unused 2020-02-10 13:53:10 +01:00
morrigan
3830268c98 Address PR comment and refactor setting remote peer 2020-02-10 13:51:32 +01:00
morrigan
6842e86686 Add type for decoded payload 2020-02-10 13:38:35 +01:00
morrigan
06d5034998 Update setting remote id 2020-02-08 12:23:35 +01:00
Marin Petrunić
082b0c560a
better ik flow 2020-02-07 20:21:27 +01:00
Marin Petrunić
ab94e8966e
fix errors 2020-02-06 09:57:10 +01:00
Marin Petrunić
e97453490c
Merge remote-tracking branch 'origin/master' into mpetrunic/browser-tests
# Conflicts:
#	protos/payload.proto
2020-02-06 09:53:10 +01:00
Marin Petrunić
b5100f3e47
switch proto definitions into json definitions 2020-02-06 09:51:39 +01:00
morrigan
ebb7483109 Remove signing early data payload and prefix 2020-02-05 22:16:48 +01:00
morrigan
8f92180611 Rename protobuf fields 2020-02-05 22:10:51 +01:00
Belma Gutlic
33708db8b8 Test and fix failed IK handshakes 2020-01-15 17:27:32 +01:00
Belma Gutlic
e2b7eef295 Address PR comment 2020-01-10 11:10:48 +01:00
Belma Gutlic
d3a652aecb Remove comment 2020-01-07 17:08:08 +01:00
Belma Gutlic
5be8f61599 Remove unused 2020-01-07 17:01:52 +01:00
Belma Gutlic
ddfacf81e8 use libp2p keys from PeerId argument 2020-01-07 16:59:41 +01:00
Belma Gutlic
7bad317d0e Address PR comments 2019-12-29 18:23:43 +01:00
Belma Gutlic
0290df8685 Move common function to abstract class 2019-12-24 21:15:38 +01:00
morrigan
c8c03b5093 Separate logger from utils 2019-12-03 15:19:08 +01:00
morrigan
acb9b87537 Split encoder functions from utils 2019-12-03 15:15:46 +01:00
morrigan
e0806499ff Verify peer id 2019-12-03 13:39:33 +01:00
morrigan
6bb36f1663 Update timing of initiator payloading sending to verify that payload 2019-12-02 15:24:49 +01:00
morrigan
bf9ae90a5e Verify payload in stage 1 2019-12-02 13:18:31 +01:00
morrigan
7b03a3df3b Write functions for verification 2019-12-02 12:53:00 +01:00
morrigan
6dc8e8288d Fix eslint 2019-11-28 17:53:27 +01:00
morrigan
a8ff05cdf1 Update handling keys, refactoring 2019-11-28 17:32:46 +01:00
morrigan
d03f4974ba Create test 2019-11-27 14:20:25 +01:00
morrigan
b5941c750c Add debug 2019-11-27 08:39:06 +01:00
morrigan
7e3c35ed8a Write handshake test 2019-11-22 12:52:59 +01:00
morrigan
f5888f6405 Fix tslint 2019-11-21 14:43:12 +01:00
morrigan
b2d058291c Written handshake exchange 2019-11-21 13:38:39 +01:00
morrigan
af95dc2fcd Handshake payload refactor 2019-11-20 22:25:34 +01:00
morrigan
ca4e2777ff Address PR comments 2019-11-20 13:23:36 +01:00
morrigan
4d09d63a4a Fix errors 2019-11-12 14:07:25 +01:00
morrigan
d2c844d598 Create interface according to spec 2019-11-11 21:58:04 +01:00