@bitgo/wasm-utxo 1.21.0 → 1.22.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.
@@ -29,6 +29,21 @@ function dropObject(idx) {
29
29
  heap_next = idx;
30
30
  }
31
31
 
32
+ function getArrayJsValueFromWasm0(ptr, len) {
33
+ ptr = ptr >>> 0;
34
+ const mem = getDataViewMemory0();
35
+ const result = [];
36
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
37
+ result.push(takeObject(mem.getUint32(i, true)));
38
+ }
39
+ return result;
40
+ }
41
+
42
+ function getArrayU32FromWasm0(ptr, len) {
43
+ ptr = ptr >>> 0;
44
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
45
+ }
46
+
32
47
  function getArrayU8FromWasm0(ptr, len) {
33
48
  ptr = ptr >>> 0;
34
49
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -47,6 +62,14 @@ function getStringFromWasm0(ptr, len) {
47
62
  return decodeText(ptr, len);
48
63
  }
49
64
 
65
+ let cachedUint32ArrayMemory0 = null;
66
+ function getUint32ArrayMemory0() {
67
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
68
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
69
+ }
70
+ return cachedUint32ArrayMemory0;
71
+ }
72
+
50
73
  let cachedUint8ArrayMemory0 = null;
51
74
  function getUint8ArrayMemory0() {
52
75
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
@@ -161,6 +184,10 @@ const AddressNamespaceFinalization = (typeof FinalizationRegistry === 'undefined
161
184
  ? { register: () => {}, unregister: () => {} }
162
185
  : new FinalizationRegistry(ptr => wasm.__wbg_addressnamespace_free(ptr >>> 0, 1));
163
186
 
187
+ const Bip322NamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
188
+ ? { register: () => {}, unregister: () => {} }
189
+ : new FinalizationRegistry(ptr => wasm.__wbg_bip322namespace_free(ptr >>> 0, 1));
190
+
164
191
  const BitGoPsbtFinalization = (typeof FinalizationRegistry === 'undefined')
165
192
  ? { register: () => {}, unregister: () => {} }
166
193
  : new FinalizationRegistry(ptr => wasm.__wbg_bitgopsbt_free(ptr >>> 0, 1));
@@ -295,6 +322,278 @@ class AddressNamespace {
295
322
  if (Symbol.dispose) AddressNamespace.prototype[Symbol.dispose] = AddressNamespace.prototype.free;
296
323
  exports.AddressNamespace = AddressNamespace;
297
324
 
325
+ /**
326
+ * Namespace for BIP-0322 functions
327
+ */
328
+ class Bip322Namespace {
329
+ __destroy_into_raw() {
330
+ const ptr = this.__wbg_ptr;
331
+ this.__wbg_ptr = 0;
332
+ Bip322NamespaceFinalization.unregister(this);
333
+ return ptr;
334
+ }
335
+ free() {
336
+ const ptr = this.__destroy_into_raw();
337
+ wasm.__wbg_bip322namespace_free(ptr, 0);
338
+ }
339
+ /**
340
+ * Add a BIP-0322 message input to an existing BitGoPsbt
341
+ *
342
+ * If this is the first input, also adds the OP_RETURN output.
343
+ * The PSBT must have version 0 per BIP-0322 specification.
344
+ *
345
+ * # Arguments
346
+ * * `psbt` - The BitGoPsbt to add the input to
347
+ * * `message` - The message to sign
348
+ * * `chain` - The wallet chain (e.g., 10 for external, 20 for internal)
349
+ * * `index` - The address index
350
+ * * `wallet_keys` - The wallet's root keys
351
+ * * `signer` - Optional signer key name for taproot (e.g., "user", "backup", "bitgo")
352
+ * * `cosigner` - Optional cosigner key name for taproot
353
+ * * `tag` - Optional custom tag for message hashing
354
+ *
355
+ * # Returns
356
+ * The index of the added input
357
+ * @param {BitGoPsbt} psbt
358
+ * @param {string} message
359
+ * @param {number} chain
360
+ * @param {number} index
361
+ * @param {WasmRootWalletKeys} wallet_keys
362
+ * @param {string | null} [signer]
363
+ * @param {string | null} [cosigner]
364
+ * @param {string | null} [tag]
365
+ * @returns {number}
366
+ */
367
+ static add_bip322_input(psbt, message, chain, index, wallet_keys, signer, cosigner, tag) {
368
+ try {
369
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
370
+ _assertClass(psbt, BitGoPsbt);
371
+ const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export, wasm.__wbindgen_export2);
372
+ const len0 = WASM_VECTOR_LEN;
373
+ _assertClass(wallet_keys, WasmRootWalletKeys);
374
+ var ptr1 = isLikeNone(signer) ? 0 : passStringToWasm0(signer, wasm.__wbindgen_export, wasm.__wbindgen_export2);
375
+ var len1 = WASM_VECTOR_LEN;
376
+ var ptr2 = isLikeNone(cosigner) ? 0 : passStringToWasm0(cosigner, wasm.__wbindgen_export, wasm.__wbindgen_export2);
377
+ var len2 = WASM_VECTOR_LEN;
378
+ var ptr3 = isLikeNone(tag) ? 0 : passStringToWasm0(tag, wasm.__wbindgen_export, wasm.__wbindgen_export2);
379
+ var len3 = WASM_VECTOR_LEN;
380
+ wasm.bip322namespace_add_bip322_input(retptr, psbt.__wbg_ptr, ptr0, len0, chain, index, wallet_keys.__wbg_ptr, ptr1, len1, ptr2, len2, ptr3, len3);
381
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
382
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
383
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
384
+ if (r2) {
385
+ throw takeObject(r1);
386
+ }
387
+ return r0 >>> 0;
388
+ } finally {
389
+ wasm.__wbindgen_add_to_stack_pointer(16);
390
+ }
391
+ }
392
+ /**
393
+ * Verify a single input of a BIP-0322 transaction proof
394
+ *
395
+ * # Arguments
396
+ * * `tx` - The signed transaction
397
+ * * `input_index` - The index of the input to verify
398
+ * * `message` - The message that was signed
399
+ * * `chain` - The wallet chain
400
+ * * `index` - The address index
401
+ * * `wallet_keys` - The wallet's root keys
402
+ * * `network` - Network name
403
+ * * `tag` - Optional custom tag for message hashing
404
+ *
405
+ * # Throws
406
+ * Throws an error if verification fails
407
+ * @param {WasmTransaction} tx
408
+ * @param {number} input_index
409
+ * @param {string} message
410
+ * @param {number} chain
411
+ * @param {number} index
412
+ * @param {WasmRootWalletKeys} wallet_keys
413
+ * @param {string} network
414
+ * @param {string | null} [tag]
415
+ */
416
+ static verify_bip322_tx_input(tx, input_index, message, chain, index, wallet_keys, network, tag) {
417
+ try {
418
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
419
+ _assertClass(tx, WasmTransaction);
420
+ const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export, wasm.__wbindgen_export2);
421
+ const len0 = WASM_VECTOR_LEN;
422
+ _assertClass(wallet_keys, WasmRootWalletKeys);
423
+ const ptr1 = passStringToWasm0(network, wasm.__wbindgen_export, wasm.__wbindgen_export2);
424
+ const len1 = WASM_VECTOR_LEN;
425
+ var ptr2 = isLikeNone(tag) ? 0 : passStringToWasm0(tag, wasm.__wbindgen_export, wasm.__wbindgen_export2);
426
+ var len2 = WASM_VECTOR_LEN;
427
+ wasm.bip322namespace_verify_bip322_tx_input(retptr, tx.__wbg_ptr, input_index, ptr0, len0, chain, index, wallet_keys.__wbg_ptr, ptr1, len1, ptr2, len2);
428
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
429
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
430
+ if (r1) {
431
+ throw takeObject(r0);
432
+ }
433
+ } finally {
434
+ wasm.__wbindgen_add_to_stack_pointer(16);
435
+ }
436
+ }
437
+ /**
438
+ * Verify a single input of a BIP-0322 PSBT proof
439
+ *
440
+ * # Arguments
441
+ * * `psbt` - The signed BitGoPsbt
442
+ * * `input_index` - The index of the input to verify
443
+ * * `message` - The message that was signed
444
+ * * `chain` - The wallet chain
445
+ * * `index` - The address index
446
+ * * `wallet_keys` - The wallet's root keys
447
+ * * `tag` - Optional custom tag for message hashing
448
+ *
449
+ * # Returns
450
+ * An array of signer names ("user", "backup", "bitgo") that have valid signatures
451
+ *
452
+ * # Throws
453
+ * Throws an error if verification fails or no valid signatures found
454
+ * @param {BitGoPsbt} psbt
455
+ * @param {number} input_index
456
+ * @param {string} message
457
+ * @param {number} chain
458
+ * @param {number} index
459
+ * @param {WasmRootWalletKeys} wallet_keys
460
+ * @param {string | null} [tag]
461
+ * @returns {string[]}
462
+ */
463
+ static verify_bip322_psbt_input(psbt, input_index, message, chain, index, wallet_keys, tag) {
464
+ try {
465
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
466
+ _assertClass(psbt, BitGoPsbt);
467
+ const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export, wasm.__wbindgen_export2);
468
+ const len0 = WASM_VECTOR_LEN;
469
+ _assertClass(wallet_keys, WasmRootWalletKeys);
470
+ var ptr1 = isLikeNone(tag) ? 0 : passStringToWasm0(tag, wasm.__wbindgen_export, wasm.__wbindgen_export2);
471
+ var len1 = WASM_VECTOR_LEN;
472
+ wasm.bip322namespace_verify_bip322_psbt_input(retptr, psbt.__wbg_ptr, input_index, ptr0, len0, chain, index, wallet_keys.__wbg_ptr, ptr1, len1);
473
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
474
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
475
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
476
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
477
+ if (r3) {
478
+ throw takeObject(r2);
479
+ }
480
+ var v3 = getArrayJsValueFromWasm0(r0, r1).slice();
481
+ wasm.__wbindgen_export4(r0, r1 * 4, 4);
482
+ return v3;
483
+ } finally {
484
+ wasm.__wbindgen_add_to_stack_pointer(16);
485
+ }
486
+ }
487
+ /**
488
+ * Verify a single input of a BIP-0322 transaction proof using pubkeys directly
489
+ *
490
+ * # Arguments
491
+ * * `tx` - The signed transaction
492
+ * * `input_index` - The index of the input to verify
493
+ * * `message` - The message that was signed
494
+ * * `pubkeys` - Array of 3 hex-encoded pubkeys [user, backup, bitgo]
495
+ * * `script_type` - One of: "p2sh", "p2shP2wsh", "p2wsh", "p2tr", "p2trMusig2"
496
+ * * `is_script_path` - For taproot types, whether script path was used
497
+ * * `tag` - Optional custom tag for message hashing
498
+ *
499
+ * # Returns
500
+ * An array of pubkey indices (0, 1, 2) that have valid signatures
501
+ *
502
+ * # Throws
503
+ * Throws an error if verification fails
504
+ * @param {WasmTransaction} tx
505
+ * @param {number} input_index
506
+ * @param {string} message
507
+ * @param {string[]} pubkeys
508
+ * @param {string} script_type
509
+ * @param {boolean | null} [is_script_path]
510
+ * @param {string | null} [tag]
511
+ * @returns {Uint32Array}
512
+ */
513
+ static verify_bip322_tx_input_with_pubkeys(tx, input_index, message, pubkeys, script_type, is_script_path, tag) {
514
+ try {
515
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
516
+ _assertClass(tx, WasmTransaction);
517
+ const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export, wasm.__wbindgen_export2);
518
+ const len0 = WASM_VECTOR_LEN;
519
+ const ptr1 = passArrayJsValueToWasm0(pubkeys, wasm.__wbindgen_export);
520
+ const len1 = WASM_VECTOR_LEN;
521
+ const ptr2 = passStringToWasm0(script_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
522
+ const len2 = WASM_VECTOR_LEN;
523
+ var ptr3 = isLikeNone(tag) ? 0 : passStringToWasm0(tag, wasm.__wbindgen_export, wasm.__wbindgen_export2);
524
+ var len3 = WASM_VECTOR_LEN;
525
+ wasm.bip322namespace_verify_bip322_tx_input_with_pubkeys(retptr, tx.__wbg_ptr, input_index, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(is_script_path) ? 0xFFFFFF : is_script_path ? 1 : 0, ptr3, len3);
526
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
527
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
528
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
529
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
530
+ if (r3) {
531
+ throw takeObject(r2);
532
+ }
533
+ var v5 = getArrayU32FromWasm0(r0, r1).slice();
534
+ wasm.__wbindgen_export4(r0, r1 * 4, 4);
535
+ return v5;
536
+ } finally {
537
+ wasm.__wbindgen_add_to_stack_pointer(16);
538
+ }
539
+ }
540
+ /**
541
+ * Verify a single input of a BIP-0322 PSBT proof using pubkeys directly
542
+ *
543
+ * # Arguments
544
+ * * `psbt` - The signed BitGoPsbt
545
+ * * `input_index` - The index of the input to verify
546
+ * * `message` - The message that was signed
547
+ * * `pubkeys` - Array of 3 hex-encoded pubkeys [user, backup, bitgo]
548
+ * * `script_type` - One of: "p2sh", "p2shP2wsh", "p2wsh", "p2tr", "p2trMusig2"
549
+ * * `is_script_path` - For taproot types, whether script path was used
550
+ * * `tag` - Optional custom tag for message hashing
551
+ *
552
+ * # Returns
553
+ * An array of pubkey indices (0, 1, 2) that have valid signatures
554
+ *
555
+ * # Throws
556
+ * Throws an error if verification fails or no valid signatures found
557
+ * @param {BitGoPsbt} psbt
558
+ * @param {number} input_index
559
+ * @param {string} message
560
+ * @param {string[]} pubkeys
561
+ * @param {string} script_type
562
+ * @param {boolean | null} [is_script_path]
563
+ * @param {string | null} [tag]
564
+ * @returns {Uint32Array}
565
+ */
566
+ static verify_bip322_psbt_input_with_pubkeys(psbt, input_index, message, pubkeys, script_type, is_script_path, tag) {
567
+ try {
568
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
569
+ _assertClass(psbt, BitGoPsbt);
570
+ const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export, wasm.__wbindgen_export2);
571
+ const len0 = WASM_VECTOR_LEN;
572
+ const ptr1 = passArrayJsValueToWasm0(pubkeys, wasm.__wbindgen_export);
573
+ const len1 = WASM_VECTOR_LEN;
574
+ const ptr2 = passStringToWasm0(script_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
575
+ const len2 = WASM_VECTOR_LEN;
576
+ var ptr3 = isLikeNone(tag) ? 0 : passStringToWasm0(tag, wasm.__wbindgen_export, wasm.__wbindgen_export2);
577
+ var len3 = WASM_VECTOR_LEN;
578
+ wasm.bip322namespace_verify_bip322_psbt_input_with_pubkeys(retptr, psbt.__wbg_ptr, input_index, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(is_script_path) ? 0xFFFFFF : is_script_path ? 1 : 0, ptr3, len3);
579
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
580
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
581
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
582
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
583
+ if (r3) {
584
+ throw takeObject(r2);
585
+ }
586
+ var v5 = getArrayU32FromWasm0(r0, r1).slice();
587
+ wasm.__wbindgen_export4(r0, r1 * 4, 4);
588
+ return v5;
589
+ } finally {
590
+ wasm.__wbindgen_add_to_stack_pointer(16);
591
+ }
592
+ }
593
+ }
594
+ if (Symbol.dispose) Bip322Namespace.prototype[Symbol.dispose] = Bip322Namespace.prototype.free;
595
+ exports.Bip322Namespace = Bip322Namespace;
596
+
298
597
  class BitGoPsbt {
299
598
  static __wrap(ptr) {
300
599
  ptr = ptr >>> 0;
Binary file
@@ -1,9 +1,59 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
5
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
6
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
7
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
8
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
9
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
10
+ export const wasmtransaction_get_vsize: (a: number) => number;
11
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
12
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
13
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
14
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
15
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
16
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
17
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
18
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
19
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
20
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
21
+ export const wrapdescriptor_node: (a: number, b: number) => void;
22
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
23
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
24
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
25
+ export const wrapminiscript_encode: (a: number, b: number) => void;
26
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
27
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
28
+ export const wrapminiscript_node: (a: number, b: number) => void;
29
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
30
+ export const wrapminiscript_toString: (a: number, b: number) => void;
31
+ export const wrappsbt_clone: (a: number) => number;
32
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
33
+ export const wrappsbt_finalize: (a: number, b: number) => void;
34
+ export const wrappsbt_serialize: (a: number, b: number) => void;
35
+ export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
36
+ export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
37
+ export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
38
+ export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
39
+ export const __wbg_addressnamespace_free: (a: number, b: number) => void;
40
+ export const __wbg_bip322namespace_free: (a: number, b: number) => void;
4
41
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
5
42
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
43
+ export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
6
44
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
45
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
46
+ export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
47
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
48
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
49
+ export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
50
+ export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
51
+ export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
52
+ export const bip322namespace_add_bip322_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
53
+ export const bip322namespace_verify_bip322_psbt_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
54
+ export const bip322namespace_verify_bip322_psbt_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
55
+ export const bip322namespace_verify_bip322_tx_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
56
+ export const bip322namespace_verify_bip322_tx_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
7
57
  export const bitgopsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number) => void;
8
58
  export const bitgopsbt_add_output: (a: number, b: number, c: number, d: number, e: bigint) => void;
9
59
  export const bitgopsbt_add_output_with_address: (a: number, b: number, c: number, d: number, e: bigint) => void;
@@ -36,6 +86,8 @@ export const bitgopsbt_version_group_id: (a: number) => number;
36
86
  export const fixedscriptwalletnamespace_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
37
87
  export const fixedscriptwalletnamespace_output_script: (a: number, b: number, c: number, d: number, e: number) => void;
38
88
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
89
+ export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
90
+ export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
39
91
  export const wasmbip32_chain_code: (a: number) => number;
40
92
  export const wasmbip32_depth: (a: number) => number;
41
93
  export const wasmbip32_derive: (a: number, b: number, c: number) => void;
@@ -56,9 +108,17 @@ export const wasmbip32_private_key: (a: number) => number;
56
108
  export const wasmbip32_public_key: (a: number) => number;
57
109
  export const wasmbip32_to_base58: (a: number, b: number) => void;
58
110
  export const wasmbip32_to_wif: (a: number, b: number) => void;
59
- export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
60
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
61
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
111
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
112
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
113
+ export const wasmdimensions_empty: () => number;
114
+ export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
115
+ export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number) => void;
116
+ export const wasmdimensions_from_output_script: (a: number, b: number) => number;
117
+ export const wasmdimensions_from_psbt: (a: number, b: number) => void;
118
+ export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
119
+ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
120
+ export const wasmdimensions_has_segwit: (a: number) => number;
121
+ export const wasmdimensions_plus: (a: number, b: number) => number;
62
122
  export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
63
123
  export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
64
124
  export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
@@ -72,66 +132,12 @@ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
72
132
  export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
73
133
  export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
74
134
  export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
75
- export const __wbg_addressnamespace_free: (a: number, b: number) => void;
76
- export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
77
- export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
78
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
79
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
80
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
81
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
82
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
83
- export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
84
- export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
85
- export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
86
- export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
87
- export const wasmdimensions_empty: () => number;
88
- export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
89
- export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number) => void;
90
- export const wasmdimensions_from_output_script: (a: number, b: number) => number;
91
- export const wasmdimensions_from_psbt: (a: number, b: number) => void;
92
- export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
93
- export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
94
- export const wasmdimensions_has_segwit: (a: number) => number;
95
- export const wasmdimensions_plus: (a: number, b: number) => number;
96
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
97
- export const wasmtransaction_get_vsize: (a: number) => number;
98
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
99
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
100
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
101
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
102
- export const wrapdescriptor_descType: (a: number, b: number) => void;
103
- export const wrapdescriptor_encode: (a: number, b: number) => void;
104
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
105
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
106
- export const wrapdescriptor_hasWildcard: (a: number) => number;
107
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
108
- export const wrapdescriptor_node: (a: number, b: number) => void;
109
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
110
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
111
- export const wrapdescriptor_toString: (a: number, b: number) => void;
112
- export const wrapminiscript_encode: (a: number, b: number) => void;
113
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
114
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
115
- export const wrapminiscript_node: (a: number, b: number) => void;
116
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
117
- export const wrapminiscript_toString: (a: number, b: number) => void;
118
- export const wrappsbt_clone: (a: number) => number;
119
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
120
- export const wrappsbt_finalize: (a: number, b: number) => void;
121
- export const wrappsbt_serialize: (a: number, b: number) => void;
122
- export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
123
- export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
124
- export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
125
- export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
126
- export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
127
135
  export const wasmrootwalletkeys_backup_key: (a: number) => number;
128
136
  export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
129
137
  export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
130
138
  export const wasmrootwalletkeys_user_key: (a: number) => number;
131
139
  export const wasmrootwalletkeys_with_derivation_prefixes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
132
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
133
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
134
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
140
+ export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
135
141
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
136
142
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
137
143
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;