mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-22 23:59:49 -05:00

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.