201 Commits

Author SHA1 Message Date
Hugo Dias
ead151471e
fix: ts and lint errors 2021-01-26 21:39:37 +00:00
Vasco Santos
11d7f21920 chore: update deps 2021-01-25 11:40:21 +01:00
achingbrain
de1cdb5bd0 chore: fix ts error 2020-08-11 15:14:11 +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ć
d01d6f428a
fix error because original types are invalid 2020-06-19 13:32:32 +02:00
Marin Petrunić
153f51ae5a
fix type errors 2020-06-19 13:23:18 +02: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
Marin Petrunić
9b11560183
fix some configurations 2020-06-19 12:49:10 +02:00
Hugo Dias
f05150e640
feat: use aegir 2020-06-18 22:23:39 +01: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
5cd8a902fb Fix eslint 2020-04-23 08:10:41 +02:00
morrigan
dff7f8bae0 Fix yarn.lock 2020-04-22 19:31:24 +02:00
morrigan
f5f4b9f344 Merge branch 'morrigan/fix-interop' into revert-51-remove-bcrypto-dependency
# Conflicts:
#	package.json
#	src/@types/basic.ts
#	src/handshakes/ik.ts
#	src/handshakes/xx.ts
#	yarn.lock
2020-04-22 19:07:03 +02:00
Belma Gutlic
7b11f5a3ab
Revert "Replace bcrypto with standalone libraries" 2020-04-22 19:03:41 +02:00
Marin Petrunić
cc96cf5e37 remove bn.js
# Conflicts:
#	src/@types/basic.ts
#	src/handshakes/ik.ts
#	src/handshakes/xx.ts
2020-04-22 18:59:38 +02:00
Belma Gutlic
e553392f6b
Merge pull request #53 from mpetrun5/early-data-api
Early data api
2020-04-22 09:33:54 +02:00
Belma Gutlic
af23375eb0
Merge pull request #52 from mpetrun5/dump-session-keys
Dump session keys
2020-04-22 09:22:42 +02:00
Matija Petrunic
55b906cd02 Remove SymmetricState log 2020-04-17 12:52:54 +02:00
Matija Petrunic
f406bcfa6d Fix log remote static key 2020-04-17 12:41:12 +02:00
Matija Petrunic
7c62ef4b47 Reuse super method 2020-04-17 11:14:27 +02:00
Matija Petrunic
01a4388fa2 Rename function 2020-04-17 11:09:46 +02:00
Matija Petrunic
93d6a9a99b Fix test 2020-04-17 11:07:58 +02:00
Matija Petrunic
7625aa8e46 Rename to remoteEarlyData 2020-04-17 11:04:50 +02:00
Matija Petrunic
cb7eee7407 Convert earlyData to Buffer 2020-04-17 10:56:31 +02:00
Matija Petrunic
09c5df3b0d Add early data field to connection return 2020-04-17 10:36:29 +02:00
Matija Petrunic
6a1f17a2f6 Add early data property to handshake 2020-04-17 10:35:37 +02:00
Matija Petrunic
045a4322e7 Lint 2020-04-17 10:22:13 +02:00
Matija Petrunic
d35e2a85d9 Reuse existing logger for session keys 2020-04-17 10:18:05 +02:00
Matija Petrunic
369d4054da Set DUMP_SESSION_KEYS as env variable 2020-04-17 10:06:41 +02:00
Matija Petrunic
7f871295a0 Lint multiline imports 2020-04-17 09:48:55 +02:00
Matija Petrunic
61d5674af1 Replace log statements with log functions 2020-04-14 15:10:48 +02:00
Matija Petrunic
493d2901a9 Set dump session keys to false 2020-04-10 14:54:50 +02:00
Matija Petrunic
2da9d3da6a Fix lint issues 2020-04-10 14:22:09 +02:00
Matija Petrunic
ba4931d7c6 Remove whitespace 2020-04-10 13:45:19 +02:00
Matija Petrunic
c4212027d0 Remove unused imports 2020-04-10 13:39:55 +02:00
Matija Petrunic
1653ea340e Log session keys when created 2020-04-10 13:35:38 +02:00
Matija Petrunic
83e6380d8f Add basic session key logging 2020-04-09 15:33:15 +02:00
Marin Petrunić
7875d776b7
resolve same bn.js version 2020-04-09 15:06:55 +02:00
Marin Petrunić
13e8a9fc9e
remove bn.js 2020-04-09 14:53:29 +02:00
Matija Petrunic
296c5dbe5b Fix libp2p-crypto imports 2020-04-09 11:09:00 +02:00
Matija Petrunic
17f8fb3140 Avoid allocating new buffer 2020-04-07 14:43:25 +02:00
Matija Petrunic
5aa43f92e3 Fix hash value 2020-04-07 11:16:43 +02:00
Matija Petrunic
207627a31f Switch to dotted syntax 2020-04-07 11:02:03 +02:00
Matija Petrunic
3866d8a077 Convert shared key to Buffer with 32 length 2020-04-06 20:04:17 +02:00
Matija Petrunic
2745783db3 Fix key buffer comparison 2020-04-06 20:01:38 +02:00
Matija Petrunic
99d3c769c9 Fix linting errors 2020-04-06 19:16:05 +02:00
Matija Petrunic
bdc39e3ba5 Replace bcrypto with standalone libraries 2020-04-06 17:33:52 +02:00
Marin Petrunić
ba7182685a
fix interfaces to be compatible with libp2p-ts 2020-04-03 13:20:15 +02:00
Marin Petrunić
489fcf2b60
change bn typings 2020-04-03 13:19:43 +02:00