r_preimageand the public
r_hashfor the atomic swap
SwapRequestmessage to the maker, which includes
r_preimage. This allows both the taker and the maker payments to finalize.
SwapRequestmessage is sent by the taker to the maker to start the swap negotiation.
SwapAcceptedmessage is sent by the maker to the taker to accept the swap request.
SwapFailedmessage can be sent by either side of the swap protocol, at any time, to announce the swap termination.
failure_reasonis an optional parameter for specifying the failure reason: