Commit Graph

105 Commits (b0645bb96eb712c947b8b9863eba00a66c445291)

Author SHA1 Message Date
rishflab b19123066d
Create toggleable rendezvous behaviour wrapper
3 years ago
rishflab 76c0031253
WIP Integrate rendezvous protocol into ASB
3 years ago
Daniel Karzel 8fb20db33e
Add the `list-sellers` command to the CLI
3 years ago
Daniel Karzel 4ffb2f14be
Pass in CLI behaviour when creating swarm
3 years ago
Daniel Karzel 2e3601693e
Use our rendezvous libp2p fork
3 years ago
Daniel Karzel dc89a837e7
Do not actively set `KeepAlice::No` for `swap_setup`
3 years ago
Daniel Karzel cd14e22cdf
Longer timeout (120 secs) for `swap_setup` protocol
3 years ago
Daniel Karzel fd18a07426
Flush and close `swap_setup` substreams
3 years ago
Daniel Karzel c2c9e975ef
Quote protocol asb/cli instead of alice/bob
3 years ago
Daniel Karzel c0070f8fa7
Move files from `protocol` to appropriate module
3 years ago
Daniel Karzel 818147a629
`swap_setup` instead of `spot_price` and `execution_setup`
3 years ago
Thomas Eizinger 3aa028e3bf
Use or-pattern stabilized in Rust 1.53 where possible
3 years ago
Thomas Eizinger 8a30ef725c
Refactor transports to construct them specific for each application
3 years ago
Thomas Eizinger 90deb6451c
Rename swarm constructors to be per tool instead of per role
3 years ago
Thomas Eizinger d19231d811
Refactor Tor transport to be dial-only
3 years ago
Thomas Eizinger 8bd6c9dcfc
Simplify construction of Socks5Stream
3 years ago
Thomas Eizinger ea0fd1eb53
Inline functions to reduce complexity induced by indirection
3 years ago
Thomas Eizinger 97a09807dd
Use `BoxFuture` type alias to avoid clippy's complexity nag
3 years ago
Thomas Eizinger d01e444c90
Import anyhow::Result instead of fully-qualifying it
3 years ago
Daniel Karzel af60d3bb54
Network check upon spot price request
3 years ago
Philipp Hoenisch 316f95c65b
Always log whole causality chain for errors.
3 years ago
Philipp Hoenisch c011e95062
Improve logging by adding details as fields instead of into the msg.
3 years ago
Daniel Karzel 652aae9590
Introduce a minimum buy amount
3 years ago
Daniel Karzel 89b3d07eba
Network protocol tests for spot_price behaviour
3 years ago
Daniel Karzel 5aac76598d
Decouple ASB/CLI Errors from Error sent over wire
3 years ago
Daniel Karzel 52f648e1de
Alice's spot price logic into dedicated behaviour
3 years ago
Daniel Karzel ea76ae5821
Return proper error to CLI for all expected scenarios
3 years ago
Daniel Karzel f6497778ed
Add resume-only mode for the ASB
3 years ago
Daniel Karzel 08fecb8fe3
Peer check for incoming transfer proofs
3 years ago
Philipp Hoenisch ea6e2f8f09
Simplify `to_address_string` by implying more context on the structure.
3 years ago
Philipp Hoenisch 3a5395d7a5
Optimize torut features.
3 years ago
Philipp Hoenisch 632293cf91
Add support for swapping through Tor.
3 years ago
Daniel Karzel 0f11ab051e
Print peer ID on debog when starting CLI
3 years ago
Daniel Karzel c1e993deb2
Json codec for quote protocol
3 years ago
Daniel Karzel f70e2aa8d6
Listen on tcp and websocket transports
3 years ago
Thomas Eizinger b417950f99
Improve error reporting of failed protocols
3 years ago
Thomas Eizinger f0f7288bb6
Introduce a `redial::Behaviour`
3 years ago
Thomas Eizinger d4c10a1292
Introduce swarm::{alice,bob} function to construct a Swarm instance
3 years ago
Daniel Karzel c976358c37
Multiple swaps with the same peer
3 years ago
Thomas Eizinger cde3f0f74a
Remove connection handling from swap execution
3 years ago
Thomas Eizinger 2200fce3f3
Pass Swarm into EventLoop
3 years ago
Thomas Eizinger 0c0a322a8f
Rename module to better represent what it contains
3 years ago
Thomas Eizinger 1de0b39b32
Unify encrypted-signature protocol to a single one
3 years ago
Thomas Eizinger 9979cc9f1f
Unify transfer-proof protocol to a single one
3 years ago
Thomas Eizinger 9d0b9abde0
Introduce helper function for mapping RequestResponseEvent
3 years ago
Thomas Eizinger a228349d8b
Bump dependency versions
3 years ago
Thomas Eizinger 601bf07255
Introduce `quote` protocol and display it to the user before they fund
3 years ago
Thomas Eizinger bc176bc4fb
Minor import optimizations
3 years ago
Thomas Eizinger 6d9b21cb47
Change `imports_granularity` to module
3 years ago
Thomas Eizinger 7042ed9441
Replace quote with spot-price protocol
3 years ago