mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 22:42:35 -04:00
feat(asb, cli): Listen on onion address, dial onion addresses (#203)
This pull requests - Adds rust native support for the `asb` to listen on an onion service. Previously we were depedent on a seperately running `torc` client. Instead we now use [arti](https://tpo.pages.torproject.net/core/arti/), a rust implementation of the tor protocol. - Removes the `tor.control_port` and `tor.socks5_port` property from the config of the `asb` - Adds a new `tor.register_hidden_service` boolean property to the config of the `asb` which when enabled automatically runs a hidden service at startup - Adds a new `tor.hidden_service_num_intro_points` config property to specify how many introduction points to register the onion service at - Adds support for the `cli` to dial onion addresses This is dependent on https://github.com/umgefahren/libp2p-tor/pull/24 Closes https://github.com/UnstoppableSwap/core/issues/16
This commit is contained in:
parent
45a4cf4fb7
commit
d53c12d64e
18 changed files with 427 additions and 387 deletions
|
@ -243,7 +243,7 @@ async fn start_alice(
|
|||
let latest_rate = FixedRate::default();
|
||||
let resume_only = false;
|
||||
|
||||
let mut swarm = swarm::asb(
|
||||
let (mut swarm, _) = swarm::asb(
|
||||
seed,
|
||||
min_buy,
|
||||
max_buy,
|
||||
|
@ -252,6 +252,7 @@ async fn start_alice(
|
|||
env_config,
|
||||
XmrBtcNamespace::Testnet,
|
||||
&[],
|
||||
None,
|
||||
)
|
||||
.unwrap();
|
||||
swarm.listen_on(listen_address).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue