xmr-btc-swap/swap
Thomas Eizinger 1c47b32681
Use bmrng to model communicaton of Bob's EventLoop with the handle
bmrng is a library providing a request-response channel that allows
the receiving end of the channel to send a response back to the sender.
This allows us to more accurately implement the functions on the
`EventLoopHandle`. In particular, we now _wait_ for the ACK of specific
messages from the other party before resolving the future.

For example, when sending the encrypted signature, the async function
on the `EventLoopHandle` does not resolve until we received the ACK
from the other party.

We also delete the `Channels` abstraction in favor of directly creating
bmrng channels. This allows us to directly control the channel buffer
which we set to 1 because we don't need more than that on Bob's side.
2021-04-01 17:09:17 +11:00
..
src Use bmrng to model communicaton of Bob's EventLoop with the handle 2021-04-01 17:09:17 +11:00
tests Alice resumes swaps 2021-04-01 16:09:13 +11:00
Cargo.toml Use bmrng to model communicaton of Bob's EventLoop with the handle 2021-04-01 17:09:17 +11:00