Commit Graph

101 Commits (832d960543377fd0dfe45902ed02bbcfe32bece4)

Author SHA1 Message Date
rishflab 832d960543 WIP: Implement rendezvous for asb
3 years ago
Thomas Eizinger 63cfcf22e0
Simplify error handling
3 years ago
Daniel Karzel f9c03fa335
make happy path pass
3 years ago
Thomas Eizinger abdf272178
Migrate bob to use new swap_setup protocol (untested)
3 years ago
Thomas Eizinger fd23884d74
Move common stuff to network::swap_setup
3 years ago
Thomas Eizinger 301d5be127
Move protocol definition to network module
3 years ago
Thomas Eizinger aa35c5d8ce
Make shit compile
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
Daniel Karzel c166232daf Remove unnecessary mention of Tor in comment
3 years ago
Franck Royer 6e6dc320b4
Alice event loop now handles the creation of new swaps
3 years ago
Franck Royer a7b89e2fe4
Use event_process = false for Alice
3 years ago
Franck Royer 554ae6c00e
Remove Request Response types
3 years ago