@bennyblader/ddk-rn 0.3.2 → 0.3.4

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
@@ -556,6 +556,72 @@ export function signFundTransactionInput(
556
556
  )
557
557
  );
558
558
  }
559
+ export function verifyCetAdaptorSigFromOracleInfo(
560
+ adaptorSig: AdaptorSignature,
561
+ cet: Transaction,
562
+ oracleInfo: Array<OracleInfo>,
563
+ pubkey: Array</*u8*/ number>,
564
+ fundingScriptPubkey: Array</*u8*/ number>,
565
+ totalCollateral: /*u64*/ bigint,
566
+ msgs: Array<Array<Array</*u8*/ number>>>
567
+ ): boolean {
568
+ return FfiConverterBool.lift(
569
+ uniffiCaller.rustCall(
570
+ /*caller:*/ (callStatus) => {
571
+ return (() => {
572
+ console.debug(
573
+ `-- uniffi_ddk_ffi_fn_func_verify_cet_adaptor_sig_from_oracle_info`
574
+ );
575
+ return nativeModule()
576
+ .ubrn_uniffi_ddk_ffi_fn_func_verify_cet_adaptor_sig_from_oracle_info;
577
+ })()(
578
+ FfiConverterTypeAdaptorSignature.lower(adaptorSig),
579
+ FfiConverterTypeTransaction.lower(cet),
580
+ FfiConverterArrayTypeOracleInfo.lower(oracleInfo),
581
+ FfiConverterArrayUInt8.lower(pubkey),
582
+ FfiConverterArrayUInt8.lower(fundingScriptPubkey),
583
+ FfiConverterUInt64.lower(totalCollateral),
584
+ FfiConverterArrayArrayArrayUInt8.lower(msgs),
585
+ callStatus
586
+ );
587
+ },
588
+ /*liftString:*/ FfiConverterString.lift
589
+ )
590
+ );
591
+ }
592
+ export function verifyCetAdaptorSigsFromOracleInfo(
593
+ adaptorSigs: Array<AdaptorSignature>,
594
+ cets: Array<Transaction>,
595
+ oracleInfo: Array<OracleInfo>,
596
+ pubkey: Array</*u8*/ number>,
597
+ fundingScriptPubkey: Array</*u8*/ number>,
598
+ totalCollateral: /*u64*/ bigint,
599
+ msgs: Array<Array<Array</*u8*/ number>>>
600
+ ): boolean {
601
+ return FfiConverterBool.lift(
602
+ uniffiCaller.rustCall(
603
+ /*caller:*/ (callStatus) => {
604
+ return (() => {
605
+ console.debug(
606
+ `-- uniffi_ddk_ffi_fn_func_verify_cet_adaptor_sigs_from_oracle_info`
607
+ );
608
+ return nativeModule()
609
+ .ubrn_uniffi_ddk_ffi_fn_func_verify_cet_adaptor_sigs_from_oracle_info;
610
+ })()(
611
+ FfiConverterArrayTypeAdaptorSignature.lower(adaptorSigs),
612
+ FfiConverterArrayTypeTransaction.lower(cets),
613
+ FfiConverterArrayTypeOracleInfo.lower(oracleInfo),
614
+ FfiConverterArrayUInt8.lower(pubkey),
615
+ FfiConverterArrayUInt8.lower(fundingScriptPubkey),
616
+ FfiConverterUInt64.lower(totalCollateral),
617
+ FfiConverterArrayArrayArrayUInt8.lower(msgs),
618
+ callStatus
619
+ );
620
+ },
621
+ /*liftString:*/ FfiConverterString.lift
622
+ )
623
+ );
624
+ }
559
625
  export function verifyFundTxSignature(
560
626
  fundTx: Transaction,
561
627
  signature: Array</*u8*/ number>,
@@ -2087,6 +2153,22 @@ function uniffiEnsureInitialized() {
2087
2153
  'uniffi_ddk_ffi_checksum_func_sign_fund_transaction_input'
2088
2154
  );
2089
2155
  }
2156
+ if (
2157
+ nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info() !==
2158
+ 52232
2159
+ ) {
2160
+ throw new UniffiInternalError.ApiChecksumMismatch(
2161
+ 'uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sig_from_oracle_info'
2162
+ );
2163
+ }
2164
+ if (
2165
+ nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info() !==
2166
+ 37581
2167
+ ) {
2168
+ throw new UniffiInternalError.ApiChecksumMismatch(
2169
+ 'uniffi_ddk_ffi_checksum_func_verify_cet_adaptor_sigs_from_oracle_info'
2170
+ );
2171
+ }
2090
2172
  if (
2091
2173
  nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_verify_fund_tx_signature() !==
2092
2174
  27316