Skip to content

Commit

Permalink
Introduce identify and rendezvous network protocols (#304)
Browse files Browse the repository at this point in the history
* Add rendezvous and identify feature dependencies for libp2p

* Introduce configuration parameters for rendezvous client and server

* Move network behaviour composer into separate module

* Add behaviour handlers for identify and rendezvous

* Add custom validator for rendezvous client mode

* Add handler to dial peers discovered via rendezvous server

* Log failed registration attempt with rendezvous server

* Add handlers for Sent, Pushed and Error identify events

* Add serde feature to libp2p dependency

* Add libp2p dependency to CLI for parser

* Update lockfile

* Replace String with Multiaddr and PeerId in CLI and config

* Add glyph to authors

* Update CHANGELOG

* Remove TODOs and errant whitespace

* Manually add external address and discover peers on rendezvous connection establishment

* Make log formatting syntax more consistent

* Update CLI usage instructions

* Add additional rendezvous client behaviour check and unwrap comments

* Use if let to avoid unwrap
  • Loading branch information
mycognosist committed Mar 23, 2023
1 parent 4d6ad2f commit 76c1d44
Show file tree
Hide file tree
Showing 10 changed files with 555 additions and 60 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Introduce `identify` and `rendezvous` network protocols / behaviours [#304](https://github.com/p2panda/aquadoggo/pull/304)

### Added

- Introduce libp2p networking service and configuration [#282](https://github.com/p2panda/aquadoggo/pull/282)
Expand Down
205 changes: 201 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions aquadoggo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ authors = [
"pietgeursen <pietgeursen@gmail.com>",
"sandreae <contact@samandreae.com>",
"sophiiistika <sophiiistika@mailbox.org>",
"glyph <glyph@mycelial.technology>",
]
description = "Embeddable p2p network node"
license = "AGPL-3.0-or-later"
Expand Down Expand Up @@ -38,6 +39,9 @@ libp2p = { version = "^0.51.0", features = [
"quic",
"ping",
"mdns",
"identify",
"rendezvous",
"serde",
] }
lipmaa-link = "^0.2.2"
log = "^0.4.17"
Expand Down
Loading

0 comments on commit 76c1d44

Please sign in to comment.