xmr-btc-swap/libp2p-rendezvous-node
Mohan 0fec5d556d
refactor(alice): concretize enc sig publication requirement (#664)
* refactor(alice): concretize enc sig publication requirement

* add changelog entry
2025-11-01 00:44:58 +01:00
..
src fix: add back --data-dir to rendezvous-node 2025-10-26 23:11:08 +01:00
Cargo.toml refactor(alice): concretize enc sig publication requirement (#664) 2025-11-01 00:44:58 +01:00
Dockerfile fix(rendezvous-node): fix docker image 2025-10-26 13:29:35 +01:00
README.md refactor: rename "rendezvous-server" to "rendezvous-node" 2025-10-25 23:50:16 +02:00

Standalone Rendezvous Server

A standalone libp2p rendezvous server binary.

Usage

Build the binary:

cargo build --release

Run the libp2p-rendezvous-node:

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

By default, the rendezvous server listens on both TCP and a Tor onion service for enhanced privacy. 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

To disable the onion service and use only TCP:

cargo run --release -- --no-onion

You can specify a custom port for the onion service:

cargo run --release -- --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)
  • --no-onion: Disable Tor onion service (enabled by default)
  • --onion-port: Port for the onion service (default: 8888)
  • --json: Format logs as JSON
  • --no-timestamp: Don't include timestamp in logs