35 Commits

Author SHA1 Message Date
Maciej Krüger
8ad4c15562 refactor: use async await (#108)
* chore: upgrade deps

* feat: first iteration of the idea

* feat: iterate a layer deeper

* feat: rewrite handshake

* feat: rewrite propose

* feat: rewrite finish

* feat: rewrite exchange

* feat: rewrite low-level stuff

* feat: work on rewriting tests

* refactor: browser tests

* refactor: .aegir.js

* feat: refactor benchmarks

* fix: try to make it work

* fix: lint

* refactor: move tests

* refactor: switch deps

* refactor: entry file

* refactor: a bit more

* fix: tests

* feat: inital iterables refactor

* refactor: streaming

* refactor: cleanup

* fix: turn bufferlist into buffer

* fix: use errors from interfaces

* refactor: etm

* fix: typo

* fix: .read error

* fix: satisfy output expectations

* fix: it works - WARNING: using varint instead of fixed lp, tests lie

* fix: use errors

* refactor: benchmarks

* fix: add suggestions from review

Co-Authored-By: Jacob Heun <jacobheun@gmail.com>

* fix: upgrade deps and use correct lp-encoder

* refactor: apply changes from review

* refactor: apply changes from review

* refactor: apply changes from review

* chore: remove old tests

test: add support tests back

* test: fix async benchmarks

* chore: clean up deps

* fix: use fixed encoding/decoding everywhere

fix: exchange final nonce handshake over encryption

* test: add verify inbound and outbound secio

* test: verify nonces are boxed

* chore: add node 12 to ci
2019-11-22 14:18:17 -06:00
Hugo Dias
f95a406ee0 fix: reduce bundle size 2019-01-11 17:22:05 +01:00
Vasco Santos
a6290f296b chore: update dependencies 2019-01-03 17:43:19 +00:00
Jacob Heun
6d09b472ec fix: pass the handshake failure on
Failed handshakes abort the connection but dont inform users of the failure properly. If a remote was not successfully negotiated this could cause a peerId missing issue
2018-03-28 15:20:06 -07:00
Jacob Heun
b6e1baa8ca refactor: clean up callbacks to avoid naming collision 2018-03-28 15:20:06 -07:00
Pedro Teixeira
e205ca40f1 fix: cascading connection from encrypted connection to parent connection 2018-02-27 07:15:02 -05:00
David Dias
74f6fd8ab3 test: check if we dialed to the right peer 2018-01-07 16:24:43 +00:00
David Dias
65b9675ffe chore: fix linting 2018-01-07 16:24:43 +00:00
Friedel Ziegelmayer
a3e69e8b43 feat: replace protocol-buffers with protons (#93)
Ref https://github.com/ipfs/js-ipfs/issues/991
2017-09-07 10:43:50 +01:00
David Dias
2df6544c0d feat: next libp2p-crypto (#90)
* feat: next libp2p-crypto

* chore: update deps
2017-07-22 13:53:06 -07:00
Friedel Ziegelmayer
73d0b41249 fix: update to the new crypto.randomBytes method 2017-01-22 17:08:15 +01:00
Friedel Ziegelmayer
0dedc33a0f fix(support): return if talking to oneself 2016-12-13 14:01:33 +01:00
Friedel Ziegelmayer
90105f980b fix(handshake): improve timeout handling 2016-12-13 13:37:35 +01:00
Friedel Ziegelmayer
d05593d111 finish tests 2016-11-10 17:47:40 +01:00
Friedel Ziegelmayer
ddb43af01a fix tests 2016-11-09 11:05:13 +01:00
Friedel Ziegelmayer
a1167c0084 Async Crypto Endeavour (+benchmarks!) (#19)
* feat: add benchmarks and integrate with new libp2p-crypto

* start removing node-forge

* less forge

* cleanup and fixes

* benchmarked and tested

* remove unused .aegir

* Replace lib multihashing with multihashing-async

* cleanup package.json

* Using string instead of buffer for proto file

* chore: fix benchmarks

* docs(readme): update README URLs based on HTTP redirects

* ready for next aegir

* update aegir

* ready

* chore: update deps
2016-11-03 09:23:33 +00:00
Friedel Ziegelmayer
c686ea7ffb refactor: better public facing api 2016-09-07 12:22:04 +02:00
David Dias
1607170119 refactor(crypto): remove unnecessary console.log 2016-09-06 16:46:16 -04:00
Friedel Ziegelmayer
10a4cf0337 feat(secio): implement with pull-streams, ensure interop with go 2016-09-06 16:31:24 -04:00
dignifiedquire
a24ee2a777 use async-buffere-dreader 2016-05-26 20:36:06 +02:00
Friedel Ziegelmayer
e56ac6cf98 Upgrade to the latest dependencies and add multistream test 2016-05-26 20:17:09 +02:00
dignifiedquire
9132b76dab fix: do handshake on first read or write 2016-05-23 17:33:16 +02:00
dignifiedquire
cecf41926f fix: clean up logging 2016-05-23 12:42:21 +02:00
Friedel Ziegelmayer
4b9830d3df Add base line test and fix issues with handshaking 2016-05-23 12:40:08 +02:00
Friedel Ziegelmayer
0152ac10f6 add etm streams 2016-05-22 21:46:19 +02:00
Friedel Ziegelmayer
f5ff4307d0 add handshake/finish 2016-05-22 20:04:59 +02:00
Friedel Ziegelmayer
83381ec817 pass order in the session proposal 2016-05-22 18:38:06 +02:00
Friedel Ziegelmayer
76ca04ab31 start async handling 2016-05-22 18:36:31 +02:00
Friedel Ziegelmayer
3ac905a91c start stream handling 2016-05-22 13:19:17 +02:00
Friedel Ziegelmayer
c056605635 add SecureSession 2016-05-22 01:51:15 +02:00
Friedel Ziegelmayer
5d916140a1 some cleanup 2016-05-22 01:33:50 +02:00
Friedel Ziegelmayer
404807d5d0 more details 2016-05-22 01:31:00 +02:00
Friedel Ziegelmayer
9d3437e8d8 More implementation 2016-05-22 01:03:53 +02:00
Friedel Ziegelmayer
419d7e9dbe Start implementation of the handshake 2016-05-21 17:36:13 +02:00
Friedel Ziegelmayer
13d8336042 add skeleton 2016-05-20 21:29:53 +02:00