xmr-btc-swap/libp2p-rendezvous-server
Mohan d7031fdcfb
chore: Upgrade bdk to 2.0.0 (#494)
* chore: Upgrade bdk to 2.0.0

* bump

* fix some clippy stuff
2025-08-03 01:55:40 +02:00
..
src chore: Upgrade bdk to 2.0.0 (#494) 2025-08-03 01:55:40 +02:00
Cargo.toml chore: Upgrade bdk to 2.0.0 (#494) 2025-08-03 01:55:40 +02:00
CHANGELOG.md feat: Move rendvous-server into mono repository (#490) 2025-08-02 01:27:45 +02:00
Dockerfile feat: Move rendvous-server into mono repository (#490) 2025-08-02 01:27:45 +02:00
README.md chore: Upgrade bdk to 2.0.0 (#494) 2025-08-03 01:55:40 +02:00

Standalone Rendezvous Server

A standalone libp2p rendezvous server binary.

Usage

Build the binary:

cargo build --release

Run the libp2p-rendezvous-server:

cargo run --release

The server will use default values:

  • Secret file: rendezvous-server-secret.key (created automatically if it doesn't exist)
  • Listen port: 8888

You can customize these with:

cargo run --release -- --secret-file <PATH-TO-SECRET-FILE> --listen-tcp <PORT>

Tor Onion Service Support

The rendezvous server can also listen on a Tor onion service for enhanced privacy:

cargo run --release -- --onion

This will:

  • Bootstrap a connection to the Tor network
  • Create a new onion service
  • Listen on both TCP (port 8888) and the onion address
  • Print the onion address in the logs

You can specify a custom port for the onion service:

cargo run --release -- --onion --onion-port 9999

Options

If the provided secret file doesn't exist, it will be created with a new random secret key.

Run cargo run --release -- --help for all available options:

  • --secret-file: Path to the secret key file
  • --listen-tcp: TCP port to listen on (default: 8888)
  • --onion: Enable Tor onion service
  • --onion-port: Port for the onion service (default: 8888)
  • --json: Format logs as JSON
  • --no-timestamp: Don't include timestamp in logs