mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-31 15:20:15 +00:00
632293cf91
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.
83 lines
2.8 KiB
TOML
83 lines
2.8 KiB
TOML
[package]
|
|
name = "swap"
|
|
version = "0.5.0"
|
|
authors = ["The COMIT guys <hello@comit.network>"]
|
|
edition = "2018"
|
|
description = "XMR/BTC trustless atomic swaps."
|
|
|
|
[lib]
|
|
name = "swap"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
async-compression = { version = "0.3", features = ["bzip2", "tokio"] }
|
|
async-trait = "0.1"
|
|
atty = "0.2"
|
|
backoff = { version = "0.3", features = ["tokio"] }
|
|
base64 = "0.13"
|
|
bdk = "0.6"
|
|
big-bytes = "1"
|
|
bitcoin = { version = "0.26", features = ["rand", "use-serde"] }
|
|
bmrng = "0.5"
|
|
config = { version = "0.11", default-features = false, features = ["toml"] }
|
|
conquer-once = "0.3"
|
|
curve25519-dalek = "3"
|
|
data-encoding = "2.3"
|
|
dialoguer = "0.8"
|
|
directories-next = "2"
|
|
ecdsa_fun = { git = "https://github.com/LLFourn/secp256kfun", features = ["libsecp_compat", "serde"] }
|
|
futures = { version = "0.3", default-features = false }
|
|
itertools = "0.10"
|
|
libp2p = { version = "0.37", default-features = false, features = ["tcp-tokio", "yamux", "mplex", "dns-tokio", "noise", "request-response", "websocket"] }
|
|
libp2p-async-await = { git = "https://github.com/comit-network/rust-libp2p-async-await" }
|
|
miniscript = { version = "5", features = ["serde"] }
|
|
monero = { version = "0.11", features = ["serde_support"] }
|
|
monero-rpc = { path = "../monero-rpc" }
|
|
pem = "0.8"
|
|
prettytable-rs = "0.8"
|
|
rand = "0.7"
|
|
rand_chacha = "0.2"
|
|
reqwest = { version = "0.11", features = ["rustls-tls", "stream", "socks"], default-features = false }
|
|
rust_decimal = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_cbor = "0.11"
|
|
serde_json = "1"
|
|
sha2 = "0.9"
|
|
sigma_fun = { git = "https://github.com/LLFourn/secp256kfun", features = ["ed25519", "serde"] }
|
|
sled = "0.34"
|
|
structopt = "0.3"
|
|
strum = { version = "0.20", features = ["derive"] }
|
|
thiserror = "1"
|
|
time = "0.2"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "time", "macros", "sync", "process", "fs", "net"] }
|
|
tokio-socks = "0.5"
|
|
tokio-tungstenite = { version = "0.14", features = [ "rustls-tls" ] }
|
|
tokio-util = { version = "0.6", features = ["io"] }
|
|
toml = "0.5"
|
|
torut = "0.1"
|
|
tracing = { version = "0.1", features = ["attributes"] }
|
|
tracing-appender = "0.1"
|
|
tracing-futures = { version = "0.2", features = ["std-future", "futures-03"] }
|
|
tracing-subscriber = { version = "0.2", default-features = false, features = ["fmt", "ansi", "env-filter", "chrono", "tracing-log"] }
|
|
url = { version = "2", features = ["serde"] }
|
|
uuid = { version = "0.8", features = ["serde", "v4"] }
|
|
void = "1"
|
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
|
tokio-tar = { path = "../tokio-tar" }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
zip = "0.5"
|
|
|
|
[dev-dependencies]
|
|
bdk-testutils = { version = "0.4" }
|
|
bitcoin-harness = { git = "https://github.com/coblox/bitcoin-harness-rs" }
|
|
get-port = "3"
|
|
hyper = "0.14"
|
|
monero-harness = { path = "../monero-harness" }
|
|
port_check = "0.1"
|
|
serde_cbor = "0.11"
|
|
spectral = "0.6"
|
|
tempfile = "3"
|
|
testcontainers = "0.12"
|