From b52d2688cbbe05996ef3859cbed9e42f3071e602 Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Thu, 27 Jun 2024 14:57:19 +0200 Subject: [PATCH] Rename LBtcSwapTxV2 partial_sign same as BtcSwapTxV2 --- src/swaps/liquidv2.rs | 2 +- tests/chain_swaps.rs | 2 +- tests/liquid_v2.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/swaps/liquidv2.rs b/src/swaps/liquidv2.rs index e8a8852..858dbf6 100644 --- a/src/swaps/liquidv2.rs +++ b/src/swaps/liquidv2.rs @@ -575,7 +575,7 @@ impl LBtcSwapTxV2 { /// Compute the Musig partial signature. /// This is used to cooperatively close a Submarine or Chain Swap. - pub fn partial_sig( + pub fn partial_sign( &self, keys: &Keypair, pub_nonce: &String, diff --git a/tests/chain_swaps.rs b/tests/chain_swaps.rs index cbeecbc..74d0b72 100644 --- a/tests/chain_swaps.rs +++ b/tests/chain_swaps.rs @@ -402,7 +402,7 @@ fn liquid_bitcoin_v2_chain() { let claim_tx_response = boltz_api_v2.get_chain_claim_tx_details(&swap_id).unwrap(); let (partial_sig, pub_nonce) = refund_tx - .partial_sig( + .partial_sign( &our_refund_keys, &claim_tx_response.pub_nonce, &claim_tx_response.transaction_hash, diff --git a/tests/liquid_v2.rs b/tests/liquid_v2.rs index d9d857a..be73839 100644 --- a/tests/liquid_v2.rs +++ b/tests/liquid_v2.rs @@ -163,7 +163,7 @@ fn liquid_v2_submarine() { // Compute and send Musig2 partial sig let (partial_sig, pub_nonce) = swap_tx - .partial_sig( + .partial_sign( &our_keys, &claim_tx_response.pub_nonce, &claim_tx_response.transaction_hash,