Marin Petrunić
ef3ae768d0
add check job in ci
2021-01-27 11:57:28 +01:00
Hugo Dias
ead151471e
fix: ts and lint errors
2021-01-26 21:39:37 +00: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ć
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
Hugo Dias
f05150e640
feat: use aegir
2020-06-18 22:23:39 +01:00
morrigan
635963062a
Address PR comments
2020-04-23 12:56:09 +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
Belma Gutlic
e553392f6b
Merge pull request #53 from mpetrun5/early-data-api
...
Early data api
2020-04-22 09:33:54 +02:00
Matija Petrunic
93d6a9a99b
Fix test
2020-04-17 11:07:58 +02:00
Matija Petrunic
9b650d5b5f
Add test
2020-04-17 10:56:38 +02:00
Matija Petrunic
296c5dbe5b
Fix libp2p-crypto imports
2020-04-09 11:09:00 +02:00
Matija Petrunic
48a230b13e
Replace crypto random bytes with one from libp2p-crypto
2020-04-07 11:01:52 +02:00
Matija Petrunic
07213345ef
Remove bcrypto from tests
2020-04-06 20:12:23 +02:00
Marin Petrunić
fddab30049
fix tests
2020-04-03 09:39:53 +02:00
Marin Petrunić
2d3c6167db
adjust imports for smaller bundlesize
2020-04-03 09:24:58 +02:00
Belma Gutlic
c1151213b4
Merge pull request #41 from NodeFactoryIo/mpetrunic/disable-noise-pipes
...
Disable noise pipes
2020-03-04 11:06:30 +01:00
Marin Petrunić
2bb424a1fa
fix tests
2020-03-04 09:06:58 +01:00
Marin Petrunić
409bfd2150
fix test
2020-03-04 08:56:53 +01:00
Marin Petrunić
638b0773e5
validate aead decryption
2020-03-01 19:05:53 +01:00
Marin Petrunić
c6e7f361c7
handle aead auth tag
2020-02-17 12:11:55 +01:00
Marin Petrunić
87f641f650
add noise spec length prefix encoding
2020-02-13 22:51:36 +01:00
morrigan
d127c8f6d4
Fix invalid test
2020-02-08 16:51:49 +01:00
morrigan
06d5034998
Update setting remote id
2020-02-08 12:23:35 +01:00
morrigan
a5c45bfc53
Additional check
2020-02-08 12:11:16 +01:00
Marin Petrunić
082b0c560a
better ik flow
2020-02-07 20:21:27 +01:00
Marin Petrunić
bf5d6658ee
rename tests
2020-02-06 09:52:03 +01:00
Belma Gutlic
3303cc3b4d
Set prologue to empty buffer
2020-01-29 19:48:14 +01:00
Belma Gutlic
231c721d12
Add test and improve
2020-01-18 17:00:31 +01:00
Belma Gutlic
15db3b53ce
Remove async from keycache
2020-01-18 16:31:05 +01:00
Belma Gutlic
244348c596
Add another test + logger
2020-01-17 23:52:42 +01:00
Belma Gutlic
47e295add5
Add IK -> XX fallback tests and fix things
2020-01-17 23:40:51 +01:00
Belma Gutlic
34bec6e1f4
Add sinon to better test with spies
2020-01-16 17:49:41 +01:00
Belma Gutlic
33708db8b8
Test and fix failed IK handshakes
2020-01-15 17:27:32 +01:00
Belma Gutlic
26cb0c5a17
Test negative output
2020-01-15 11:40:32 +01:00
Belma Gutlic
eeaaa8cc84
Write and test IK stages
2020-01-15 11:32:40 +01:00
Belma Gutlic
7d22967197
Use static key caching
2020-01-13 16:33:58 +01:00
Belma Gutlic
90af03ab02
Add missing key test
2020-01-13 16:18:10 +01:00
Belma Gutlic
ce7f4118c2
Create key cache
2020-01-13 15:38:14 +01:00
Belma Gutlic
ad45be5e7b
Fix merging updated payload signing
2020-01-11 20:20:57 +01:00
Belma Gutlic
29f16c481f
Merge remote-tracking branch 'remotes/origin/master' into feature/xx-fallback
...
# Conflicts:
# src/handshake-xx.ts
# src/noise.ts
# src/utils.ts
# test/noise.test.ts
# test/xx-handshake.test.ts
2020-01-11 15:24:33 +01:00
Belma Gutlic
219553c7f5
Fix test
2020-01-10 21:25:18 +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
ddfacf81e8
use libp2p keys from PeerId argument
2020-01-07 16:59:41 +01:00
Belma Gutlic
c3ab986d3d
Address PR comments
2020-01-07 13:34:45 +01:00
Belma Gutlic
28bf51c492
Make ephemeral keypair optional
2020-01-07 13:20:42 +01:00
Belma Gutlic
73c336088e
Lint fix
2020-01-07 13:09:35 +01:00