@bennyblader/ddk-rn 0.3.30 → 0.3.32

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/src/ddk_ffi.ts CHANGED
@@ -491,6 +491,32 @@ export function createXprivFromParentPath(
491
491
  )
492
492
  );
493
493
  }
494
+ export function extractEcdsaSignatureFromOracleSignatures(
495
+ oracleSignatures: Array<Array</*u8*/ number>>,
496
+ adaptorSignature: Array</*u8*/ number>
497
+ ): Array</*u8*/ number> /*throws*/ {
498
+ return FfiConverterArrayUInt8.lift(
499
+ uniffiCaller.rustCallWithError(
500
+ /*liftError:*/ FfiConverterTypeDLCError.lift.bind(
501
+ FfiConverterTypeDLCError
502
+ ),
503
+ /*caller:*/ (callStatus) => {
504
+ return (() => {
505
+ console.debug(
506
+ `-- uniffi_ddk_ffi_fn_func_extract_ecdsa_signature_from_oracle_signatures`
507
+ );
508
+ return nativeModule()
509
+ .ubrn_uniffi_ddk_ffi_fn_func_extract_ecdsa_signature_from_oracle_signatures;
510
+ })()(
511
+ FfiConverterArrayArrayUInt8.lower(oracleSignatures),
512
+ FfiConverterArrayUInt8.lower(adaptorSignature),
513
+ callStatus
514
+ );
515
+ },
516
+ /*liftString:*/ FfiConverterString.lift
517
+ )
518
+ );
519
+ }
494
520
  export function getChangeOutputAndFees(
495
521
  params: PartyParams,
496
522
  feeRate: /*u64*/ bigint
@@ -2238,6 +2264,14 @@ function uniffiEnsureInitialized() {
2238
2264
  'uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path'
2239
2265
  );
2240
2266
  }
2267
+ if (
2268
+ nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures() !==
2269
+ 8006
2270
+ ) {
2271
+ throw new UniffiInternalError.ApiChecksumMismatch(
2272
+ 'uniffi_ddk_ffi_checksum_func_extract_ecdsa_signature_from_oracle_signatures'
2273
+ );
2274
+ }
2241
2275
  if (
2242
2276
  nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_get_change_output_and_fees() !==
2243
2277
  44150