@bitgo/wasm-utxo 1.12.0 → 1.14.0

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.
@@ -2,34 +2,6 @@
2
2
  let imports = {};
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
4
 
5
- let cachedUint8ArrayMemory0 = null;
6
-
7
- function getUint8ArrayMemory0() {
8
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
9
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
10
- }
11
- return cachedUint8ArrayMemory0;
12
- }
13
-
14
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
15
-
16
- cachedTextDecoder.decode();
17
-
18
- function decodeText(ptr, len) {
19
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
20
- }
21
-
22
- function getStringFromWasm0(ptr, len) {
23
- ptr = ptr >>> 0;
24
- return decodeText(ptr, len);
25
- }
26
-
27
- let heap = new Array(128).fill(undefined);
28
-
29
- heap.push(undefined, null, true, false);
30
-
31
- let heap_next = heap.length;
32
-
33
5
  function addHeapObject(obj) {
34
6
  if (heap_next === heap.length) heap.push(heap.length + 1);
35
7
  const idx = heap_next;
@@ -39,19 +11,16 @@ function addHeapObject(obj) {
39
11
  return idx;
40
12
  }
41
13
 
42
- function getObject(idx) { return heap[idx]; }
43
-
44
- function handleError(f, args) {
45
- try {
46
- return f.apply(this, args);
47
- } catch (e) {
48
- wasm.__wbindgen_export_0(addHeapObject(e));
14
+ function _assertClass(instance, klass) {
15
+ if (!(instance instanceof klass)) {
16
+ throw new Error(`expected instance of ${klass.name}`);
49
17
  }
50
18
  }
51
19
 
52
- function getArrayU8FromWasm0(ptr, len) {
53
- ptr = ptr >>> 0;
54
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
20
+ function addBorrowedObject(obj) {
21
+ if (stack_pointer == 1) throw new Error('out of js stack');
22
+ heap[--stack_pointer] = obj;
23
+ return stack_pointer;
55
24
  }
56
25
 
57
26
  function dropObject(idx) {
@@ -60,18 +29,12 @@ function dropObject(idx) {
60
29
  heap_next = idx;
61
30
  }
62
31
 
63
- function takeObject(idx) {
64
- const ret = getObject(idx);
65
- dropObject(idx);
66
- return ret;
67
- }
68
-
69
- function isLikeNone(x) {
70
- return x === undefined || x === null;
32
+ function getArrayU8FromWasm0(ptr, len) {
33
+ ptr = ptr >>> 0;
34
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
71
35
  }
72
36
 
73
37
  let cachedDataViewMemory0 = null;
74
-
75
38
  function getDataViewMemory0() {
76
39
  if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
77
40
  cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
@@ -79,23 +42,56 @@ function getDataViewMemory0() {
79
42
  return cachedDataViewMemory0;
80
43
  }
81
44
 
82
- let WASM_VECTOR_LEN = 0;
45
+ function getStringFromWasm0(ptr, len) {
46
+ ptr = ptr >>> 0;
47
+ return decodeText(ptr, len);
48
+ }
83
49
 
84
- const cachedTextEncoder = new TextEncoder();
50
+ let cachedUint8ArrayMemory0 = null;
51
+ function getUint8ArrayMemory0() {
52
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
53
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
54
+ }
55
+ return cachedUint8ArrayMemory0;
56
+ }
85
57
 
86
- if (!('encodeInto' in cachedTextEncoder)) {
87
- cachedTextEncoder.encodeInto = function (arg, view) {
88
- const buf = cachedTextEncoder.encode(arg);
89
- view.set(buf);
90
- return {
91
- read: arg.length,
92
- written: buf.length
93
- };
58
+ function getObject(idx) { return heap[idx]; }
59
+
60
+ function handleError(f, args) {
61
+ try {
62
+ return f.apply(this, args);
63
+ } catch (e) {
64
+ wasm.__wbindgen_export3(addHeapObject(e));
94
65
  }
95
66
  }
96
67
 
97
- function passStringToWasm0(arg, malloc, realloc) {
68
+ let heap = new Array(128).fill(undefined);
69
+ heap.push(undefined, null, true, false);
70
+
71
+ let heap_next = heap.length;
98
72
 
73
+ function isLikeNone(x) {
74
+ return x === undefined || x === null;
75
+ }
76
+
77
+ function passArray8ToWasm0(arg, malloc) {
78
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
79
+ getUint8ArrayMemory0().set(arg, ptr / 1);
80
+ WASM_VECTOR_LEN = arg.length;
81
+ return ptr;
82
+ }
83
+
84
+ function passArrayJsValueToWasm0(array, malloc) {
85
+ const ptr = malloc(array.length * 4, 4) >>> 0;
86
+ const mem = getDataViewMemory0();
87
+ for (let i = 0; i < array.length; i++) {
88
+ mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
89
+ }
90
+ WASM_VECTOR_LEN = array.length;
91
+ return ptr;
92
+ }
93
+
94
+ function passStringToWasm0(arg, malloc, realloc) {
99
95
  if (realloc === undefined) {
100
96
  const buf = cachedTextEncoder.encode(arg);
101
97
  const ptr = malloc(buf.length, 1) >>> 0;
@@ -116,7 +112,6 @@ function passStringToWasm0(arg, malloc, realloc) {
116
112
  if (code > 0x7F) break;
117
113
  mem[ptr + offset] = code;
118
114
  }
119
-
120
115
  if (offset !== len) {
121
116
  if (offset !== 0) {
122
117
  arg = arg.slice(offset);
@@ -133,50 +128,86 @@ function passStringToWasm0(arg, malloc, realloc) {
133
128
  return ptr;
134
129
  }
135
130
 
136
- function passArray8ToWasm0(arg, malloc) {
137
- const ptr = malloc(arg.length * 1, 1) >>> 0;
138
- getUint8ArrayMemory0().set(arg, ptr / 1);
139
- WASM_VECTOR_LEN = arg.length;
140
- return ptr;
141
- }
131
+ let stack_pointer = 128;
142
132
 
143
- function _assertClass(instance, klass) {
144
- if (!(instance instanceof klass)) {
145
- throw new Error(`expected instance of ${klass.name}`);
146
- }
133
+ function takeObject(idx) {
134
+ const ret = getObject(idx);
135
+ dropObject(idx);
136
+ return ret;
147
137
  }
148
138
 
149
- function passArrayJsValueToWasm0(array, malloc) {
150
- const ptr = malloc(array.length * 4, 4) >>> 0;
151
- const mem = getDataViewMemory0();
152
- for (let i = 0; i < array.length; i++) {
153
- mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
154
- }
155
- WASM_VECTOR_LEN = array.length;
156
- return ptr;
139
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
140
+ cachedTextDecoder.decode();
141
+ function decodeText(ptr, len) {
142
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
157
143
  }
158
144
 
159
- let stack_pointer = 128;
145
+ const cachedTextEncoder = new TextEncoder();
160
146
 
161
- function addBorrowedObject(obj) {
162
- if (stack_pointer == 1) throw new Error('out of js stack');
163
- heap[--stack_pointer] = obj;
164
- return stack_pointer;
147
+ if (!('encodeInto' in cachedTextEncoder)) {
148
+ cachedTextEncoder.encodeInto = function (arg, view) {
149
+ const buf = cachedTextEncoder.encode(arg);
150
+ view.set(buf);
151
+ return {
152
+ read: arg.length,
153
+ written: buf.length
154
+ };
155
+ }
165
156
  }
166
157
 
158
+ let WASM_VECTOR_LEN = 0;
159
+
167
160
  const AddressNamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
168
161
  ? { register: () => {}, unregister: () => {} }
169
162
  : new FinalizationRegistry(ptr => wasm.__wbg_addressnamespace_free(ptr >>> 0, 1));
170
163
 
171
- class AddressNamespace {
164
+ const BitGoPsbtFinalization = (typeof FinalizationRegistry === 'undefined')
165
+ ? { register: () => {}, unregister: () => {} }
166
+ : new FinalizationRegistry(ptr => wasm.__wbg_bitgopsbt_free(ptr >>> 0, 1));
167
+
168
+ const FixedScriptWalletNamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
169
+ ? { register: () => {}, unregister: () => {} }
170
+ : new FinalizationRegistry(ptr => wasm.__wbg_fixedscriptwalletnamespace_free(ptr >>> 0, 1));
171
+
172
+ const UtxolibCompatNamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
173
+ ? { register: () => {}, unregister: () => {} }
174
+ : new FinalizationRegistry(ptr => wasm.__wbg_utxolibcompatnamespace_free(ptr >>> 0, 1));
175
+
176
+ const WasmBIP32Finalization = (typeof FinalizationRegistry === 'undefined')
177
+ ? { register: () => {}, unregister: () => {} }
178
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmbip32_free(ptr >>> 0, 1));
179
+
180
+ const WasmECPairFinalization = (typeof FinalizationRegistry === 'undefined')
181
+ ? { register: () => {}, unregister: () => {} }
182
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmecpair_free(ptr >>> 0, 1));
183
+
184
+ const WasmReplayProtectionFinalization = (typeof FinalizationRegistry === 'undefined')
185
+ ? { register: () => {}, unregister: () => {} }
186
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmreplayprotection_free(ptr >>> 0, 1));
187
+
188
+ const WasmRootWalletKeysFinalization = (typeof FinalizationRegistry === 'undefined')
189
+ ? { register: () => {}, unregister: () => {} }
190
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmrootwalletkeys_free(ptr >>> 0, 1));
191
+
192
+ const WrapDescriptorFinalization = (typeof FinalizationRegistry === 'undefined')
193
+ ? { register: () => {}, unregister: () => {} }
194
+ : new FinalizationRegistry(ptr => wasm.__wbg_wrapdescriptor_free(ptr >>> 0, 1));
172
195
 
196
+ const WrapMiniscriptFinalization = (typeof FinalizationRegistry === 'undefined')
197
+ ? { register: () => {}, unregister: () => {} }
198
+ : new FinalizationRegistry(ptr => wasm.__wbg_wrapminiscript_free(ptr >>> 0, 1));
199
+
200
+ const WrapPsbtFinalization = (typeof FinalizationRegistry === 'undefined')
201
+ ? { register: () => {}, unregister: () => {} }
202
+ : new FinalizationRegistry(ptr => wasm.__wbg_wrappsbt_free(ptr >>> 0, 1));
203
+
204
+ class AddressNamespace {
173
205
  __destroy_into_raw() {
174
206
  const ptr = this.__wbg_ptr;
175
207
  this.__wbg_ptr = 0;
176
208
  AddressNamespaceFinalization.unregister(this);
177
209
  return ptr;
178
210
  }
179
-
180
211
  free() {
181
212
  const ptr = this.__destroy_into_raw();
182
213
  wasm.__wbg_addressnamespace_free(ptr, 0);
@@ -189,9 +220,9 @@ class AddressNamespace {
189
220
  static to_output_script_with_coin(address, coin) {
190
221
  try {
191
222
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
192
- const ptr0 = passStringToWasm0(address, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
223
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_export, wasm.__wbindgen_export2);
193
224
  const len0 = WASM_VECTOR_LEN;
194
- const ptr1 = passStringToWasm0(coin, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
225
+ const ptr1 = passStringToWasm0(coin, wasm.__wbindgen_export, wasm.__wbindgen_export2);
195
226
  const len1 = WASM_VECTOR_LEN;
196
227
  wasm.addressnamespace_to_output_script_with_coin(retptr, ptr0, len0, ptr1, len1);
197
228
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -202,7 +233,7 @@ class AddressNamespace {
202
233
  throw takeObject(r2);
203
234
  }
204
235
  var v3 = getArrayU8FromWasm0(r0, r1).slice();
205
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
236
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
206
237
  return v3;
207
238
  } finally {
208
239
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -219,11 +250,11 @@ class AddressNamespace {
219
250
  let deferred5_1;
220
251
  try {
221
252
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
222
- const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export_1);
253
+ const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export);
223
254
  const len0 = WASM_VECTOR_LEN;
224
- const ptr1 = passStringToWasm0(coin, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
255
+ const ptr1 = passStringToWasm0(coin, wasm.__wbindgen_export, wasm.__wbindgen_export2);
225
256
  const len1 = WASM_VECTOR_LEN;
226
- var ptr2 = isLikeNone(format) ? 0 : passStringToWasm0(format, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
257
+ var ptr2 = isLikeNone(format) ? 0 : passStringToWasm0(format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
227
258
  var len2 = WASM_VECTOR_LEN;
228
259
  wasm.addressnamespace_from_output_script_with_coin(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
229
260
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -241,20 +272,14 @@ class AddressNamespace {
241
272
  return getStringFromWasm0(ptr4, len4);
242
273
  } finally {
243
274
  wasm.__wbindgen_add_to_stack_pointer(16);
244
- wasm.__wbindgen_export_3(deferred5_0, deferred5_1, 1);
275
+ wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
245
276
  }
246
277
  }
247
278
  }
248
279
  if (Symbol.dispose) AddressNamespace.prototype[Symbol.dispose] = AddressNamespace.prototype.free;
249
-
250
280
  exports.AddressNamespace = AddressNamespace;
251
281
 
252
- const BitGoPsbtFinalization = (typeof FinalizationRegistry === 'undefined')
253
- ? { register: () => {}, unregister: () => {} }
254
- : new FinalizationRegistry(ptr => wasm.__wbg_bitgopsbt_free(ptr >>> 0, 1));
255
-
256
282
  class BitGoPsbt {
257
-
258
283
  static __wrap(ptr) {
259
284
  ptr = ptr >>> 0;
260
285
  const obj = Object.create(BitGoPsbt.prototype);
@@ -262,14 +287,12 @@ class BitGoPsbt {
262
287
  BitGoPsbtFinalization.register(obj, obj.__wbg_ptr, obj);
263
288
  return obj;
264
289
  }
265
-
266
290
  __destroy_into_raw() {
267
291
  const ptr = this.__wbg_ptr;
268
292
  this.__wbg_ptr = 0;
269
293
  BitGoPsbtFinalization.unregister(this);
270
294
  return ptr;
271
295
  }
272
-
273
296
  free() {
274
297
  const ptr = this.__destroy_into_raw();
275
298
  wasm.__wbg_bitgopsbt_free(ptr, 0);
@@ -283,9 +306,9 @@ class BitGoPsbt {
283
306
  static from_bytes(bytes, network) {
284
307
  try {
285
308
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
286
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_1);
309
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
287
310
  const len0 = WASM_VECTOR_LEN;
288
- const ptr1 = passStringToWasm0(network, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
311
+ const ptr1 = passStringToWasm0(network, wasm.__wbindgen_export, wasm.__wbindgen_export2);
289
312
  const len1 = WASM_VECTOR_LEN;
290
313
  wasm.bitgopsbt_from_bytes(retptr, ptr0, len0, ptr1, len1);
291
314
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -316,7 +339,7 @@ class BitGoPsbt {
316
339
  return getStringFromWasm0(r0, r1);
317
340
  } finally {
318
341
  wasm.__wbindgen_add_to_stack_pointer(16);
319
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
342
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
320
343
  }
321
344
  }
322
345
  /**
@@ -412,7 +435,7 @@ class BitGoPsbt {
412
435
  throw takeObject(r2);
413
436
  }
414
437
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
415
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
438
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
416
439
  return v1;
417
440
  } finally {
418
441
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -459,9 +482,9 @@ class BitGoPsbt {
459
482
  add_paygo_attestation(output_index, entropy, signature) {
460
483
  try {
461
484
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
462
- const ptr0 = passArray8ToWasm0(entropy, wasm.__wbindgen_export_1);
485
+ const ptr0 = passArray8ToWasm0(entropy, wasm.__wbindgen_export);
463
486
  const len0 = WASM_VECTOR_LEN;
464
- const ptr1 = passArray8ToWasm0(signature, wasm.__wbindgen_export_1);
487
+ const ptr1 = passArray8ToWasm0(signature, wasm.__wbindgen_export);
465
488
  const len1 = WASM_VECTOR_LEN;
466
489
  wasm.bitgopsbt_add_paygo_attestation(retptr, this.__wbg_ptr, output_index, ptr0, len0, ptr1, len1);
467
490
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -538,7 +561,7 @@ class BitGoPsbt {
538
561
  try {
539
562
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
540
563
  _assertClass(xpriv, WasmBIP32);
541
- var ptr0 = isLikeNone(session_id_bytes) ? 0 : passArray8ToWasm0(session_id_bytes, wasm.__wbindgen_export_1);
564
+ var ptr0 = isLikeNone(session_id_bytes) ? 0 : passArray8ToWasm0(session_id_bytes, wasm.__wbindgen_export);
542
565
  var len0 = WASM_VECTOR_LEN;
543
566
  wasm.bitgopsbt_generate_musig2_nonces(retptr, this.__wbg_ptr, xpriv.__wbg_ptr, ptr0, len0);
544
567
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -637,7 +660,7 @@ class BitGoPsbt {
637
660
  try {
638
661
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
639
662
  _assertClass(wallet_keys, WasmRootWalletKeys);
640
- var ptr0 = isLikeNone(paygo_pubkeys) ? 0 : passArrayJsValueToWasm0(paygo_pubkeys, wasm.__wbindgen_export_1);
663
+ var ptr0 = isLikeNone(paygo_pubkeys) ? 0 : passArrayJsValueToWasm0(paygo_pubkeys, wasm.__wbindgen_export);
641
664
  var len0 = WASM_VECTOR_LEN;
642
665
  wasm.bitgopsbt_parse_outputs_with_wallet_keys(retptr, this.__wbg_ptr, wallet_keys.__wbg_ptr, ptr0, len0);
643
666
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -663,7 +686,7 @@ class BitGoPsbt {
663
686
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
664
687
  _assertClass(wallet_keys, WasmRootWalletKeys);
665
688
  _assertClass(replay_protection, WasmReplayProtection);
666
- var ptr0 = isLikeNone(paygo_pubkeys) ? 0 : passArrayJsValueToWasm0(paygo_pubkeys, wasm.__wbindgen_export_1);
689
+ var ptr0 = isLikeNone(paygo_pubkeys) ? 0 : passArrayJsValueToWasm0(paygo_pubkeys, wasm.__wbindgen_export);
667
690
  var len0 = WASM_VECTOR_LEN;
668
691
  wasm.bitgopsbt_parse_transaction_with_wallet_keys(retptr, this.__wbg_ptr, wallet_keys.__wbg_ptr, replay_protection.__wbg_ptr, ptr0, len0);
669
692
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -730,7 +753,7 @@ class BitGoPsbt {
730
753
  return getStringFromWasm0(r0, r1);
731
754
  } finally {
732
755
  wasm.__wbindgen_add_to_stack_pointer(16);
733
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
756
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
734
757
  }
735
758
  }
736
759
  /**
@@ -752,7 +775,7 @@ class BitGoPsbt {
752
775
  throw takeObject(r2);
753
776
  }
754
777
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
755
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
778
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
756
779
  return v1;
757
780
  } finally {
758
781
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -760,22 +783,15 @@ class BitGoPsbt {
760
783
  }
761
784
  }
762
785
  if (Symbol.dispose) BitGoPsbt.prototype[Symbol.dispose] = BitGoPsbt.prototype.free;
763
-
764
786
  exports.BitGoPsbt = BitGoPsbt;
765
787
 
766
- const FixedScriptWalletNamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
767
- ? { register: () => {}, unregister: () => {} }
768
- : new FinalizationRegistry(ptr => wasm.__wbg_fixedscriptwalletnamespace_free(ptr >>> 0, 1));
769
-
770
788
  class FixedScriptWalletNamespace {
771
-
772
789
  __destroy_into_raw() {
773
790
  const ptr = this.__wbg_ptr;
774
791
  this.__wbg_ptr = 0;
775
792
  FixedScriptWalletNamespaceFinalization.unregister(this);
776
793
  return ptr;
777
794
  }
778
-
779
795
  free() {
780
796
  const ptr = this.__destroy_into_raw();
781
797
  wasm.__wbg_fixedscriptwalletnamespace_free(ptr, 0);
@@ -800,7 +816,7 @@ class FixedScriptWalletNamespace {
800
816
  throw takeObject(r2);
801
817
  }
802
818
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
803
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
819
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
804
820
  return v1;
805
821
  } finally {
806
822
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -820,7 +836,7 @@ class FixedScriptWalletNamespace {
820
836
  try {
821
837
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
822
838
  _assertClass(keys, WasmRootWalletKeys);
823
- var ptr0 = isLikeNone(address_format) ? 0 : passStringToWasm0(address_format, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
839
+ var ptr0 = isLikeNone(address_format) ? 0 : passStringToWasm0(address_format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
824
840
  var len0 = WASM_VECTOR_LEN;
825
841
  wasm.fixedscriptwalletnamespace_address(retptr, keys.__wbg_ptr, chain, index, addHeapObject(network), ptr0, len0);
826
842
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -838,27 +854,20 @@ class FixedScriptWalletNamespace {
838
854
  return getStringFromWasm0(ptr2, len2);
839
855
  } finally {
840
856
  wasm.__wbindgen_add_to_stack_pointer(16);
841
- wasm.__wbindgen_export_3(deferred3_0, deferred3_1, 1);
857
+ wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
842
858
  }
843
859
  }
844
860
  }
845
861
  if (Symbol.dispose) FixedScriptWalletNamespace.prototype[Symbol.dispose] = FixedScriptWalletNamespace.prototype.free;
846
-
847
862
  exports.FixedScriptWalletNamespace = FixedScriptWalletNamespace;
848
863
 
849
- const UtxolibCompatNamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
850
- ? { register: () => {}, unregister: () => {} }
851
- : new FinalizationRegistry(ptr => wasm.__wbg_utxolibcompatnamespace_free(ptr >>> 0, 1));
852
-
853
864
  class UtxolibCompatNamespace {
854
-
855
865
  __destroy_into_raw() {
856
866
  const ptr = this.__wbg_ptr;
857
867
  this.__wbg_ptr = 0;
858
868
  UtxolibCompatNamespaceFinalization.unregister(this);
859
869
  return ptr;
860
870
  }
861
-
862
871
  free() {
863
872
  const ptr = this.__destroy_into_raw();
864
873
  wasm.__wbg_utxolibcompatnamespace_free(ptr, 0);
@@ -878,9 +887,9 @@ class UtxolibCompatNamespace {
878
887
  static to_output_script(address, network, format) {
879
888
  try {
880
889
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
881
- const ptr0 = passStringToWasm0(address, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
890
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_export, wasm.__wbindgen_export2);
882
891
  const len0 = WASM_VECTOR_LEN;
883
- var ptr1 = isLikeNone(format) ? 0 : passStringToWasm0(format, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
892
+ var ptr1 = isLikeNone(format) ? 0 : passStringToWasm0(format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
884
893
  var len1 = WASM_VECTOR_LEN;
885
894
  wasm.utxolibcompatnamespace_to_output_script(retptr, ptr0, len0, addHeapObject(network), ptr1, len1);
886
895
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -891,7 +900,7 @@ class UtxolibCompatNamespace {
891
900
  throw takeObject(r2);
892
901
  }
893
902
  var v3 = getArrayU8FromWasm0(r0, r1).slice();
894
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
903
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
895
904
  return v3;
896
905
  } finally {
897
906
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -914,9 +923,9 @@ class UtxolibCompatNamespace {
914
923
  let deferred4_1;
915
924
  try {
916
925
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
917
- const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export_1);
926
+ const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export);
918
927
  const len0 = WASM_VECTOR_LEN;
919
- var ptr1 = isLikeNone(format) ? 0 : passStringToWasm0(format, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
928
+ var ptr1 = isLikeNone(format) ? 0 : passStringToWasm0(format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
920
929
  var len1 = WASM_VECTOR_LEN;
921
930
  wasm.utxolibcompatnamespace_from_output_script(retptr, ptr0, len0, addHeapObject(network), ptr1, len1);
922
931
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -934,23 +943,18 @@ class UtxolibCompatNamespace {
934
943
  return getStringFromWasm0(ptr3, len3);
935
944
  } finally {
936
945
  wasm.__wbindgen_add_to_stack_pointer(16);
937
- wasm.__wbindgen_export_3(deferred4_0, deferred4_1, 1);
946
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
938
947
  }
939
948
  }
940
949
  }
941
950
  if (Symbol.dispose) UtxolibCompatNamespace.prototype[Symbol.dispose] = UtxolibCompatNamespace.prototype.free;
942
-
943
951
  exports.UtxolibCompatNamespace = UtxolibCompatNamespace;
944
952
 
945
- const WasmBIP32Finalization = (typeof FinalizationRegistry === 'undefined')
946
- ? { register: () => {}, unregister: () => {} }
947
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmbip32_free(ptr >>> 0, 1));
948
953
  /**
949
954
  * WASM wrapper for BIP32 extended keys (Xpub/Xpriv)
950
955
  * Implements the BIP32Interface TypeScript interface
951
956
  */
952
957
  class WasmBIP32 {
953
-
954
958
  static __wrap(ptr) {
955
959
  ptr = ptr >>> 0;
956
960
  const obj = Object.create(WasmBIP32.prototype);
@@ -958,14 +962,12 @@ class WasmBIP32 {
958
962
  WasmBIP32Finalization.register(obj, obj.__wbg_ptr, obj);
959
963
  return obj;
960
964
  }
961
-
962
965
  __destroy_into_raw() {
963
966
  const ptr = this.__wbg_ptr;
964
967
  this.__wbg_ptr = 0;
965
968
  WasmBIP32Finalization.unregister(this);
966
969
  return ptr;
967
970
  }
968
-
969
971
  free() {
970
972
  const ptr = this.__destroy_into_raw();
971
973
  wasm.__wbg_wasmbip32_free(ptr, 0);
@@ -1002,7 +1004,7 @@ class WasmBIP32 {
1002
1004
  derive_path(path) {
1003
1005
  try {
1004
1006
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1005
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1007
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1006
1008
  const len0 = WASM_VECTOR_LEN;
1007
1009
  wasm.wasmbip32_derive_path(retptr, this.__wbg_ptr, ptr0, len0);
1008
1010
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1032,7 +1034,7 @@ class WasmBIP32 {
1032
1034
  static from_base58(base58_str) {
1033
1035
  try {
1034
1036
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1035
- const ptr0 = passStringToWasm0(base58_str, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1037
+ const ptr0 = passStringToWasm0(base58_str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1036
1038
  const len0 = WASM_VECTOR_LEN;
1037
1039
  wasm.wasmbip32_from_base58(retptr, ptr0, len0);
1038
1040
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1196,7 +1198,7 @@ class WasmBIP32 {
1196
1198
  return getStringFromWasm0(ptr1, len1);
1197
1199
  } finally {
1198
1200
  wasm.__wbindgen_add_to_stack_pointer(16);
1199
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1201
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
1200
1202
  }
1201
1203
  }
1202
1204
  /**
@@ -1216,9 +1218,9 @@ class WasmBIP32 {
1216
1218
  static from_seed(seed, network) {
1217
1219
  try {
1218
1220
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1219
- const ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_export_1);
1221
+ const ptr0 = passArray8ToWasm0(seed, wasm.__wbindgen_export);
1220
1222
  const len0 = WASM_VECTOR_LEN;
1221
- var ptr1 = isLikeNone(network) ? 0 : passStringToWasm0(network, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1223
+ var ptr1 = isLikeNone(network) ? 0 : passStringToWasm0(network, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1222
1224
  var len1 = WASM_VECTOR_LEN;
1223
1225
  wasm.wasmbip32_from_seed(retptr, ptr0, len0, ptr1, len1);
1224
1226
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1240,7 +1242,7 @@ class WasmBIP32 {
1240
1242
  static from_xprv(xprv_str) {
1241
1243
  try {
1242
1244
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1243
- const ptr0 = passStringToWasm0(xprv_str, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1245
+ const ptr0 = passStringToWasm0(xprv_str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1244
1246
  const len0 = WASM_VECTOR_LEN;
1245
1247
  wasm.wasmbip32_from_xprv(retptr, ptr0, len0);
1246
1248
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1262,7 +1264,7 @@ class WasmBIP32 {
1262
1264
  static from_xpub(xpub_str) {
1263
1265
  try {
1264
1266
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1265
- const ptr0 = passStringToWasm0(xpub_str, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1267
+ const ptr0 = passStringToWasm0(xpub_str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1266
1268
  const len0 = WASM_VECTOR_LEN;
1267
1269
  wasm.wasmbip32_from_xpub(retptr, ptr0, len0);
1268
1270
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1293,22 +1295,17 @@ class WasmBIP32 {
1293
1295
  return getStringFromWasm0(r0, r1);
1294
1296
  } finally {
1295
1297
  wasm.__wbindgen_add_to_stack_pointer(16);
1296
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
1298
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
1297
1299
  }
1298
1300
  }
1299
1301
  }
1300
1302
  if (Symbol.dispose) WasmBIP32.prototype[Symbol.dispose] = WasmBIP32.prototype.free;
1301
-
1302
1303
  exports.WasmBIP32 = WasmBIP32;
1303
1304
 
1304
- const WasmECPairFinalization = (typeof FinalizationRegistry === 'undefined')
1305
- ? { register: () => {}, unregister: () => {} }
1306
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmecpair_free(ptr >>> 0, 1));
1307
1305
  /**
1308
1306
  * WASM wrapper for elliptic curve key pairs (always uses compressed keys)
1309
1307
  */
1310
1308
  class WasmECPair {
1311
-
1312
1309
  static __wrap(ptr) {
1313
1310
  ptr = ptr >>> 0;
1314
1311
  const obj = Object.create(WasmECPair.prototype);
@@ -1316,21 +1313,18 @@ class WasmECPair {
1316
1313
  WasmECPairFinalization.register(obj, obj.__wbg_ptr, obj);
1317
1314
  return obj;
1318
1315
  }
1319
-
1320
1316
  static __unwrap(jsValue) {
1321
1317
  if (!(jsValue instanceof WasmECPair)) {
1322
1318
  return 0;
1323
1319
  }
1324
1320
  return jsValue.__destroy_into_raw();
1325
1321
  }
1326
-
1327
1322
  __destroy_into_raw() {
1328
1323
  const ptr = this.__wbg_ptr;
1329
1324
  this.__wbg_ptr = 0;
1330
1325
  WasmECPairFinalization.unregister(this);
1331
1326
  return ptr;
1332
1327
  }
1333
-
1334
1328
  free() {
1335
1329
  const ptr = this.__destroy_into_raw();
1336
1330
  wasm.__wbg_wasmecpair_free(ptr, 0);
@@ -1376,7 +1370,7 @@ class WasmECPair {
1376
1370
  return getStringFromWasm0(ptr1, len1);
1377
1371
  } finally {
1378
1372
  wasm.__wbindgen_add_to_stack_pointer(16);
1379
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1373
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
1380
1374
  }
1381
1375
  }
1382
1376
  /**
@@ -1404,7 +1398,7 @@ class WasmECPair {
1404
1398
  return getStringFromWasm0(ptr1, len1);
1405
1399
  } finally {
1406
1400
  wasm.__wbindgen_add_to_stack_pointer(16);
1407
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1401
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
1408
1402
  }
1409
1403
  }
1410
1404
  /**
@@ -1415,7 +1409,7 @@ class WasmECPair {
1415
1409
  static from_public_key(public_key) {
1416
1410
  try {
1417
1411
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1418
- const ptr0 = passArray8ToWasm0(public_key, wasm.__wbindgen_export_1);
1412
+ const ptr0 = passArray8ToWasm0(public_key, wasm.__wbindgen_export);
1419
1413
  const len0 = WASM_VECTOR_LEN;
1420
1414
  wasm.wasmecpair_from_public_key(retptr, ptr0, len0);
1421
1415
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1437,7 +1431,7 @@ class WasmECPair {
1437
1431
  static from_private_key(private_key) {
1438
1432
  try {
1439
1433
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1440
- const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_export_1);
1434
+ const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_export);
1441
1435
  const len0 = WASM_VECTOR_LEN;
1442
1436
  wasm.wasmecpair_from_private_key(retptr, ptr0, len0);
1443
1437
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1459,7 +1453,7 @@ class WasmECPair {
1459
1453
  static from_wif_mainnet(wif_string) {
1460
1454
  try {
1461
1455
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1462
- const ptr0 = passStringToWasm0(wif_string, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1456
+ const ptr0 = passStringToWasm0(wif_string, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1463
1457
  const len0 = WASM_VECTOR_LEN;
1464
1458
  wasm.wasmecpair_from_wif_mainnet(retptr, ptr0, len0);
1465
1459
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1481,7 +1475,7 @@ class WasmECPair {
1481
1475
  static from_wif_testnet(wif_string) {
1482
1476
  try {
1483
1477
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1484
- const ptr0 = passStringToWasm0(wif_string, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1478
+ const ptr0 = passStringToWasm0(wif_string, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1485
1479
  const len0 = WASM_VECTOR_LEN;
1486
1480
  wasm.wasmecpair_from_wif_testnet(retptr, ptr0, len0);
1487
1481
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1520,7 +1514,7 @@ class WasmECPair {
1520
1514
  return getStringFromWasm0(ptr1, len1);
1521
1515
  } finally {
1522
1516
  wasm.__wbindgen_add_to_stack_pointer(16);
1523
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1517
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
1524
1518
  }
1525
1519
  }
1526
1520
  /**
@@ -1531,7 +1525,7 @@ class WasmECPair {
1531
1525
  static from_wif(wif_string) {
1532
1526
  try {
1533
1527
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1534
- const ptr0 = passStringToWasm0(wif_string, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1528
+ const ptr0 = passStringToWasm0(wif_string, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1535
1529
  const len0 = WASM_VECTOR_LEN;
1536
1530
  wasm.wasmecpair_from_wif(retptr, ptr0, len0);
1537
1531
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1547,17 +1541,12 @@ class WasmECPair {
1547
1541
  }
1548
1542
  }
1549
1543
  if (Symbol.dispose) WasmECPair.prototype[Symbol.dispose] = WasmECPair.prototype.free;
1550
-
1551
1544
  exports.WasmECPair = WasmECPair;
1552
1545
 
1553
- const WasmReplayProtectionFinalization = (typeof FinalizationRegistry === 'undefined')
1554
- ? { register: () => {}, unregister: () => {} }
1555
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmreplayprotection_free(ptr >>> 0, 1));
1556
1546
  /**
1557
1547
  * WASM wrapper for ReplayProtection
1558
1548
  */
1559
1549
  class WasmReplayProtection {
1560
-
1561
1550
  static __wrap(ptr) {
1562
1551
  ptr = ptr >>> 0;
1563
1552
  const obj = Object.create(WasmReplayProtection.prototype);
@@ -1565,14 +1554,12 @@ class WasmReplayProtection {
1565
1554
  WasmReplayProtectionFinalization.register(obj, obj.__wbg_ptr, obj);
1566
1555
  return obj;
1567
1556
  }
1568
-
1569
1557
  __destroy_into_raw() {
1570
1558
  const ptr = this.__wbg_ptr;
1571
1559
  this.__wbg_ptr = 0;
1572
1560
  WasmReplayProtectionFinalization.unregister(this);
1573
1561
  return ptr;
1574
1562
  }
1575
-
1576
1563
  free() {
1577
1564
  const ptr = this.__destroy_into_raw();
1578
1565
  wasm.__wbg_wasmreplayprotection_free(ptr, 0);
@@ -1586,9 +1573,9 @@ class WasmReplayProtection {
1586
1573
  static from_addresses(addresses, network) {
1587
1574
  try {
1588
1575
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1589
- const ptr0 = passArrayJsValueToWasm0(addresses, wasm.__wbindgen_export_1);
1576
+ const ptr0 = passArrayJsValueToWasm0(addresses, wasm.__wbindgen_export);
1590
1577
  const len0 = WASM_VECTOR_LEN;
1591
- const ptr1 = passStringToWasm0(network, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1578
+ const ptr1 = passStringToWasm0(network, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1592
1579
  const len1 = WASM_VECTOR_LEN;
1593
1580
  wasm.wasmreplayprotection_from_addresses(retptr, ptr0, len0, ptr1, len1);
1594
1581
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1610,7 +1597,7 @@ class WasmReplayProtection {
1610
1597
  static from_public_keys(public_keys) {
1611
1598
  try {
1612
1599
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1613
- const ptr0 = passArrayJsValueToWasm0(public_keys, wasm.__wbindgen_export_1);
1600
+ const ptr0 = passArrayJsValueToWasm0(public_keys, wasm.__wbindgen_export);
1614
1601
  const len0 = WASM_VECTOR_LEN;
1615
1602
  wasm.wasmreplayprotection_from_public_keys(retptr, ptr0, len0);
1616
1603
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1630,25 +1617,20 @@ class WasmReplayProtection {
1630
1617
  * @returns {WasmReplayProtection}
1631
1618
  */
1632
1619
  static from_output_scripts(output_scripts) {
1633
- const ptr0 = passArrayJsValueToWasm0(output_scripts, wasm.__wbindgen_export_1);
1620
+ const ptr0 = passArrayJsValueToWasm0(output_scripts, wasm.__wbindgen_export);
1634
1621
  const len0 = WASM_VECTOR_LEN;
1635
1622
  const ret = wasm.wasmreplayprotection_from_output_scripts(ptr0, len0);
1636
1623
  return WasmReplayProtection.__wrap(ret);
1637
1624
  }
1638
1625
  }
1639
1626
  if (Symbol.dispose) WasmReplayProtection.prototype[Symbol.dispose] = WasmReplayProtection.prototype.free;
1640
-
1641
1627
  exports.WasmReplayProtection = WasmReplayProtection;
1642
1628
 
1643
- const WasmRootWalletKeysFinalization = (typeof FinalizationRegistry === 'undefined')
1644
- ? { register: () => {}, unregister: () => {} }
1645
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmrootwalletkeys_free(ptr >>> 0, 1));
1646
1629
  /**
1647
1630
  * WASM wrapper for RootWalletKeys
1648
1631
  * Represents a set of three extended public keys with their derivation prefixes
1649
1632
  */
1650
1633
  class WasmRootWalletKeys {
1651
-
1652
1634
  static __wrap(ptr) {
1653
1635
  ptr = ptr >>> 0;
1654
1636
  const obj = Object.create(WasmRootWalletKeys.prototype);
@@ -1656,14 +1638,12 @@ class WasmRootWalletKeys {
1656
1638
  WasmRootWalletKeysFinalization.register(obj, obj.__wbg_ptr, obj);
1657
1639
  return obj;
1658
1640
  }
1659
-
1660
1641
  __destroy_into_raw() {
1661
1642
  const ptr = this.__wbg_ptr;
1662
1643
  this.__wbg_ptr = 0;
1663
1644
  WasmRootWalletKeysFinalization.unregister(this);
1664
1645
  return ptr;
1665
1646
  }
1666
-
1667
1647
  free() {
1668
1648
  const ptr = this.__destroy_into_raw();
1669
1649
  wasm.__wbg_wasmrootwalletkeys_free(ptr, 0);
@@ -1700,11 +1680,11 @@ class WasmRootWalletKeys {
1700
1680
  _assertClass(user, WasmBIP32);
1701
1681
  _assertClass(backup, WasmBIP32);
1702
1682
  _assertClass(bitgo, WasmBIP32);
1703
- const ptr0 = passStringToWasm0(user_derivation, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1683
+ const ptr0 = passStringToWasm0(user_derivation, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1704
1684
  const len0 = WASM_VECTOR_LEN;
1705
- const ptr1 = passStringToWasm0(backup_derivation, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1685
+ const ptr1 = passStringToWasm0(backup_derivation, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1706
1686
  const len1 = WASM_VECTOR_LEN;
1707
- const ptr2 = passStringToWasm0(bitgo_derivation, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1687
+ const ptr2 = passStringToWasm0(bitgo_derivation, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1708
1688
  const len2 = WASM_VECTOR_LEN;
1709
1689
  wasm.wasmrootwalletkeys_with_derivation_prefixes(retptr, user.__wbg_ptr, backup.__wbg_ptr, bitgo.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
1710
1690
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1768,15 +1748,9 @@ class WasmRootWalletKeys {
1768
1748
  }
1769
1749
  }
1770
1750
  if (Symbol.dispose) WasmRootWalletKeys.prototype[Symbol.dispose] = WasmRootWalletKeys.prototype.free;
1771
-
1772
1751
  exports.WasmRootWalletKeys = WasmRootWalletKeys;
1773
1752
 
1774
- const WrapDescriptorFinalization = (typeof FinalizationRegistry === 'undefined')
1775
- ? { register: () => {}, unregister: () => {} }
1776
- : new FinalizationRegistry(ptr => wasm.__wbg_wrapdescriptor_free(ptr >>> 0, 1));
1777
-
1778
1753
  class WrapDescriptor {
1779
-
1780
1754
  static __wrap(ptr) {
1781
1755
  ptr = ptr >>> 0;
1782
1756
  const obj = Object.create(WrapDescriptor.prototype);
@@ -1784,14 +1758,12 @@ class WrapDescriptor {
1784
1758
  WrapDescriptorFinalization.register(obj, obj.__wbg_ptr, obj);
1785
1759
  return obj;
1786
1760
  }
1787
-
1788
1761
  __destroy_into_raw() {
1789
1762
  const ptr = this.__wbg_ptr;
1790
1763
  this.__wbg_ptr = 0;
1791
1764
  WrapDescriptorFinalization.unregister(this);
1792
1765
  return ptr;
1793
1766
  }
1794
-
1795
1767
  free() {
1796
1768
  const ptr = this.__destroy_into_raw();
1797
1769
  wasm.__wbg_wrapdescriptor_free(ptr, 0);
@@ -1827,9 +1799,9 @@ class WrapDescriptor {
1827
1799
  static fromString(descriptor, pk_type) {
1828
1800
  try {
1829
1801
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1830
- const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1802
+ const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1831
1803
  const len0 = WASM_VECTOR_LEN;
1832
- const ptr1 = passStringToWasm0(pk_type, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1804
+ const ptr1 = passStringToWasm0(pk_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1833
1805
  const len1 = WASM_VECTOR_LEN;
1834
1806
  wasm.wrapdescriptor_fromString(retptr, ptr0, len0, ptr1, len1);
1835
1807
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -1865,7 +1837,7 @@ class WrapDescriptor {
1865
1837
  throw takeObject(r2);
1866
1838
  }
1867
1839
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
1868
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1840
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
1869
1841
  return v1;
1870
1842
  } finally {
1871
1843
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -1895,7 +1867,7 @@ class WrapDescriptor {
1895
1867
  return getStringFromWasm0(ptr1, len1);
1896
1868
  } finally {
1897
1869
  wasm.__wbindgen_add_to_stack_pointer(16);
1898
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
1870
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
1899
1871
  }
1900
1872
  }
1901
1873
  /**
@@ -1965,7 +1937,7 @@ class WrapDescriptor {
1965
1937
  static fromStringDetectType(descriptor) {
1966
1938
  try {
1967
1939
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1968
- const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1940
+ const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1969
1941
  const len0 = WASM_VECTOR_LEN;
1970
1942
  wasm.wrapdescriptor_fromStringDetectType(retptr, ptr0, len0);
1971
1943
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -2012,7 +1984,7 @@ class WrapDescriptor {
2012
1984
  throw takeObject(r2);
2013
1985
  }
2014
1986
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
2015
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
1987
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
2016
1988
  return v1;
2017
1989
  } finally {
2018
1990
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2052,20 +2024,14 @@ class WrapDescriptor {
2052
2024
  return getStringFromWasm0(r0, r1);
2053
2025
  } finally {
2054
2026
  wasm.__wbindgen_add_to_stack_pointer(16);
2055
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2027
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
2056
2028
  }
2057
2029
  }
2058
2030
  }
2059
2031
  if (Symbol.dispose) WrapDescriptor.prototype[Symbol.dispose] = WrapDescriptor.prototype.free;
2060
-
2061
2032
  exports.WrapDescriptor = WrapDescriptor;
2062
2033
 
2063
- const WrapMiniscriptFinalization = (typeof FinalizationRegistry === 'undefined')
2064
- ? { register: () => {}, unregister: () => {} }
2065
- : new FinalizationRegistry(ptr => wasm.__wbg_wrapminiscript_free(ptr >>> 0, 1));
2066
-
2067
2034
  class WrapMiniscript {
2068
-
2069
2035
  static __wrap(ptr) {
2070
2036
  ptr = ptr >>> 0;
2071
2037
  const obj = Object.create(WrapMiniscript.prototype);
@@ -2073,14 +2039,12 @@ class WrapMiniscript {
2073
2039
  WrapMiniscriptFinalization.register(obj, obj.__wbg_ptr, obj);
2074
2040
  return obj;
2075
2041
  }
2076
-
2077
2042
  __destroy_into_raw() {
2078
2043
  const ptr = this.__wbg_ptr;
2079
2044
  this.__wbg_ptr = 0;
2080
2045
  WrapMiniscriptFinalization.unregister(this);
2081
2046
  return ptr;
2082
2047
  }
2083
-
2084
2048
  free() {
2085
2049
  const ptr = this.__destroy_into_raw();
2086
2050
  wasm.__wbg_wrapminiscript_free(ptr, 0);
@@ -2093,9 +2057,9 @@ class WrapMiniscript {
2093
2057
  static fromString(script, context_type) {
2094
2058
  try {
2095
2059
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2096
- const ptr0 = passStringToWasm0(script, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
2060
+ const ptr0 = passStringToWasm0(script, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2097
2061
  const len0 = WASM_VECTOR_LEN;
2098
- const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
2062
+ const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2099
2063
  const len1 = WASM_VECTOR_LEN;
2100
2064
  wasm.wrapminiscript_fromString(retptr, ptr0, len0, ptr1, len1);
2101
2065
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -2133,7 +2097,7 @@ class WrapMiniscript {
2133
2097
  return getStringFromWasm0(ptr1, len1);
2134
2098
  } finally {
2135
2099
  wasm.__wbindgen_add_to_stack_pointer(16);
2136
- wasm.__wbindgen_export_3(deferred2_0, deferred2_1, 1);
2100
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
2137
2101
  }
2138
2102
  }
2139
2103
  /**
@@ -2144,9 +2108,9 @@ class WrapMiniscript {
2144
2108
  static fromBitcoinScript(script, context_type) {
2145
2109
  try {
2146
2110
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2147
- const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export_1);
2111
+ const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export);
2148
2112
  const len0 = WASM_VECTOR_LEN;
2149
- const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
2113
+ const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2150
2114
  const len1 = WASM_VECTOR_LEN;
2151
2115
  wasm.wrapminiscript_fromBitcoinScript(retptr, ptr0, len0, ptr1, len1);
2152
2116
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -2188,7 +2152,7 @@ class WrapMiniscript {
2188
2152
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2189
2153
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2190
2154
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
2191
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
2155
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
2192
2156
  return v1;
2193
2157
  } finally {
2194
2158
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2210,20 +2174,14 @@ class WrapMiniscript {
2210
2174
  return getStringFromWasm0(r0, r1);
2211
2175
  } finally {
2212
2176
  wasm.__wbindgen_add_to_stack_pointer(16);
2213
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
2177
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
2214
2178
  }
2215
2179
  }
2216
2180
  }
2217
2181
  if (Symbol.dispose) WrapMiniscript.prototype[Symbol.dispose] = WrapMiniscript.prototype.free;
2218
-
2219
2182
  exports.WrapMiniscript = WrapMiniscript;
2220
2183
 
2221
- const WrapPsbtFinalization = (typeof FinalizationRegistry === 'undefined')
2222
- ? { register: () => {}, unregister: () => {} }
2223
- : new FinalizationRegistry(ptr => wasm.__wbg_wrappsbt_free(ptr >>> 0, 1));
2224
-
2225
2184
  class WrapPsbt {
2226
-
2227
2185
  static __wrap(ptr) {
2228
2186
  ptr = ptr >>> 0;
2229
2187
  const obj = Object.create(WrapPsbt.prototype);
@@ -2231,14 +2189,12 @@ class WrapPsbt {
2231
2189
  WrapPsbtFinalization.register(obj, obj.__wbg_ptr, obj);
2232
2190
  return obj;
2233
2191
  }
2234
-
2235
2192
  __destroy_into_raw() {
2236
2193
  const ptr = this.__wbg_ptr;
2237
2194
  this.__wbg_ptr = 0;
2238
2195
  WrapPsbtFinalization.unregister(this);
2239
2196
  return ptr;
2240
2197
  }
2241
-
2242
2198
  free() {
2243
2199
  const ptr = this.__destroy_into_raw();
2244
2200
  wasm.__wbg_wrappsbt_free(ptr, 0);
@@ -2250,7 +2206,7 @@ class WrapPsbt {
2250
2206
  static deserialize(psbt) {
2251
2207
  try {
2252
2208
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2253
- const ptr0 = passArray8ToWasm0(psbt, wasm.__wbindgen_export_1);
2209
+ const ptr0 = passArray8ToWasm0(psbt, wasm.__wbindgen_export);
2254
2210
  const len0 = WASM_VECTOR_LEN;
2255
2211
  wasm.wrappsbt_deserialize(retptr, ptr0, len0);
2256
2212
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -2284,7 +2240,7 @@ class WrapPsbt {
2284
2240
  signWithPrv(prv) {
2285
2241
  try {
2286
2242
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2287
- const ptr0 = passArray8ToWasm0(prv, wasm.__wbindgen_export_1);
2243
+ const ptr0 = passArray8ToWasm0(prv, wasm.__wbindgen_export);
2288
2244
  const len0 = WASM_VECTOR_LEN;
2289
2245
  wasm.wrappsbt_signWithPrv(retptr, this.__wbg_ptr, ptr0, len0);
2290
2246
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -2305,7 +2261,7 @@ class WrapPsbt {
2305
2261
  signWithXprv(xprv) {
2306
2262
  try {
2307
2263
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2308
- const ptr0 = passStringToWasm0(xprv, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
2264
+ const ptr0 = passStringToWasm0(xprv, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2309
2265
  const len0 = WASM_VECTOR_LEN;
2310
2266
  wasm.wrappsbt_signWithXprv(retptr, this.__wbg_ptr, ptr0, len0);
2311
2267
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
@@ -2372,7 +2328,7 @@ class WrapPsbt {
2372
2328
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2373
2329
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2374
2330
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
2375
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
2331
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
2376
2332
  return v1;
2377
2333
  } finally {
2378
2334
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -2380,21 +2336,66 @@ class WrapPsbt {
2380
2336
  }
2381
2337
  }
2382
2338
  if (Symbol.dispose) WrapPsbt.prototype[Symbol.dispose] = WrapPsbt.prototype.free;
2383
-
2384
2339
  exports.WrapPsbt = WrapPsbt;
2385
2340
 
2386
- exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
2341
+ exports.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
2387
2342
  const ret = Error(getStringFromWasm0(arg0, arg1));
2388
2343
  return addHeapObject(ret);
2389
2344
  };
2390
2345
 
2391
- exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
2392
- const ret = getObject(arg0).call(getObject(arg1));
2346
+ exports.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
2347
+ const ret = typeof(getObject(arg0)) === 'function';
2348
+ return ret;
2349
+ };
2350
+
2351
+ exports.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
2352
+ const ret = getObject(arg0) === null;
2353
+ return ret;
2354
+ };
2355
+
2356
+ exports.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
2357
+ const val = getObject(arg0);
2358
+ const ret = typeof(val) === 'object' && val !== null;
2359
+ return ret;
2360
+ };
2361
+
2362
+ exports.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
2363
+ const ret = typeof(getObject(arg0)) === 'string';
2364
+ return ret;
2365
+ };
2366
+
2367
+ exports.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
2368
+ const ret = getObject(arg0) === undefined;
2369
+ return ret;
2370
+ };
2371
+
2372
+ exports.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
2373
+ const obj = getObject(arg1);
2374
+ const ret = typeof(obj) === 'number' ? obj : undefined;
2375
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2376
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2377
+ };
2378
+
2379
+ exports.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
2380
+ const obj = getObject(arg1);
2381
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2382
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2383
+ var len1 = WASM_VECTOR_LEN;
2384
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2385
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2386
+ };
2387
+
2388
+ exports.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
2389
+ throw new Error(getStringFromWasm0(arg0, arg1));
2390
+ };
2391
+
2392
+ exports.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
2393
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2393
2394
  return addHeapObject(ret);
2394
2395
  }, arguments) };
2395
2396
 
2396
- exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
2397
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2397
+ exports.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
2398
+ const ret = getObject(arg0).call(getObject(arg1));
2398
2399
  return addHeapObject(ret);
2399
2400
  }, arguments) };
2400
2401
 
@@ -2407,12 +2408,12 @@ exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError
2407
2408
  getObject(arg0).getRandomValues(getObject(arg1));
2408
2409
  }, arguments) };
2409
2410
 
2410
- exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
2411
+ exports.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
2411
2412
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
2412
2413
  return addHeapObject(ret);
2413
2414
  }, arguments) };
2414
2415
 
2415
- exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
2416
+ exports.__wbg_length_22ac23eaec9d8053 = function(arg0) {
2416
2417
  const ret = getObject(arg0).length;
2417
2418
  return ret;
2418
2419
  };
@@ -2422,37 +2423,37 @@ exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
2422
2423
  return addHeapObject(ret);
2423
2424
  };
2424
2425
 
2425
- exports.__wbg_new_19c25a3f2fa63a02 = function() {
2426
+ exports.__wbg_new_1ba21ce319a06297 = function() {
2426
2427
  const ret = new Object();
2427
2428
  return addHeapObject(ret);
2428
2429
  };
2429
2430
 
2430
- exports.__wbg_new_1f3a344cf3123716 = function() {
2431
+ exports.__wbg_new_25f239778d6112b9 = function() {
2431
2432
  const ret = new Array();
2432
2433
  return addHeapObject(ret);
2433
2434
  };
2434
2435
 
2435
- exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
2436
+ exports.__wbg_new_6421f6084cc5bc5a = function(arg0) {
2436
2437
  const ret = new Uint8Array(getObject(arg0));
2437
2438
  return addHeapObject(ret);
2438
2439
  };
2439
2440
 
2440
- exports.__wbg_new_da9dc54c5db29dfa = function(arg0, arg1) {
2441
+ exports.__wbg_new_df1173567d5ff028 = function(arg0, arg1) {
2441
2442
  const ret = new Error(getStringFromWasm0(arg0, arg1));
2442
2443
  return addHeapObject(ret);
2443
2444
  };
2444
2445
 
2445
- exports.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
2446
+ exports.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
2446
2447
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2447
2448
  return addHeapObject(ret);
2448
2449
  };
2449
2450
 
2450
- exports.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
2451
+ exports.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
2451
2452
  const ret = new Function(getStringFromWasm0(arg0, arg1));
2452
2453
  return addHeapObject(ret);
2453
2454
  };
2454
2455
 
2455
- exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
2456
+ exports.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
2456
2457
  const ret = new Uint8Array(arg0 >>> 0);
2457
2458
  return addHeapObject(ret);
2458
2459
  };
@@ -2467,11 +2468,11 @@ exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
2467
2468
  return addHeapObject(ret);
2468
2469
  };
2469
2470
 
2470
- exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
2471
+ exports.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
2471
2472
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
2472
2473
  };
2473
2474
 
2474
- exports.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
2475
+ exports.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
2475
2476
  const ret = getObject(arg0).push(getObject(arg1));
2476
2477
  return ret;
2477
2478
  };
@@ -2485,32 +2486,32 @@ exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(functio
2485
2486
  return addHeapObject(ret);
2486
2487
  }, arguments) };
2487
2488
 
2488
- exports.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
2489
+ exports.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
2489
2490
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
2490
2491
  return ret;
2491
2492
  }, arguments) };
2492
2493
 
2493
- exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
2494
+ exports.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
2494
2495
  const ret = typeof global === 'undefined' ? null : global;
2495
2496
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2496
2497
  };
2497
2498
 
2498
- exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
2499
+ exports.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
2499
2500
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
2500
2501
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2501
2502
  };
2502
2503
 
2503
- exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
2504
+ exports.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
2504
2505
  const ret = typeof self === 'undefined' ? null : self;
2505
2506
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2506
2507
  };
2507
2508
 
2508
- exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
2509
+ exports.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
2509
2510
  const ret = typeof window === 'undefined' ? null : window;
2510
2511
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2511
2512
  };
2512
2513
 
2513
- exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
2514
+ exports.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
2514
2515
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
2515
2516
  return addHeapObject(ret);
2516
2517
  };
@@ -2521,56 +2522,10 @@ exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
2521
2522
  };
2522
2523
 
2523
2524
  exports.__wbg_wasmecpair_unwrap = function(arg0) {
2524
- const ret = WasmECPair.__unwrap(takeObject(arg0));
2525
- return ret;
2526
- };
2527
-
2528
- exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
2529
- const ret = typeof(getObject(arg0)) === 'function';
2530
- return ret;
2531
- };
2532
-
2533
- exports.__wbg_wbindgenisnull_f3037694abe4d97a = function(arg0) {
2534
- const ret = getObject(arg0) === null;
2535
- return ret;
2536
- };
2537
-
2538
- exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
2539
- const val = getObject(arg0);
2540
- const ret = typeof(val) === 'object' && val !== null;
2541
- return ret;
2542
- };
2543
-
2544
- exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
2545
- const ret = typeof(getObject(arg0)) === 'string';
2546
- return ret;
2547
- };
2548
-
2549
- exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
2550
- const ret = getObject(arg0) === undefined;
2525
+ const ret = WasmECPair.__unwrap(getObject(arg0));
2551
2526
  return ret;
2552
2527
  };
2553
2528
 
2554
- exports.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
2555
- const obj = getObject(arg1);
2556
- const ret = typeof(obj) === 'number' ? obj : undefined;
2557
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2558
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2559
- };
2560
-
2561
- exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
2562
- const obj = getObject(arg1);
2563
- const ret = typeof(obj) === 'string' ? obj : undefined;
2564
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
2565
- var len1 = WASM_VECTOR_LEN;
2566
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2567
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2568
- };
2569
-
2570
- exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
2571
- throw new Error(getStringFromWasm0(arg0, arg1));
2572
- };
2573
-
2574
2529
  exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
2575
2530
  // Cast intrinsic for `Ref(String) -> Externref`.
2576
2531
  const ret = getStringFromWasm0(arg0, arg1);
@@ -2608,4 +2563,3 @@ const wasmPath = `${__dirname}/wasm_utxo_bg.wasm`;
2608
2563
  const wasmBytes = require('fs').readFileSync(wasmPath);
2609
2564
  const wasmModule = new WebAssembly.Module(wasmBytes);
2610
2565
  const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
2611
-