@bennyblader/ddk-rn 0.3.15 → 0.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ddk-ffi/Cargo.lock +1 -1
- package/ddk-ffi/Cargo.toml +1 -1
- package/ddk-ffi/src/lib.rs +3 -2
- package/package.json +1 -1
package/ddk-ffi/Cargo.lock
CHANGED
package/ddk-ffi/Cargo.toml
CHANGED
package/ddk-ffi/src/lib.rs
CHANGED
|
@@ -680,17 +680,18 @@ pub fn get_raw_funding_transaction_input_signature(
|
|
|
680
680
|
let wpkh = WPubkeyHash::hash(&pk.serialize());
|
|
681
681
|
let script = bitcoin::ScriptBuf::new_p2wpkh(&wpkh);
|
|
682
682
|
|
|
683
|
-
let sig = dlc::util::
|
|
683
|
+
let sig = dlc::util::get_sig_for_tx_input(
|
|
684
684
|
secp,
|
|
685
685
|
&btc_tx,
|
|
686
686
|
input_index,
|
|
687
687
|
&script,
|
|
688
688
|
Amount::from_sat(value),
|
|
689
|
+
EcdsaSighashType::All,
|
|
689
690
|
&sk,
|
|
690
691
|
)
|
|
691
692
|
.map_err(DLCError::from)?;
|
|
692
693
|
|
|
693
|
-
Ok(sig
|
|
694
|
+
Ok(sig)
|
|
694
695
|
}
|
|
695
696
|
|
|
696
697
|
/// Sign a funding transaction input
|