Commit Graph

263 Commits

Author SHA1 Message Date
Marten Seemann a98397f6dd
chore: update webtransport-go to v0.1.1 (#1776) 2022-09-23 09:34:26 -07:00
Marten Seemann 9d316fa393
chore: update deps (#1767) 2022-09-20 12:23:04 -07:00
Marco Munizaga f654b4bd69
Add Resolver interface to transport (#1719)
* Add Resolver interface to transport

* Move resolve test to swarm_dial_test

* Use proper peer id in test

* Only import go-multiaddr once

* Cleanup

* Use SNI in websocket

* Update go-multiaddr

* Update p2p/net/swarm/swarm.go

Co-authored-by: Marten Seemann <martenseemann@gmail.com>

* PR comments on websocket.go

* Use unresolved/resolved map

* Set sni

* Refactor websocket multiaddr parsing code, add server test

* Delete superflous helpers

* Update callsites

* Fix typo in p2p/transport/websocket/websocket.go

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2022-09-13 09:36:26 -07:00
Marten Seemann ff60c5d55c
yamux: pass constructors for peer resource scopes to session constructor (#1739) 2022-09-08 06:37:56 -07:00
Marten Seemann 73b3d566f3 webtransport: adjust import paths 2022-09-07 12:46:35 +03:00
Marten Seemann 11279c65c9
quic: update quic-go to v0.29.0 (#1723) 2022-09-03 03:57:54 -07:00
Marten Seemann 90654ffb41 chore: update dependencies 2022-08-19 10:46:54 +03:00
Jorropo 52b2eb4b85
crypto: add better support for alternative backends (#1686) 2022-08-19 00:13:18 -07:00
Dave Collins 8cf67ba1d0
crypto/secp256k1: Remove btcsuite intermediary. (#1689)
This updates the core/crypto/secp256k1 code to make use of the
dcrec/secp256k1/v4 module directly instead of using btcec/v2 which
itself is just a shim around dcrec/secp256k1/v4 anyway.

This has the benefit of removing the additional
github.com/btcsuite/btcd/chaincfg/chainhash dependency since
dcrec/secp256k1/v4 is its own module and does rely on it.

It also updates to the latest v4.1.0 release which implements direct key
generation and has some other nice optimizations that speed up signature
verification as compared to the v4.0.1 release.
2022-08-18 11:17:00 -07:00
Marten Seemann d4e64c727f stop using go-libp2p-testing peer ID generation functions 2022-08-17 17:37:24 +03:00
Marten Seemann 4623690009 switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
Marten Seemann 40727b1b00 switch from github.com/libp2p/go-eventbus to p2p/host/eventbus 2022-08-17 12:20:25 +03:00
Marten Seemann 6631bfb011
basichost: remove usage of MultistreamServerMatcher in test (#1680) 2022-08-17 02:08:40 -07:00
web3-bot eff72c4afa
sync: update CI config files (#1678)
* bump go.mod to Go 1.18 and run go fix

* bump go.mod to Go 1.18 and run go fix

* bump go.mod to Go 1.18 and run go fix

* bump go.mod to Go 1.18 and run go fix

* run gofmt -s

* update .github/workflows/go-test.yml

* update .github/workflows/go-check.yml

* stop using the deprecated io/ioutil package

Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2022-08-17 01:05:51 -07:00
Marten Seemann 6bd5e04960 switch from github.com/libp2p/go-libp2p-resource-manager to p2p/host/resource-manager 2022-08-15 13:19:13 +03:00
Marten Seemann ab634d2ba1 switch from github.com/libp2p/go-libp2p-peerstore to p2p/host/peerstore 2022-08-15 12:29:16 +03:00
Marten Seemann 7facd81bba
ping: optimize random number generation (#1658) 2022-07-13 04:32:57 -07:00
Steven Allen 8d72753fec
chore: update go-multihash to remove blake2b-simd dep (#1656)
We now use the go dev's version, which is faster. Unfortunately, minio's
sha256 implementation is still significantly faster than the built-in
version, so we can't drop that yet.

part of #1646
2022-07-13 10:31:46 +00:00
Steven Allen 5eaa48fbab
chore: remove duplicate clock dep (#1654) 2022-07-12 06:23:34 -07:00
Marco Munizaga 81f973f9db
chore: update core dep (#1641)
* Update core dep

* Downgrade grpc issue due to: https://github.com/weaveworks/common/issues/239

* Use released versions for resource-manager and go-libp2p-core

* Use released version of go-libp2p-testing
2022-07-07 16:07:07 -07:00
Marten Seemann e477efda73
use autoscaling limits (#1637) 2022-07-03 10:04:29 -07:00
Marten Seemann 0d7f192a0b
chore: update deps (#1634) 2022-07-02 01:03:25 -07:00
Marco Munizaga 3eb35223a7
Pass endpoint information to resource manager's OpenConnection (#1633)
* Move mux testsuite to here

* Update OpenConnection call sites to pass in endpoint information

* Go mod update

* Use proper versions for deps
2022-07-01 15:43:42 -07:00
Marco Munizaga 452ddfbb76
Add canonical peer status logs (#1624)
* Add canonical peer status logs

* Move logs to swarm

* Remove quic log

* Update deps
2022-07-01 12:52:39 -07:00
Marten Seemann 786a4d2649 switch from github.com/libp2p/go-libp2p-circuit to p2p/protocol/internal/circuitv1-deprecated 2022-07-01 17:45:15 +02:00
Marco Munizaga 17464c3bda
chore: update github.com/multiformats/go-multistream to v0.3.3 (#1621) 2022-06-28 12:20:08 -07:00
Marco Munizaga 8cb44cbd4e
logging: Add canonical log for misbehaving peers (#1600)
* Add misbehaving log

* Add logging when security handshake or muxer fails

* Update go-libp2p-core

* Log at the security handshake level

* Remove misbehaving log from setup muxer
2022-06-26 03:37:57 -07:00
Marten Seemann 650c35a8b6
use multiaddr ipcidr to parse multiaddr filters (#1606) 2022-06-24 00:47:03 -07:00
Marco Munizaga 86aad883c8
chore: update github.com/multiformats/go-multistream to v0.3.2 (#1610) 2022-06-23 12:51:41 +02:00
Marten Seemann 707100a521
remove legacy mDNS implementation (#1192) 2022-06-20 11:02:14 -07:00
Marco Munizaga e6379f54a8
identify: Fix flaky tests (#1555)
* Fix flaky timing dependent tests

* Update go-libp2p-peerstore dependency

* Register notifiee synchronously

* Only a single connection

* Remove WaitForDisconnectNotification hack since notifs are now synchronous

* Add debug logging to identify tests

* Close chan once
2022-06-02 13:30:51 -07:00
Marten Seemann 8d2e54e163
update go-libp2p-core, remove stream methods from network.Notifiee (#1521) 2022-05-25 06:51:37 -07:00
Marten Seemann 336d093b97
chore: update deps (#1522) 2022-05-25 02:59:30 -07:00
Marten Seemann 2253bd1d97
Merge pull request #1511 from libp2p/merge-muxer-multistream
move go-stream-muxer-multistream here
2022-05-24 15:45:09 +02:00
Marten Seemann 0ab782adb8
chore: update quic-go to v0.27.1 (#1520) 2022-05-24 05:46:44 -07:00
Marten Seemann 4c153be1d0
Merge pull request #1513 from libp2p/merge-nat
move go-libp2p-nat here
2022-05-20 17:54:30 +02:00
Marten Seemann 6fa91535bc switch from github.com/libp2p/go-stream-muxer-multistream to p2p/muxer/muxer-multistream 2022-05-20 12:41:52 +02:00
Marten Seemann f656048800 switch from github.com/libp2p/go-libp2p-nat to p2p/net/nat 2022-05-20 12:37:09 +02:00
Marten Seemann 3b98536d2d switch from github.com/libp2p/go-reuseport-transport to p2p/net/reuseport 2022-05-20 10:56:28 +02:00
Marten Seemann dea8537160
Merge pull request #1465 from libp2p/merge-pnet
move go-libp2p-pnet here
2022-05-03 18:23:05 +02:00
Marten Seemann 6f875981cd switch from github.com/libp2p/go-libp2p-pnet to p2p/net/pnet 2022-04-27 12:04:42 +02:00
Marten Seemann 27cfd3f4ed switch from github.com/libp2p/go-libp2p-tls to p2p/security/tls 2022-04-27 12:00:11 +02:00
Marten Seemann 8de2efdb5c
Merge pull request #1462 from libp2p/merge-noise
move go-libp2p-noise here
2022-04-27 11:55:50 +02:00
Marten Seemann 9dc18edc26 switch from github.com/libp2p/go-libp2p-transport-upgrader to p2p/net/upgrader 2022-04-27 01:46:40 +02:00
Marten Seemann 935905753a switch from github.com/libp2p/go-libp2p-noise to p2p/security/noise 2022-04-26 19:59:10 +02:00
Marten Seemann 4b7059c916
Merge pull request #1460 from libp2p/merge-csm
move go-conn-security-multistream here
2022-04-26 18:40:07 +01:00
Marten Seemann de5875fd9c switch from github.com/libp2p/go-conn-security-multistream to p2p/net/conn-security-multistream 2022-04-26 13:23:15 +01:00
Marten Seemann 663cf70bc3 rename the mplex package to mplex 2022-04-26 13:13:12 +01:00
Marten Seemann 94ce988fbb
use yamux instead of mplex in tests (#1456)
* use yamux in TCP transport tests

* use yamux in websocket tests
2022-04-26 03:19:06 -07:00
Marten Seemann f3bdb4b53c switch from github.com/libp2p/go-libp2p-yamux to p2p/muxer/yamux 2022-04-22 18:10:16 +01:00