mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-30 12:36:36 -05:00
Rename alice::Message1 to Message3
As per sequence diagram.
This commit is contained in:
parent
e74efd38b5
commit
0d1be52966
6 changed files with 19 additions and 17 deletions
|
|
@ -10,7 +10,9 @@ use crate::{
|
|||
monero,
|
||||
monero::{monero_private_key, TransferProof},
|
||||
protocol::{
|
||||
alice, bob,
|
||||
alice,
|
||||
alice::Message3,
|
||||
bob,
|
||||
bob::{EncryptedSignature, Message4},
|
||||
SwapAmounts,
|
||||
},
|
||||
|
|
@ -193,7 +195,7 @@ impl State1 {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn receive(self, msg: alice::Message1) -> Result<State2> {
|
||||
pub fn receive(self, msg: Message3) -> Result<State2> {
|
||||
let tx_cancel = TxCancel::new(&self.tx_lock, self.cancel_timelock, self.A, self.b.public());
|
||||
let tx_refund = bitcoin::TxRefund::new(&tx_cancel, &self.refund_address);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue