@breeztech/breez-sdk-spark 0.7.3 → 0.7.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.
@@ -313,11 +313,11 @@ function __wbg_adapter_64(arg0, arg1) {
313
313
  }
314
314
 
315
315
  function __wbg_adapter_67(arg0, arg1, arg2) {
316
- wasm.closure1050_externref_shim(arg0, arg1, arg2);
316
+ wasm.closure1052_externref_shim(arg0, arg1, arg2);
317
317
  }
318
318
 
319
- function __wbg_adapter_349(arg0, arg1, arg2, arg3) {
320
- wasm.closure635_externref_shim(arg0, arg1, arg2, arg3);
319
+ function __wbg_adapter_353(arg0, arg1, arg2, arg3) {
320
+ wasm.closure637_externref_shim(arg0, arg1, arg2, arg3);
321
321
  }
322
322
 
323
323
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -364,6 +364,14 @@ export class BreezSdk {
364
364
  const ret = wasm.breezsdk_disconnect(this.__wbg_ptr);
365
365
  return ret;
366
366
  }
367
+ /**
368
+ * @param {LnurlAuthRequestDetails} request_data
369
+ * @returns {Promise<LnurlCallbackStatus>}
370
+ */
371
+ lnurlAuth(request_data) {
372
+ const ret = wasm.breezsdk_lnurlAuth(this.__wbg_ptr, request_data);
373
+ return ret;
374
+ }
367
375
  /**
368
376
  * @param {GetPaymentRequest} request
369
377
  * @returns {Promise<GetPaymentResponse>}
@@ -657,16 +665,14 @@ export class DefaultSigner {
657
665
  wasm.__wbg_defaultsigner_free(ptr, 0);
658
666
  }
659
667
  /**
660
- * @param {Uint8Array} message
668
+ * @param {MessageBytes} message
661
669
  * @param {string} path
662
670
  * @returns {Promise<EcdsaSignatureBytes>}
663
671
  */
664
672
  signEcdsa(message, path) {
665
- const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
673
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
666
674
  const len0 = WASM_VECTOR_LEN;
667
- const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
668
- const len1 = WASM_VECTOR_LEN;
669
- const ret = wasm.defaultsigner_signEcdsa(this.__wbg_ptr, ptr0, len0, ptr1, len1);
675
+ const ret = wasm.defaultsigner_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
670
676
  return ret;
671
677
  }
672
678
  /**
@@ -677,6 +683,19 @@ export class DefaultSigner {
677
683
  const ret = wasm.defaultsigner_signFrost(this.__wbg_ptr, request);
678
684
  return ret;
679
685
  }
686
+ /**
687
+ * @param {Uint8Array} message
688
+ * @param {string} path
689
+ * @returns {Promise<HashedMessageBytes>}
690
+ */
691
+ hmacSha256(message, path) {
692
+ const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
693
+ const len0 = WASM_VECTOR_LEN;
694
+ const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
695
+ const len1 = WASM_VECTOR_LEN;
696
+ const ret = wasm.defaultsigner_hmacSha256(this.__wbg_ptr, ptr0, len0, ptr1, len1);
697
+ return ret;
698
+ }
680
699
  /**
681
700
  * @param {Uint8Array} message
682
701
  * @param {string} path
@@ -761,16 +780,14 @@ export class DefaultSigner {
761
780
  return ret;
762
781
  }
763
782
  /**
764
- * @param {Uint8Array} message
783
+ * @param {MessageBytes} message
765
784
  * @param {string} path
766
785
  * @returns {Promise<RecoverableEcdsaSignatureBytes>}
767
786
  */
768
787
  signEcdsaRecoverable(message, path) {
769
- const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
788
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
770
789
  const len0 = WASM_VECTOR_LEN;
771
- const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
772
- const len1 = WASM_VECTOR_LEN;
773
- const ret = wasm.defaultsigner_signEcdsaRecoverable(this.__wbg_ptr, ptr0, len0, ptr1, len1);
790
+ const ret = wasm.defaultsigner_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
774
791
  return ret;
775
792
  }
776
793
  /**
@@ -1639,6 +1656,21 @@ export function __wbg_headers_9cb51cfd2ac780a4(arg0) {
1639
1656
  return ret;
1640
1657
  };
1641
1658
 
1659
+ export function __wbg_hmacSha256_c6633de6089f686f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1660
+ let deferred1_0;
1661
+ let deferred1_1;
1662
+ try {
1663
+ var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
1664
+ wasm.__wbindgen_free(arg1, arg2 * 1, 1);
1665
+ deferred1_0 = arg3;
1666
+ deferred1_1 = arg4;
1667
+ const ret = arg0.hmacSha256(v0, getStringFromWasm0(arg3, arg4));
1668
+ return ret;
1669
+ } finally {
1670
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1671
+ }
1672
+ }, arguments) };
1673
+
1642
1674
  export function __wbg_identityPublicKey_c8b35005055a3df0() { return handleError(function (arg0) {
1643
1675
  const ret = arg0.identityPublicKey();
1644
1676
  return ret;
@@ -1808,7 +1840,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1808
1840
  const a = state0.a;
1809
1841
  state0.a = 0;
1810
1842
  try {
1811
- return __wbg_adapter_349(a, state0.b, arg0, arg1);
1843
+ return __wbg_adapter_353(a, state0.b, arg0, arg1);
1812
1844
  } finally {
1813
1845
  state0.a = a;
1814
1846
  }
@@ -2095,33 +2127,29 @@ export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
2095
2127
  arg0.signal = arg1;
2096
2128
  };
2097
2129
 
2098
- export function __wbg_signEcdsaRecoverable_673b67f4f9ec42e7() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2099
- let deferred1_0;
2100
- let deferred1_1;
2130
+ export function __wbg_signEcdsaRecoverable_756dd79f08e5ed39() { return handleError(function (arg0, arg1, arg2, arg3) {
2131
+ let deferred0_0;
2132
+ let deferred0_1;
2101
2133
  try {
2102
- var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
2103
- wasm.__wbindgen_free(arg1, arg2 * 1, 1);
2104
- deferred1_0 = arg3;
2105
- deferred1_1 = arg4;
2106
- const ret = arg0.signEcdsaRecoverable(v0, getStringFromWasm0(arg3, arg4));
2134
+ deferred0_0 = arg2;
2135
+ deferred0_1 = arg3;
2136
+ const ret = arg0.signEcdsaRecoverable(arg1, getStringFromWasm0(arg2, arg3));
2107
2137
  return ret;
2108
2138
  } finally {
2109
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2139
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2110
2140
  }
2111
2141
  }, arguments) };
2112
2142
 
2113
- export function __wbg_signEcdsa_b0be26cee51844bc() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2114
- let deferred1_0;
2115
- let deferred1_1;
2143
+ export function __wbg_signEcdsa_0ebea9dfc3b7c28f() { return handleError(function (arg0, arg1, arg2, arg3) {
2144
+ let deferred0_0;
2145
+ let deferred0_1;
2116
2146
  try {
2117
- var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
2118
- wasm.__wbindgen_free(arg1, arg2 * 1, 1);
2119
- deferred1_0 = arg3;
2120
- deferred1_1 = arg4;
2121
- const ret = arg0.signEcdsa(v0, getStringFromWasm0(arg3, arg4));
2147
+ deferred0_0 = arg2;
2148
+ deferred0_1 = arg3;
2149
+ const ret = arg0.signEcdsa(arg1, getStringFromWasm0(arg2, arg3));
2122
2150
  return ret;
2123
2151
  } finally {
2124
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2152
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2125
2153
  }
2126
2154
  }, arguments) };
2127
2155
 
@@ -2355,13 +2383,13 @@ export function __wbindgen_cb_drop(arg0) {
2355
2383
  return ret;
2356
2384
  };
2357
2385
 
2358
- export function __wbindgen_closure_wrapper11216(arg0, arg1, arg2) {
2359
- const ret = makeMutClosure(arg0, arg1, 815, __wbg_adapter_64);
2386
+ export function __wbindgen_closure_wrapper11278(arg0, arg1, arg2) {
2387
+ const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
2360
2388
  return ret;
2361
2389
  };
2362
2390
 
2363
- export function __wbindgen_closure_wrapper13122(arg0, arg1, arg2) {
2364
- const ret = makeMutClosure(arg0, arg1, 1051, __wbg_adapter_67);
2391
+ export function __wbindgen_closure_wrapper13182(arg0, arg1, arg2) {
2392
+ const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
2365
2393
  return ret;
2366
2394
  };
2367
2395
 
@@ -25,6 +25,7 @@ export const breezsdk_listFiatCurrencies: (a: number) => any;
25
25
  export const breezsdk_listFiatRates: (a: number) => any;
26
26
  export const breezsdk_listPayments: (a: number, b: any) => any;
27
27
  export const breezsdk_listUnclaimedDeposits: (a: number, b: any) => any;
28
+ export const breezsdk_lnurlAuth: (a: number, b: any) => any;
28
29
  export const breezsdk_lnurlPay: (a: number, b: any) => any;
29
30
  export const breezsdk_lnurlWithdraw: (a: number, b: any) => any;
30
31
  export const breezsdk_parse: (a: number, b: number, c: number) => any;
@@ -56,9 +57,10 @@ export const defaultsigner_getPublicKeyFromPrivateKeySource: (a: number, b: any)
56
57
  export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
57
58
  export const defaultsigner_getStaticDepositPrivateKeySource: (a: number, b: number) => any;
58
59
  export const defaultsigner_getStaticDepositPublicKey: (a: number, b: number) => any;
60
+ export const defaultsigner_hmacSha256: (a: number, b: number, c: number, d: number, e: number) => any;
59
61
  export const defaultsigner_identityPublicKey: (a: number) => [number, number, number];
60
- export const defaultsigner_signEcdsa: (a: number, b: number, c: number, d: number, e: number) => any;
61
- export const defaultsigner_signEcdsaRecoverable: (a: number, b: number, c: number, d: number, e: number) => any;
62
+ export const defaultsigner_signEcdsa: (a: number, b: any, c: number, d: number) => any;
63
+ export const defaultsigner_signEcdsaRecoverable: (a: number, b: any, c: number, d: number) => any;
62
64
  export const defaultsigner_signFrost: (a: number, b: any) => any;
63
65
  export const defaultsigner_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
64
66
  export const defaultsigner_splitSecretWithProofs: (a: number, b: any, c: number, d: number) => any;
@@ -110,6 +112,6 @@ export const __externref_drop_slice: (a: number, b: number) => void;
110
112
  export const __wbindgen_export_7: WebAssembly.Table;
111
113
  export const __externref_table_dealloc: (a: number) => void;
112
114
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf0ebd5238280272: (a: number, b: number) => void;
113
- export const closure1050_externref_shim: (a: number, b: number, c: any) => void;
114
- export const closure635_externref_shim: (a: number, b: number, c: any, d: any) => void;
115
+ export const closure1052_externref_shim: (a: number, b: number, c: any) => void;
116
+ export const closure637_externref_shim: (a: number, b: number, c: any, d: any) => void;
115
117
  export const __wbindgen_start: () => void;