mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-08-30 22:21:57 +00:00
![Philipp Hoenisch](/assets/img/avatar_default.png)
This PR does a few things. * It adds a TorTransport which either dials through Tor's socks5 proxy or via clearnet. * It enables ASB to register hidden services for each network it is listening on. We assume that we only care about different ports and re-use the same onion-address for all of them. The ASB requires to have access to Tor's control port. * It adds support to dial through a local Tor socks5 proxy. We assume that Tor is always available on localhost. Swap cli only requires Tor to be running so that it can send messages via Tor's socks5 proxy. * It adds a new e2e test which swaps through Tor. For this we assume that Tor is currently running on localhost. All other tests are running via clear net.
33 lines
619 B
Rust
33 lines
619 B
Rust
#![warn(
|
|
unused_extern_crates,
|
|
rust_2018_idioms,
|
|
clippy::cast_possible_truncation,
|
|
clippy::cast_sign_loss,
|
|
clippy::fallible_impl_from,
|
|
clippy::cast_precision_loss,
|
|
clippy::cast_possible_wrap,
|
|
clippy::dbg_macro
|
|
)]
|
|
#![cfg_attr(not(test), warn(clippy::unwrap_used))]
|
|
#![forbid(unsafe_code)]
|
|
#![allow(
|
|
non_snake_case,
|
|
missing_debug_implementations,
|
|
missing_copy_implementations
|
|
)]
|
|
|
|
pub mod asb;
|
|
pub mod bitcoin;
|
|
pub mod cli;
|
|
pub mod database;
|
|
pub mod env;
|
|
pub mod fs;
|
|
pub mod kraken;
|
|
pub mod monero;
|
|
pub mod network;
|
|
pub mod protocol;
|
|
pub mod seed;
|
|
pub mod tor;
|
|
|
|
mod monero_ext;
|