@bitgo/wasm-utxo 4.26.0 → 4.28.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.
@@ -6333,6 +6333,180 @@ export class ZcashUnifiedAddress {
6333
6333
  }
6334
6334
  if (Symbol.dispose) ZcashUnifiedAddress.prototype[Symbol.dispose] = ZcashUnifiedAddress.prototype.free;
6335
6335
 
6336
+ /**
6337
+ * A parsed Zcash v6 (Ironwood / NU6.3) transaction — for inspection and txid.
6338
+ *
6339
+ * This wraps the raw v6 wire codec. The transaction id is exposed as an instance
6340
+ * method [`ZcashV6Transaction::get_id`] (canonical display-order hex), matching the
6341
+ * `getId()` convention used by the other transaction/PSBT wrappers, so callers never
6342
+ * pass raw bytes to a txid function or juggle internal vs display byte order.
6343
+ */
6344
+ export class ZcashV6Transaction {
6345
+ static __wrap(ptr) {
6346
+ ptr = ptr >>> 0;
6347
+ const obj = Object.create(ZcashV6Transaction.prototype);
6348
+ obj.__wbg_ptr = ptr;
6349
+ ZcashV6TransactionFinalization.register(obj, obj.__wbg_ptr, obj);
6350
+ return obj;
6351
+ }
6352
+ __destroy_into_raw() {
6353
+ const ptr = this.__wbg_ptr;
6354
+ this.__wbg_ptr = 0;
6355
+ ZcashV6TransactionFinalization.unregister(this);
6356
+ return ptr;
6357
+ }
6358
+ free() {
6359
+ const ptr = this.__destroy_into_raw();
6360
+ wasm.__wbg_zcashv6transaction_free(ptr, 0);
6361
+ }
6362
+ /**
6363
+ * Consensus branch id carried in the v6 header.
6364
+ * @returns {number}
6365
+ */
6366
+ get consensusBranchId() {
6367
+ const ret = wasm.zcashv6transaction_consensusBranchId(this.__wbg_ptr);
6368
+ return ret >>> 0;
6369
+ }
6370
+ /**
6371
+ * Expiry height.
6372
+ * @returns {number}
6373
+ */
6374
+ get expiryHeight() {
6375
+ const ret = wasm.zcashv6transaction_expiryHeight(this.__wbg_ptr);
6376
+ return ret >>> 0;
6377
+ }
6378
+ /**
6379
+ * Decode a v6 transaction from raw wire bytes. Throws if the bytes are not a
6380
+ * valid v6 (Ironwood) transaction.
6381
+ * @param {Uint8Array} bytes
6382
+ * @returns {ZcashV6Transaction}
6383
+ */
6384
+ static fromBytes(bytes) {
6385
+ try {
6386
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6387
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
6388
+ const len0 = WASM_VECTOR_LEN;
6389
+ wasm.zcashv6transaction_fromBytes(retptr, ptr0, len0);
6390
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
6391
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
6392
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
6393
+ if (r2) {
6394
+ throw takeObject(r1);
6395
+ }
6396
+ return ZcashV6Transaction.__wrap(r0);
6397
+ } finally {
6398
+ wasm.__wbindgen_add_to_stack_pointer(16);
6399
+ }
6400
+ }
6401
+ /**
6402
+ * The canonical (display-order) ZIP-244 txid as a lowercase hex string.
6403
+ *
6404
+ * `Txid`'s `Display` emits display-order (byte-reversed) hex, matching how a
6405
+ * transaction id is printed everywhere else in the codebase.
6406
+ * @returns {string}
6407
+ */
6408
+ getId() {
6409
+ let deferred1_0;
6410
+ let deferred1_1;
6411
+ try {
6412
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6413
+ wasm.zcashv6transaction_getId(retptr, this.__wbg_ptr);
6414
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
6415
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
6416
+ deferred1_0 = r0;
6417
+ deferred1_1 = r1;
6418
+ return getStringFromWasm0(r0, r1);
6419
+ } finally {
6420
+ wasm.__wbindgen_add_to_stack_pointer(16);
6421
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
6422
+ }
6423
+ }
6424
+ /**
6425
+ * Number of Ironwood actions (0 when the Ironwood slot is empty).
6426
+ * @returns {number}
6427
+ */
6428
+ get ironwoodActionCount() {
6429
+ const ret = wasm.zcashv6transaction_ironwoodActionCount(this.__wbg_ptr);
6430
+ return ret >>> 0;
6431
+ }
6432
+ /**
6433
+ * The Ironwood note-commitment tree anchor (32 bytes), or `undefined`.
6434
+ * @returns {Uint8Array | undefined}
6435
+ */
6436
+ get ironwoodAnchor() {
6437
+ try {
6438
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6439
+ wasm.zcashv6transaction_ironwoodAnchor(retptr, this.__wbg_ptr);
6440
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
6441
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
6442
+ let v1;
6443
+ if (r0 !== 0) {
6444
+ v1 = getArrayU8FromWasm0(r0, r1).slice();
6445
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
6446
+ }
6447
+ return v1;
6448
+ } finally {
6449
+ wasm.__wbindgen_add_to_stack_pointer(16);
6450
+ }
6451
+ }
6452
+ /**
6453
+ * The Ironwood bundle flag byte, or `undefined` when there is no bundle.
6454
+ * @returns {number | undefined}
6455
+ */
6456
+ get ironwoodFlags() {
6457
+ const ret = wasm.zcashv6transaction_ironwoodFlags(this.__wbg_ptr);
6458
+ return ret === 0xFFFFFF ? undefined : ret;
6459
+ }
6460
+ /**
6461
+ * Net value crossing the Ironwood pool boundary (0 when there is no bundle).
6462
+ * @returns {bigint}
6463
+ */
6464
+ get ironwoodValueBalance() {
6465
+ const ret = wasm.zcashv6transaction_ironwoodValueBalance(this.__wbg_ptr);
6466
+ return ret;
6467
+ }
6468
+ /**
6469
+ * Serialize back to raw v6 wire bytes.
6470
+ * @returns {Uint8Array}
6471
+ */
6472
+ toBytes() {
6473
+ try {
6474
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6475
+ wasm.zcashv6transaction_toBytes(retptr, this.__wbg_ptr);
6476
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
6477
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
6478
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
6479
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
6480
+ if (r3) {
6481
+ throw takeObject(r2);
6482
+ }
6483
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
6484
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
6485
+ return v1;
6486
+ } finally {
6487
+ wasm.__wbindgen_add_to_stack_pointer(16);
6488
+ }
6489
+ }
6490
+ /**
6491
+ * The ZIP-244 txid in internal (non-reversed) byte order.
6492
+ * @returns {Uint8Array}
6493
+ */
6494
+ txidBytes() {
6495
+ try {
6496
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6497
+ wasm.zcashv6transaction_txidBytes(retptr, this.__wbg_ptr);
6498
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
6499
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
6500
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
6501
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
6502
+ return v1;
6503
+ } finally {
6504
+ wasm.__wbindgen_add_to_stack_pointer(16);
6505
+ }
6506
+ }
6507
+ }
6508
+ if (Symbol.dispose) ZcashV6Transaction.prototype[Symbol.dispose] = ZcashV6Transaction.prototype.free;
6509
+
6336
6510
  /**
6337
6511
  * Check if the inspect feature is enabled.
6338
6512
  *
@@ -6820,6 +6994,9 @@ const WrapPsbtFinalization = (typeof FinalizationRegistry === 'undefined')
6820
6994
  const ZcashUnifiedAddressFinalization = (typeof FinalizationRegistry === 'undefined')
6821
6995
  ? { register: () => {}, unregister: () => {} }
6822
6996
  : new FinalizationRegistry(ptr => wasm.__wbg_zcashunifiedaddress_free(ptr >>> 0, 1));
6997
+ const ZcashV6TransactionFinalization = (typeof FinalizationRegistry === 'undefined')
6998
+ ? { register: () => {}, unregister: () => {} }
6999
+ : new FinalizationRegistry(ptr => wasm.__wbg_zcashv6transaction_free(ptr >>> 0, 1));
6823
7000
 
6824
7001
  function addHeapObject(obj) {
6825
7002
  if (heap_next === heap.length) heap.push(heap.length + 1);
Binary file
@@ -1,132 +1,35 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_addressnamespace_free: (a: number, b: number) => void;
5
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
6
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
7
- export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
8
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
9
- export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
10
- export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
11
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
12
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
13
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
14
- export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
15
- export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
16
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
17
- export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
18
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
19
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
20
- export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
21
- export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
22
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
23
- export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
24
- export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
25
- export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
26
- export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
27
- export const wasmdashtransaction_input_count: (a: number) => number;
28
- export const wasmdashtransaction_lock_time: (a: number) => number;
29
- export const wasmdashtransaction_output_count: (a: number) => number;
30
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
31
- export const wasmdashtransaction_version: (a: number) => number;
32
- export const wasmdimensions_empty: () => number;
33
- export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
34
- export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
35
- export const wasmdimensions_from_output_script_length: (a: number) => number;
36
- export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
37
- export const wasmdimensions_from_psbt: (a: number, b: number) => void;
38
- export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
39
- export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
40
- export const wasmdimensions_get_output_vsize: (a: number) => number;
41
- export const wasmdimensions_get_output_weight: (a: number) => number;
42
- export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
43
- export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
44
- export const wasmdimensions_has_segwit: (a: number) => number;
45
- export const wasmdimensions_plus: (a: number, b: number) => number;
46
- export const wasmdimensions_times: (a: number, b: number) => number;
47
- export const wasmrootwalletkeys_backup_key: (a: number) => number;
48
- export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
49
- export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
50
- export const wasmrootwalletkeys_user_key: (a: number) => number;
51
- 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;
52
- export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
53
- export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
54
- export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
55
- export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
56
- export const wasmtransaction_create: () => number;
57
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
58
- export const wasmtransaction_get_inputs: (a: number, b: number) => void;
59
- export const wasmtransaction_get_outputs: (a: number, b: number) => void;
60
- export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
61
- export const wasmtransaction_get_txid: (a: number, b: number) => void;
62
- export const wasmtransaction_get_vsize: (a: number) => number;
63
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
64
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
65
- export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
66
- export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
67
- export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
68
- export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
69
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
70
- export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
71
- export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
72
- export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
73
- export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
74
- export const wrappsbt_clone: (a: number) => number;
75
- export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
76
- export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
77
- export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
78
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
79
- export const wrappsbt_extract_transaction: (a: number, b: number) => void;
80
- export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
81
- export const wrappsbt_finalize_mut: (a: number, b: number) => void;
82
- export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
83
- export const wrappsbt_get_global_xpubs: (a: number) => number;
84
- export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
85
- export const wrappsbt_get_inputs: (a: number, b: number) => void;
86
- export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
87
- export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
88
- export const wrappsbt_get_outputs: (a: number, b: number) => void;
89
- export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
90
- export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
91
- export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
92
- export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
93
- export const wrappsbt_input_count: (a: number) => number;
94
- export const wrappsbt_new: (a: number, b: number) => number;
95
- export const wrappsbt_output_count: (a: number) => number;
96
- export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
97
- export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
98
- export const wrappsbt_serialize: (a: number, b: number) => void;
99
- export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
100
- export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
101
- export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
102
- export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
103
- export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
104
- export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
105
- export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
106
- export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
107
- export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
108
- export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
109
- export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
110
- export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
111
- export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
112
- export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
113
- export const wasmtransaction_input_count: (a: number) => number;
114
- export const wasmtransaction_output_count: (a: number) => number;
115
- export const wasmzcashtransaction_input_count: (a: number) => number;
116
- export const wasmzcashtransaction_output_count: (a: number) => number;
117
- export const wasmtransaction_lock_time: (a: number) => number;
118
- export const wasmtransaction_version: (a: number) => number;
119
- export const wasmzcashtransaction_lock_time: (a: number) => number;
120
- export const wasmzcashtransaction_version: (a: number) => number;
121
- export const wrappsbt_lock_time: (a: number) => number;
122
- export const wrappsbt_version: (a: number) => number;
4
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
5
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
6
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
7
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
8
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
9
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
10
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
11
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
12
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
13
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
14
+ export const wrapdescriptor_node: (a: number, b: number) => void;
15
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
16
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
17
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
18
+ export const wrapminiscript_encode: (a: number, b: number) => void;
19
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
20
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
21
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
22
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
23
+ export const wrapminiscript_node: (a: number, b: number) => void;
24
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
25
+ export const wrapminiscript_toString: (a: number, b: number) => void;
123
26
  export const __wbg_bip322namespace_free: (a: number, b: number) => void;
124
27
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
125
28
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
29
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
126
30
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
127
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
128
31
  export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
129
- export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
32
+ export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
130
33
  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;
131
34
  export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
132
35
  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;
@@ -216,8 +119,8 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
216
119
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
217
120
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
218
121
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
219
- export const isInspectEnabled: () => number;
220
- export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
122
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
123
+ export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
221
124
  export const wasmbip32_chain_code: (a: number) => number;
222
125
  export const wasmbip32_depth: (a: number) => number;
223
126
  export const wasmbip32_derive: (a: number, b: number, c: number) => void;
@@ -240,6 +143,66 @@ export const wasmbip32_private_key: (a: number) => number;
240
143
  export const wasmbip32_public_key: (a: number) => number;
241
144
  export const wasmbip32_to_base58: (a: number, b: number) => void;
242
145
  export const wasmbip32_to_wif: (a: number, b: number) => void;
146
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
147
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
148
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
149
+ export const wasmrootwalletkeys_backup_key: (a: number) => number;
150
+ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
151
+ export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
152
+ export const wasmrootwalletkeys_user_key: (a: number) => number;
153
+ 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;
154
+ export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
155
+ export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
156
+ export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
157
+ export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
158
+ export const __wbg_addressnamespace_free: (a: number, b: number) => void;
159
+ export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
160
+ export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
161
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
162
+ export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
163
+ export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
164
+ export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
165
+ export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
166
+ export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
167
+ export const wasmdimensions_empty: () => number;
168
+ export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
169
+ export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
170
+ export const wasmdimensions_from_output_script_length: (a: number) => number;
171
+ export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
172
+ export const wasmdimensions_from_psbt: (a: number, b: number) => void;
173
+ export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
174
+ export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
175
+ export const wasmdimensions_get_output_vsize: (a: number) => number;
176
+ export const wasmdimensions_get_output_weight: (a: number) => number;
177
+ export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
178
+ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
179
+ export const wasmdimensions_has_segwit: (a: number) => number;
180
+ export const wasmdimensions_plus: (a: number, b: number) => number;
181
+ export const wasmdimensions_times: (a: number, b: number) => number;
182
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
183
+ export const isInspectEnabled: () => number;
184
+ export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
185
+ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
186
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
187
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
188
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
189
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
190
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
191
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
192
+ export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
193
+ export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
194
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
195
+ export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
196
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
197
+ export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
198
+ export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
199
+ export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
200
+ export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
201
+ export const wasmdashtransaction_input_count: (a: number) => number;
202
+ export const wasmdashtransaction_lock_time: (a: number) => number;
203
+ export const wasmdashtransaction_output_count: (a: number) => number;
204
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
205
+ export const wasmdashtransaction_version: (a: number) => number;
243
206
  export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
244
207
  export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
245
208
  export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
@@ -250,45 +213,93 @@ export const wasmecpair_public_key: (a: number) => number;
250
213
  export const wasmecpair_to_wif: (a: number, b: number) => void;
251
214
  export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
252
215
  export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
253
- export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
254
- export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
255
- export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
216
+ export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
217
+ export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
218
+ export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
219
+ export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
220
+ export const wasmtransaction_create: () => number;
221
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
222
+ export const wasmtransaction_get_inputs: (a: number, b: number) => void;
223
+ export const wasmtransaction_get_outputs: (a: number, b: number) => void;
224
+ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
225
+ export const wasmtransaction_get_txid: (a: number, b: number) => void;
226
+ export const wasmtransaction_get_vsize: (a: number) => number;
227
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
228
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
229
+ export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
230
+ export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
231
+ export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
232
+ export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
233
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
234
+ export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
235
+ export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
236
+ export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
237
+ export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
238
+ export const wrappsbt_clone: (a: number) => number;
239
+ export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
240
+ export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
241
+ export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
242
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
243
+ export const wrappsbt_extract_transaction: (a: number, b: number) => void;
244
+ export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
245
+ export const wrappsbt_finalize_mut: (a: number, b: number) => void;
246
+ export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
247
+ export const wrappsbt_get_global_xpubs: (a: number) => number;
248
+ export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
249
+ export const wrappsbt_get_inputs: (a: number, b: number) => void;
250
+ export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
251
+ export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
252
+ export const wrappsbt_get_outputs: (a: number, b: number) => void;
253
+ export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
254
+ export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
255
+ export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
256
+ export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
257
+ export const wrappsbt_input_count: (a: number) => number;
258
+ export const wrappsbt_new: (a: number, b: number) => number;
259
+ export const wrappsbt_output_count: (a: number) => number;
260
+ export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
261
+ export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
262
+ export const wrappsbt_serialize: (a: number, b: number) => void;
263
+ export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
264
+ export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
265
+ export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
266
+ export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
267
+ export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
268
+ export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
269
+ export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
270
+ export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
271
+ export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
272
+ export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
273
+ export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
274
+ export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
275
+ export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
276
+ export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
256
277
  export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
257
278
  export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
258
279
  export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
259
280
  export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
260
281
  export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
261
282
  export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
262
- export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
263
- export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
264
- export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
265
- export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
266
- export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
267
- export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
268
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
269
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
270
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
271
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
272
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
273
- export const wrapdescriptor_descType: (a: number, b: number) => void;
274
- export const wrapdescriptor_encode: (a: number, b: number) => void;
275
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
276
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
277
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
278
- export const wrapdescriptor_hasWildcard: (a: number) => number;
279
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
280
- export const wrapdescriptor_node: (a: number, b: number) => void;
281
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
282
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
283
- export const wrapdescriptor_toString: (a: number, b: number) => void;
284
- export const wrapminiscript_encode: (a: number, b: number) => void;
285
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
286
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
287
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
288
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
289
- export const wrapminiscript_node: (a: number, b: number) => void;
290
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
291
- export const wrapminiscript_toString: (a: number, b: number) => void;
283
+ export const zcashv6transaction_consensusBranchId: (a: number) => number;
284
+ export const zcashv6transaction_expiryHeight: (a: number) => number;
285
+ export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
286
+ export const zcashv6transaction_getId: (a: number, b: number) => void;
287
+ export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
288
+ export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
289
+ export const zcashv6transaction_ironwoodFlags: (a: number) => number;
290
+ export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
291
+ export const zcashv6transaction_toBytes: (a: number, b: number) => void;
292
+ export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
293
+ export const wasmtransaction_input_count: (a: number) => number;
294
+ export const wasmtransaction_output_count: (a: number) => number;
295
+ export const wasmzcashtransaction_input_count: (a: number) => number;
296
+ export const wasmzcashtransaction_output_count: (a: number) => number;
297
+ export const wasmtransaction_lock_time: (a: number) => number;
298
+ export const wasmtransaction_version: (a: number) => number;
299
+ export const wasmzcashtransaction_lock_time: (a: number) => number;
300
+ export const wasmzcashtransaction_version: (a: number) => number;
301
+ export const wrappsbt_lock_time: (a: number) => number;
302
+ export const wrappsbt_version: (a: number) => number;
292
303
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
293
304
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
294
305
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitgo/wasm-utxo",
3
3
  "description": "WebAssembly wrapper for rust-bitcoin (beta)",
4
- "version": "4.26.0",
4
+ "version": "4.28.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",