Rename alice::Message1 to Message3

As per sequence diagram.
This commit is contained in:
Franck Royer 2021-02-04 11:45:54 +11:00
parent e74efd38b5
commit 0d1be52966
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
6 changed files with 19 additions and 17 deletions

View file

@ -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);