Rename bob::Message1 to Message2

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

View file

@ -13,7 +13,7 @@ use crate::{
alice,
alice::Message3,
bob,
bob::{EncryptedSignature, Message4},
bob::{EncryptedSignature, Message2, Message4},
SwapAmounts,
},
};
@ -189,8 +189,8 @@ pub struct State1 {
}
impl State1 {
pub fn next_message(&self) -> bob::Message1 {
bob::Message1 {
pub fn next_message(&self) -> Message2 {
Message2 {
tx_lock: self.tx_lock.clone(),
}
}