mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-16 00:53:58 -05:00
Bob saves lock proof after received so he can resume swap
This commit is contained in:
parent
c5cfc2ce20
commit
3593f5323a
7 changed files with 136 additions and 22 deletions
|
|
@ -139,7 +139,7 @@ impl Display for Amount {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
|
||||
pub struct TransferProof {
|
||||
tx_hash: TxHash,
|
||||
#[serde(with = "monero_private_key")]
|
||||
|
|
@ -159,7 +159,7 @@ impl TransferProof {
|
|||
}
|
||||
|
||||
// TODO: add constructor/ change String to fixed length byte array
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
|
||||
pub struct TxHash(pub String);
|
||||
|
||||
impl From<TxHash> for String {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue