@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.
@@ -282,7 +282,7 @@ checksum = "b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675"
282
282
 
283
283
  [[package]]
284
284
  name = "ddk_ffi"
285
- version = "0.3.15"
285
+ version = "0.3.16"
286
286
  dependencies = [
287
287
  "bip39",
288
288
  "bitcoin",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "ddk_ffi"
3
- version = "0.3.15"
3
+ version = "0.3.16"
4
4
  edition = "2021"
5
5
  license = "MIT"
6
6
  description = "rust-dlc language bindings"
@@ -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::get_raw_sig_for_tx_input(
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.serialize_compact().to_vec())
694
+ Ok(sig)
694
695
  }
695
696
 
696
697
  /// Sign a funding transaction input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bennyblader/ddk-rn",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "dlcdevkit bindings for react-native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",