@bennyblader/ddk-rn 0.3.7 → 0.3.9

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.7"
285
+ version = "0.3.9"
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.7"
3
+ version = "0.3.9"
4
4
  edition = "2021"
5
5
  license = "MIT"
6
6
  description = "rust-dlc language bindings"
@@ -765,12 +765,6 @@ pub fn create_cet_adaptor_sigs_from_oracle_info(
765
765
  fund_output_value: u64,
766
766
  msgs: Vec<Vec<Vec<u8>>>,
767
767
  ) -> Result<Vec<AdaptorSignature>, DLCError> {
768
- if msgs.len() != cets.len() {
769
- return Err(DLCError::InvalidArgument(
770
- "Messages length must be equal to cets length".to_string(),
771
- ));
772
- }
773
-
774
768
  let cets = cets
775
769
  .iter()
776
770
  .map(|cet| transaction_to_btc_tx(cet))
@@ -816,7 +810,7 @@ pub fn create_cet_adaptor_sigs_from_oracle_info(
816
810
  Amount::from_sat(fund_output_value),
817
811
  &[msgs],
818
812
  )
819
- .map_err(|_| DLCError::InvalidSignature)?;
813
+ .map_err(|e| DLCError::InvalidArgument(format!("Error from rust-dlc: {:?}", e)))?;
820
814
 
821
815
  let adaptor_sigs = adaptor_sigs
822
816
  .iter()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bennyblader/ddk-rn",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "dlcdevkit bindings for react-native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",