Commit Graph

91 Commits (d19231d811d896da3b238a5d8b8d76fa7b9e276a)

Author SHA1 Message Date
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
Franck Royer 5a5a1c05f7
Set appropriate name to codec
3 years ago
Franck Royer a11e894b31
Prepend all libp2p protocols with "comit"
3 years ago
Franck Royer cfc5cb5206
Remove dead code and combine swap request & one shot codecs
3 years ago
Franck Royer fc2d8d3861
Rename alice::Message0 to Message0
3 years ago
Franck Royer 88bf080dc0
rename alice::Message0 to Message1
3 years ago
Franck Royer 18f326ddd1
Rename bob::Message1 to Message2
3 years ago
Franck Royer 0d1be52966
Rename alice::Message1 to Message3
3 years ago
Franck Royer e74efd38b5
Rename bob::Message2 to Message4
3 years ago
Franck Royer 3fa4ffa82c
Implement new behaviour for execution setup
3 years ago
Franck Royer b968c98805
remove unnecessary logs
3 years ago