@bitgo/wasm-utxo 4.37.2 → 4.38.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.
@@ -146,6 +146,27 @@ export declare class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
146
146
  ovk?: Uint8Array;
147
147
  unifiedAddress?: string;
148
148
  }): void;
149
+ /**
150
+ * Add one or more shielded outputs (Constructor role) as a single orchard PCZT — the
151
+ * multi-recipient counterpart to {@link addShieldedOutput}. Every recipient must be passed in
152
+ * one call: only one call to `addShieldedOutput`/`addShieldedOutputs` is supported per PSBT (see
153
+ * {@link addShieldedOutput}).
154
+ *
155
+ * @param outputs - one entry per recipient; `memo` defaults per-entry to the ZIP-302 "no memo"
156
+ * encoding, exactly as {@link addShieldedOutput}'s does
157
+ * @param anchor - 32-byte Ironwood note-commitment-tree root, shared by every output
158
+ * @returns the action index assigned to each output, in the same order as `outputs` — the
159
+ * orchard builder pads/reorders actions, so a client-managed-`ovk` caller must use these
160
+ * indices (not the position in `outputs`) when later calling
161
+ * `setIronwoodOutCiphertext`/`setIronwoodOutCiphertextForUser` for a specific recipient.
162
+ */
163
+ addShieldedOutputs(outputs: Array<{
164
+ recipient: Uint8Array;
165
+ amount: bigint;
166
+ memo?: Uint8Array;
167
+ ovk?: Uint8Array;
168
+ unifiedAddress?: string;
169
+ }>, anchor: Uint8Array): number[];
149
170
  /**
150
171
  * Client-managed `ovk`: re-encrypt the shielded output's `out_ciphertext` under **this wallet's**
151
172
  * `ovk`, derived as the ECDH agreement of `rootWalletKeys.bitgoKey()` and `userKey`. Both are root
@@ -143,6 +143,29 @@ class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt_js_1.ZcashBitGoPsbt {
143
143
  const memo = options.memo ?? zip302NoMemo();
144
144
  this.wasm.add_ironwood_output(recipient, amount, options.ovk, options.anchor, memo, options.unifiedAddress);
145
145
  }
146
+ /**
147
+ * Add one or more shielded outputs (Constructor role) as a single orchard PCZT — the
148
+ * multi-recipient counterpart to {@link addShieldedOutput}. Every recipient must be passed in
149
+ * one call: only one call to `addShieldedOutput`/`addShieldedOutputs` is supported per PSBT (see
150
+ * {@link addShieldedOutput}).
151
+ *
152
+ * @param outputs - one entry per recipient; `memo` defaults per-entry to the ZIP-302 "no memo"
153
+ * encoding, exactly as {@link addShieldedOutput}'s does
154
+ * @param anchor - 32-byte Ironwood note-commitment-tree root, shared by every output
155
+ * @returns the action index assigned to each output, in the same order as `outputs` — the
156
+ * orchard builder pads/reorders actions, so a client-managed-`ovk` caller must use these
157
+ * indices (not the position in `outputs`) when later calling
158
+ * `setIronwoodOutCiphertext`/`setIronwoodOutCiphertextForUser` for a specific recipient.
159
+ */
160
+ addShieldedOutputs(outputs, anchor) {
161
+ return Array.from(this.wasm.add_ironwood_outputs(outputs.map((o) => ({
162
+ recipient: o.recipient,
163
+ amount: o.amount,
164
+ memo: o.memo ?? zip302NoMemo(),
165
+ ovk: o.ovk,
166
+ unifiedAddress: o.unifiedAddress,
167
+ })), anchor));
168
+ }
146
169
  /**
147
170
  * Client-managed `ovk`: re-encrypt the shielded output's `out_ciphertext` under **this wallet's**
148
171
  * `ovk`, derived as the ECDH agreement of `rootWalletKeys.bitgoKey()` and `userKey`. Both are root
@@ -161,6 +161,21 @@ export class BitGoPsbt {
161
161
  * [`MEMO_SIZE`]: crate::zcash::ironwood_build::MEMO_SIZE
162
162
  */
163
163
  add_ironwood_output(recipient: Uint8Array, amount: bigint, ovk: Uint8Array | null | undefined, anchor: Uint8Array, memo: Uint8Array, unified_address?: string | null): void;
164
+ /**
165
+ * Constructor: add one or more shielded Ironwood outputs as a single orchard PCZT stored in
166
+ * the PSBT — the multi-recipient counterpart to [`Self::add_ironwood_output`].
167
+ *
168
+ * `outputs` is an array of `{ recipient: Uint8Array, amount: bigint, memo: Uint8Array,
169
+ * ovk?: Uint8Array, unifiedAddress?: string }`, one entry per recipient — see
170
+ * [`Self::add_ironwood_output`] for the meaning of each field. `anchor` is shared by every
171
+ * output.
172
+ *
173
+ * Returns the action index assigned to each output, in the same order as `outputs` — the
174
+ * orchard builder pads/reorders actions, so a client-managed-`ovk` caller must use these
175
+ * indices (not the position in `outputs`) when later calling `set_ironwood_out_ciphertext`
176
+ * for a specific recipient.
177
+ */
178
+ add_ironwood_outputs(outputs: any, anchor: Uint8Array): Uint32Array;
164
179
  /**
165
180
  * Ingest a transparent-input signature (`sig`: DER ECDSA with the trailing SIGHASH_ALL byte)
166
181
  * after verifying it against `ironwood_v6_transparent_sighash(index)`.
@@ -521,6 +521,43 @@ class BitGoPsbt {
521
521
  wasm.__wbindgen_add_to_stack_pointer(16);
522
522
  }
523
523
  }
524
+ /**
525
+ * Constructor: add one or more shielded Ironwood outputs as a single orchard PCZT stored in
526
+ * the PSBT — the multi-recipient counterpart to [`Self::add_ironwood_output`].
527
+ *
528
+ * `outputs` is an array of `{ recipient: Uint8Array, amount: bigint, memo: Uint8Array,
529
+ * ovk?: Uint8Array, unifiedAddress?: string }`, one entry per recipient — see
530
+ * [`Self::add_ironwood_output`] for the meaning of each field. `anchor` is shared by every
531
+ * output.
532
+ *
533
+ * Returns the action index assigned to each output, in the same order as `outputs` — the
534
+ * orchard builder pads/reorders actions, so a client-managed-`ovk` caller must use these
535
+ * indices (not the position in `outputs`) when later calling `set_ironwood_out_ciphertext`
536
+ * for a specific recipient.
537
+ * @param {any} outputs
538
+ * @param {Uint8Array} anchor
539
+ * @returns {Uint32Array}
540
+ */
541
+ add_ironwood_outputs(outputs, anchor) {
542
+ try {
543
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
544
+ const ptr0 = passArray8ToWasm0(anchor, wasm.__wbindgen_export);
545
+ const len0 = WASM_VECTOR_LEN;
546
+ wasm.bitgopsbt_add_ironwood_outputs(retptr, this.__wbg_ptr, addHeapObject(outputs), ptr0, len0);
547
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
548
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
549
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
550
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
551
+ if (r3) {
552
+ throw takeObject(r2);
553
+ }
554
+ var v2 = getArrayU32FromWasm0(r0, r1).slice();
555
+ wasm.__wbindgen_export4(r0, r1 * 4, 4);
556
+ return v2;
557
+ } finally {
558
+ wasm.__wbindgen_add_to_stack_pointer(16);
559
+ }
560
+ }
524
561
  /**
525
562
  * Ingest a transparent-input signature (`sig`: DER ECDSA with the trailing SIGHASH_ALL byte)
526
563
  * after verifying it against `ironwood_v6_transparent_sighash(index)`.
@@ -7174,6 +7211,10 @@ function __wbg_get_imports() {
7174
7211
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7175
7212
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7176
7213
  },
7214
+ __wbg___wbindgen_is_bigint_31b12575b56f32fc: function(arg0) {
7215
+ const ret = typeof(getObject(arg0)) === 'bigint';
7216
+ return ret;
7217
+ },
7177
7218
  __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
7178
7219
  const ret = typeof(getObject(arg0)) === 'function';
7179
7220
  return ret;
Binary file
@@ -1,12 +1,170 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
5
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
6
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
7
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
8
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
9
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
10
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
11
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
12
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
13
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
14
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
15
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
16
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
17
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
18
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
19
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
20
+ export const wrapdescriptor_node: (a: number, b: number) => void;
21
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
22
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
23
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
24
+ export const wrapminiscript_encode: (a: number, b: number) => void;
25
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
26
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
27
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
28
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
29
+ export const wrapminiscript_node: (a: number, b: number) => void;
30
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
31
+ export const wrapminiscript_toString: (a: number, b: number) => void;
32
+ export const __wbg_addressnamespace_free: (a: number, b: number) => void;
33
+ export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
34
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
35
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
36
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
37
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
38
+ export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
39
+ export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
40
+ export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
41
+ export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
42
+ export const isInspectEnabled: () => number;
43
+ export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
44
+ export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
45
+ export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
46
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
47
+ export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
48
+ export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
49
+ export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
50
+ export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
51
+ export const wasmdashtransaction_input_count: (a: number) => number;
52
+ export const wasmdashtransaction_lock_time: (a: number) => number;
53
+ export const wasmdashtransaction_output_count: (a: number) => number;
54
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
55
+ export const wasmdashtransaction_version: (a: number) => number;
56
+ export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
57
+ export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
58
+ export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
59
+ export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
60
+ export const wasmtransaction_create: () => number;
61
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
62
+ export const wasmtransaction_get_inputs: (a: number, b: number) => void;
63
+ export const wasmtransaction_get_outputs: (a: number, b: number) => void;
64
+ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
65
+ export const wasmtransaction_get_txid: (a: number, b: number) => void;
66
+ export const wasmtransaction_get_vsize: (a: number) => number;
67
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
68
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
69
+ export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
70
+ export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
71
+ export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
72
+ export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
73
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
74
+ export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
75
+ 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;
76
+ export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
77
+ export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
78
+ export const wrappsbt_clone: (a: number) => number;
79
+ export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
80
+ export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
81
+ export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
82
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
83
+ export const wrappsbt_extract_transaction: (a: number, b: number) => void;
84
+ export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
85
+ export const wrappsbt_finalize_mut: (a: number, b: number) => void;
86
+ export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
87
+ export const wrappsbt_get_global_xpubs: (a: number) => number;
88
+ export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
89
+ export const wrappsbt_get_inputs: (a: number, b: number) => void;
90
+ export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
91
+ export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
92
+ export const wrappsbt_get_outputs: (a: number, b: number) => void;
93
+ export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
94
+ export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
95
+ export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
96
+ export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
97
+ export const wrappsbt_input_count: (a: number) => number;
98
+ export const wrappsbt_new: (a: number, b: number) => number;
99
+ export const wrappsbt_output_count: (a: number) => number;
100
+ export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
101
+ export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
102
+ export const wrappsbt_serialize: (a: number, b: number) => void;
103
+ export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
104
+ export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
105
+ export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
106
+ export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
107
+ export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
108
+ export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
109
+ export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
110
+ export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
111
+ export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
112
+ export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
113
+ export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
114
+ export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
115
+ export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
116
+ export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
117
+ export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
118
+ export const zcash_ironwood_version_group_id: () => number;
119
+ export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
120
+ export const zcashunifiedaddress_encodeOrchardReceiver: (a: number, b: number, c: number, d: number, e: number) => void;
121
+ export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
122
+ export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
123
+ export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
124
+ export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
125
+ export const zcashv6transaction_consensusBranchId: (a: number) => number;
126
+ export const zcashv6transaction_expiryHeight: (a: number) => number;
127
+ export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
128
+ export const zcashv6transaction_getId: (a: number, b: number) => void;
129
+ export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
130
+ export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
131
+ export const zcashv6transaction_ironwoodFlags: (a: number) => number;
132
+ export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
133
+ export const zcashv6transaction_toBytes: (a: number, b: number) => void;
134
+ export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
135
+ export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
136
+ export const wasmtransaction_input_count: (a: number) => number;
137
+ export const wasmtransaction_output_count: (a: number) => number;
138
+ export const wasmzcashtransaction_input_count: (a: number) => number;
139
+ export const wasmzcashtransaction_output_count: (a: number) => number;
140
+ export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
141
+ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
142
+ export const wasmtransaction_lock_time: (a: number) => number;
143
+ export const wasmtransaction_version: (a: number) => number;
144
+ export const wasmzcashtransaction_lock_time: (a: number) => number;
145
+ export const wasmzcashtransaction_version: (a: number) => number;
146
+ export const wrappsbt_lock_time: (a: number) => number;
147
+ export const wrappsbt_version: (a: number) => number;
148
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
149
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
150
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
151
+ export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
152
+ export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
153
+ export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
154
+ export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
155
+ export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
156
+ export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
157
+ export const wasmecpair_private_key: (a: number) => number;
158
+ export const wasmecpair_public_key: (a: number) => number;
159
+ export const wasmecpair_to_wif: (a: number, b: number) => void;
160
+ export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
161
+ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
4
162
  export const __wbg_bip322namespace_free: (a: number, b: number) => void;
5
163
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
6
164
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
165
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
7
166
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
8
167
  export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
9
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
10
168
  export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
11
169
  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;
12
170
  export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
@@ -17,6 +175,7 @@ export const bip322namespace_verify_bip322_tx_input_with_pubkeys: (a: number, b:
17
175
  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;
18
176
  export const bitgopsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number, k: number, l: number) => void;
19
177
  export const bitgopsbt_add_ironwood_output: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
178
+ export const bitgopsbt_add_ironwood_outputs: (a: number, b: number, c: number, d: number, e: number) => void;
20
179
  export const bitgopsbt_add_ironwood_v6_signature: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
21
180
  export const bitgopsbt_add_output: (a: number, b: number, c: number, d: number, e: bigint) => void;
22
181
  export const bitgopsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
@@ -107,6 +266,8 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
107
266
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
108
267
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
109
268
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
269
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
270
+ 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;
110
271
  export const wasmbip32_chain_code: (a: number) => number;
111
272
  export const wasmbip32_depth: (a: number) => number;
112
273
  export const wasmbip32_derive: (a: number, b: number, c: number) => void;
@@ -144,175 +305,15 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
144
305
  export const wasmdimensions_has_segwit: (a: number) => number;
145
306
  export const wasmdimensions_plus: (a: number, b: number) => number;
146
307
  export const wasmdimensions_times: (a: number, b: number) => number;
147
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
148
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
149
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
150
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
151
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
152
- export const wasmecpair_private_key: (a: number) => number;
153
- export const wasmecpair_public_key: (a: number) => number;
154
- export const wasmecpair_to_wif: (a: number, b: number) => void;
155
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
156
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
157
308
  export const wasmrootwalletkeys_backup_key: (a: number) => number;
158
309
  export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
159
310
  export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
160
311
  export const wasmrootwalletkeys_user_key: (a: number) => number;
161
312
  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;
162
313
  export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
314
+ export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
163
315
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
164
316
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
165
- export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
166
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
167
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
168
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
169
- export const wrapdescriptor_descType: (a: number, b: number) => void;
170
- export const wrapdescriptor_encode: (a: number, b: number) => void;
171
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
172
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
173
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
174
- export const wrapdescriptor_hasWildcard: (a: number) => number;
175
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
176
- export const wrapdescriptor_node: (a: number, b: number) => void;
177
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
178
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
179
- export const wrapdescriptor_toString: (a: number, b: number) => void;
180
- export const wrapminiscript_encode: (a: number, b: number) => void;
181
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
182
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
183
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
184
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
185
- export const wrapminiscript_node: (a: number, b: number) => void;
186
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
187
- export const wrapminiscript_toString: (a: number, b: number) => void;
188
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
189
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
190
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
191
- 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;
192
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
193
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
194
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
195
- export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
196
- export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
197
- export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
198
- export const __wbg_addressnamespace_free: (a: number, b: number) => void;
199
- export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
200
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
201
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
202
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
203
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
204
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
205
- export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
206
- export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
207
- export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
208
- export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
209
- export const isInspectEnabled: () => number;
210
- export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
211
- export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
212
- export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
213
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
214
- export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
215
- export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
216
- export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
217
- export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
218
- export const wasmdashtransaction_input_count: (a: number) => number;
219
- export const wasmdashtransaction_lock_time: (a: number) => number;
220
- export const wasmdashtransaction_output_count: (a: number) => number;
221
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
222
- export const wasmdashtransaction_version: (a: number) => number;
223
- export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
224
- export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
225
- export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
226
- export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
227
- export const wasmtransaction_create: () => number;
228
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
229
- export const wasmtransaction_get_inputs: (a: number, b: number) => void;
230
- export const wasmtransaction_get_outputs: (a: number, b: number) => void;
231
- export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
232
- export const wasmtransaction_get_txid: (a: number, b: number) => void;
233
- export const wasmtransaction_get_vsize: (a: number) => number;
234
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
235
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
236
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
237
- export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
238
- export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
239
- export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
240
- export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
241
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
242
- export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
243
- 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;
244
- export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
245
- export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
246
- export const wrappsbt_clone: (a: number) => number;
247
- export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
248
- export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
249
- export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
250
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
251
- export const wrappsbt_extract_transaction: (a: number, b: number) => void;
252
- export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
253
- export const wrappsbt_finalize_mut: (a: number, b: number) => void;
254
- export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
255
- export const wrappsbt_get_global_xpubs: (a: number) => number;
256
- export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
257
- export const wrappsbt_get_inputs: (a: number, b: number) => void;
258
- export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
259
- export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
260
- export const wrappsbt_get_outputs: (a: number, b: number) => void;
261
- export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
262
- export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
263
- export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
264
- export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
265
- export const wrappsbt_input_count: (a: number) => number;
266
- export const wrappsbt_new: (a: number, b: number) => number;
267
- export const wrappsbt_output_count: (a: number) => number;
268
- export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
269
- export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
270
- export const wrappsbt_serialize: (a: number, b: number) => void;
271
- export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
272
- export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
273
- export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
274
- export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
275
- export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
276
- export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
277
- export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
278
- export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
279
- export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
280
- export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
281
- export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
282
- export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
283
- export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
284
- export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
285
- export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
286
- export const zcash_ironwood_version_group_id: () => number;
287
- export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
288
- export const zcashunifiedaddress_encodeOrchardReceiver: (a: number, b: number, c: number, d: number, e: number) => void;
289
- export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
290
- export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
291
- export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
292
- export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
293
- export const zcashv6transaction_consensusBranchId: (a: number) => number;
294
- export const zcashv6transaction_expiryHeight: (a: number) => number;
295
- export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
296
- export const zcashv6transaction_getId: (a: number, b: number) => void;
297
- export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
298
- export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
299
- export const zcashv6transaction_ironwoodFlags: (a: number) => number;
300
- export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
301
- export const zcashv6transaction_toBytes: (a: number, b: number) => void;
302
- export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
303
- export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
304
- export const wasmtransaction_input_count: (a: number) => number;
305
- export const wasmtransaction_output_count: (a: number) => number;
306
- export const wasmzcashtransaction_input_count: (a: number) => number;
307
- export const wasmzcashtransaction_output_count: (a: number) => number;
308
- export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
309
- export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
310
- export const wasmtransaction_lock_time: (a: number) => number;
311
- export const wasmtransaction_version: (a: number) => number;
312
- export const wasmzcashtransaction_lock_time: (a: number) => number;
313
- export const wasmzcashtransaction_version: (a: number) => number;
314
- export const wrappsbt_lock_time: (a: number) => number;
315
- export const wrappsbt_version: (a: number) => number;
316
317
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
317
318
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
318
319
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
@@ -146,6 +146,27 @@ export declare class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
146
146
  ovk?: Uint8Array;
147
147
  unifiedAddress?: string;
148
148
  }): void;
149
+ /**
150
+ * Add one or more shielded outputs (Constructor role) as a single orchard PCZT — the
151
+ * multi-recipient counterpart to {@link addShieldedOutput}. Every recipient must be passed in
152
+ * one call: only one call to `addShieldedOutput`/`addShieldedOutputs` is supported per PSBT (see
153
+ * {@link addShieldedOutput}).
154
+ *
155
+ * @param outputs - one entry per recipient; `memo` defaults per-entry to the ZIP-302 "no memo"
156
+ * encoding, exactly as {@link addShieldedOutput}'s does
157
+ * @param anchor - 32-byte Ironwood note-commitment-tree root, shared by every output
158
+ * @returns the action index assigned to each output, in the same order as `outputs` — the
159
+ * orchard builder pads/reorders actions, so a client-managed-`ovk` caller must use these
160
+ * indices (not the position in `outputs`) when later calling
161
+ * `setIronwoodOutCiphertext`/`setIronwoodOutCiphertextForUser` for a specific recipient.
162
+ */
163
+ addShieldedOutputs(outputs: Array<{
164
+ recipient: Uint8Array;
165
+ amount: bigint;
166
+ memo?: Uint8Array;
167
+ ovk?: Uint8Array;
168
+ unifiedAddress?: string;
169
+ }>, anchor: Uint8Array): number[];
149
170
  /**
150
171
  * Client-managed `ovk`: re-encrypt the shielded output's `out_ciphertext` under **this wallet's**
151
172
  * `ovk`, derived as the ECDH agreement of `rootWalletKeys.bitgoKey()` and `userKey`. Both are root
@@ -139,6 +139,29 @@ export class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
139
139
  const memo = options.memo ?? zip302NoMemo();
140
140
  this.wasm.add_ironwood_output(recipient, amount, options.ovk, options.anchor, memo, options.unifiedAddress);
141
141
  }
142
+ /**
143
+ * Add one or more shielded outputs (Constructor role) as a single orchard PCZT — the
144
+ * multi-recipient counterpart to {@link addShieldedOutput}. Every recipient must be passed in
145
+ * one call: only one call to `addShieldedOutput`/`addShieldedOutputs` is supported per PSBT (see
146
+ * {@link addShieldedOutput}).
147
+ *
148
+ * @param outputs - one entry per recipient; `memo` defaults per-entry to the ZIP-302 "no memo"
149
+ * encoding, exactly as {@link addShieldedOutput}'s does
150
+ * @param anchor - 32-byte Ironwood note-commitment-tree root, shared by every output
151
+ * @returns the action index assigned to each output, in the same order as `outputs` — the
152
+ * orchard builder pads/reorders actions, so a client-managed-`ovk` caller must use these
153
+ * indices (not the position in `outputs`) when later calling
154
+ * `setIronwoodOutCiphertext`/`setIronwoodOutCiphertextForUser` for a specific recipient.
155
+ */
156
+ addShieldedOutputs(outputs, anchor) {
157
+ return Array.from(this.wasm.add_ironwood_outputs(outputs.map((o) => ({
158
+ recipient: o.recipient,
159
+ amount: o.amount,
160
+ memo: o.memo ?? zip302NoMemo(),
161
+ ovk: o.ovk,
162
+ unifiedAddress: o.unifiedAddress,
163
+ })), anchor));
164
+ }
142
165
  /**
143
166
  * Client-managed `ovk`: re-encrypt the shielded output's `out_ciphertext` under **this wallet's**
144
167
  * `ovk`, derived as the ECDH agreement of `rootWalletKeys.bitgoKey()` and `userKey`. Both are root
@@ -161,6 +161,21 @@ export class BitGoPsbt {
161
161
  * [`MEMO_SIZE`]: crate::zcash::ironwood_build::MEMO_SIZE
162
162
  */
163
163
  add_ironwood_output(recipient: Uint8Array, amount: bigint, ovk: Uint8Array | null | undefined, anchor: Uint8Array, memo: Uint8Array, unified_address?: string | null): void;
164
+ /**
165
+ * Constructor: add one or more shielded Ironwood outputs as a single orchard PCZT stored in
166
+ * the PSBT — the multi-recipient counterpart to [`Self::add_ironwood_output`].
167
+ *
168
+ * `outputs` is an array of `{ recipient: Uint8Array, amount: bigint, memo: Uint8Array,
169
+ * ovk?: Uint8Array, unifiedAddress?: string }`, one entry per recipient — see
170
+ * [`Self::add_ironwood_output`] for the meaning of each field. `anchor` is shared by every
171
+ * output.
172
+ *
173
+ * Returns the action index assigned to each output, in the same order as `outputs` — the
174
+ * orchard builder pads/reorders actions, so a client-managed-`ovk` caller must use these
175
+ * indices (not the position in `outputs`) when later calling `set_ironwood_out_ciphertext`
176
+ * for a specific recipient.
177
+ */
178
+ add_ironwood_outputs(outputs: any, anchor: Uint8Array): Uint32Array;
164
179
  /**
165
180
  * Ingest a transparent-input signature (`sig`: DER ECDSA with the trailing SIGHASH_ALL byte)
166
181
  * after verifying it against `ironwood_v6_transparent_sighash(index)`.
@@ -517,6 +517,43 @@ export class BitGoPsbt {
517
517
  wasm.__wbindgen_add_to_stack_pointer(16);
518
518
  }
519
519
  }
520
+ /**
521
+ * Constructor: add one or more shielded Ironwood outputs as a single orchard PCZT stored in
522
+ * the PSBT — the multi-recipient counterpart to [`Self::add_ironwood_output`].
523
+ *
524
+ * `outputs` is an array of `{ recipient: Uint8Array, amount: bigint, memo: Uint8Array,
525
+ * ovk?: Uint8Array, unifiedAddress?: string }`, one entry per recipient — see
526
+ * [`Self::add_ironwood_output`] for the meaning of each field. `anchor` is shared by every
527
+ * output.
528
+ *
529
+ * Returns the action index assigned to each output, in the same order as `outputs` — the
530
+ * orchard builder pads/reorders actions, so a client-managed-`ovk` caller must use these
531
+ * indices (not the position in `outputs`) when later calling `set_ironwood_out_ciphertext`
532
+ * for a specific recipient.
533
+ * @param {any} outputs
534
+ * @param {Uint8Array} anchor
535
+ * @returns {Uint32Array}
536
+ */
537
+ add_ironwood_outputs(outputs, anchor) {
538
+ try {
539
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
540
+ const ptr0 = passArray8ToWasm0(anchor, wasm.__wbindgen_export);
541
+ const len0 = WASM_VECTOR_LEN;
542
+ wasm.bitgopsbt_add_ironwood_outputs(retptr, this.__wbg_ptr, addHeapObject(outputs), ptr0, len0);
543
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
544
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
545
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
546
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
547
+ if (r3) {
548
+ throw takeObject(r2);
549
+ }
550
+ var v2 = getArrayU32FromWasm0(r0, r1).slice();
551
+ wasm.__wbindgen_export4(r0, r1 * 4, 4);
552
+ return v2;
553
+ } finally {
554
+ wasm.__wbindgen_add_to_stack_pointer(16);
555
+ }
556
+ }
520
557
  /**
521
558
  * Ingest a transparent-input signature (`sig`: DER ECDSA with the trailing SIGHASH_ALL byte)
522
559
  * after verifying it against `ironwood_v6_transparent_sighash(index)`.
@@ -7141,6 +7178,10 @@ export function __wbg___wbindgen_debug_string_0bc8482c6e3508ae(arg0, arg1) {
7141
7178
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7142
7179
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7143
7180
  }
7181
+ export function __wbg___wbindgen_is_bigint_31b12575b56f32fc(arg0) {
7182
+ const ret = typeof(getObject(arg0)) === 'bigint';
7183
+ return ret;
7184
+ }
7144
7185
  export function __wbg___wbindgen_is_function_0095a73b8b156f76(arg0) {
7145
7186
  const ret = typeof(getObject(arg0)) === 'function';
7146
7187
  return ret;
Binary file
@@ -1,12 +1,170 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
5
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
6
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
7
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
8
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
9
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
10
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
11
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
12
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
13
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
14
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
15
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
16
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
17
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
18
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
19
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
20
+ export const wrapdescriptor_node: (a: number, b: number) => void;
21
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
22
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
23
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
24
+ export const wrapminiscript_encode: (a: number, b: number) => void;
25
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
26
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
27
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
28
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
29
+ export const wrapminiscript_node: (a: number, b: number) => void;
30
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
31
+ export const wrapminiscript_toString: (a: number, b: number) => void;
32
+ export const __wbg_addressnamespace_free: (a: number, b: number) => void;
33
+ export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
34
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
35
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
36
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
37
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
38
+ export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
39
+ export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
40
+ export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
41
+ export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
42
+ export const isInspectEnabled: () => number;
43
+ export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
44
+ export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
45
+ export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
46
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
47
+ export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
48
+ export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
49
+ export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
50
+ export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
51
+ export const wasmdashtransaction_input_count: (a: number) => number;
52
+ export const wasmdashtransaction_lock_time: (a: number) => number;
53
+ export const wasmdashtransaction_output_count: (a: number) => number;
54
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
55
+ export const wasmdashtransaction_version: (a: number) => number;
56
+ export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
57
+ export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
58
+ export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
59
+ export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
60
+ export const wasmtransaction_create: () => number;
61
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
62
+ export const wasmtransaction_get_inputs: (a: number, b: number) => void;
63
+ export const wasmtransaction_get_outputs: (a: number, b: number) => void;
64
+ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
65
+ export const wasmtransaction_get_txid: (a: number, b: number) => void;
66
+ export const wasmtransaction_get_vsize: (a: number) => number;
67
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
68
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
69
+ export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
70
+ export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
71
+ export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
72
+ export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
73
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
74
+ export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
75
+ 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;
76
+ export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
77
+ export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
78
+ export const wrappsbt_clone: (a: number) => number;
79
+ export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
80
+ export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
81
+ export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
82
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
83
+ export const wrappsbt_extract_transaction: (a: number, b: number) => void;
84
+ export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
85
+ export const wrappsbt_finalize_mut: (a: number, b: number) => void;
86
+ export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
87
+ export const wrappsbt_get_global_xpubs: (a: number) => number;
88
+ export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
89
+ export const wrappsbt_get_inputs: (a: number, b: number) => void;
90
+ export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
91
+ export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
92
+ export const wrappsbt_get_outputs: (a: number, b: number) => void;
93
+ export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
94
+ export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
95
+ export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
96
+ export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
97
+ export const wrappsbt_input_count: (a: number) => number;
98
+ export const wrappsbt_new: (a: number, b: number) => number;
99
+ export const wrappsbt_output_count: (a: number) => number;
100
+ export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
101
+ export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
102
+ export const wrappsbt_serialize: (a: number, b: number) => void;
103
+ export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
104
+ export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
105
+ export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
106
+ export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
107
+ export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
108
+ export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
109
+ export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
110
+ export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
111
+ export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
112
+ export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
113
+ export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
114
+ export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
115
+ export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
116
+ export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
117
+ export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
118
+ export const zcash_ironwood_version_group_id: () => number;
119
+ export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
120
+ export const zcashunifiedaddress_encodeOrchardReceiver: (a: number, b: number, c: number, d: number, e: number) => void;
121
+ export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
122
+ export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
123
+ export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
124
+ export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
125
+ export const zcashv6transaction_consensusBranchId: (a: number) => number;
126
+ export const zcashv6transaction_expiryHeight: (a: number) => number;
127
+ export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
128
+ export const zcashv6transaction_getId: (a: number, b: number) => void;
129
+ export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
130
+ export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
131
+ export const zcashv6transaction_ironwoodFlags: (a: number) => number;
132
+ export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
133
+ export const zcashv6transaction_toBytes: (a: number, b: number) => void;
134
+ export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
135
+ export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
136
+ export const wasmtransaction_input_count: (a: number) => number;
137
+ export const wasmtransaction_output_count: (a: number) => number;
138
+ export const wasmzcashtransaction_input_count: (a: number) => number;
139
+ export const wasmzcashtransaction_output_count: (a: number) => number;
140
+ export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
141
+ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
142
+ export const wasmtransaction_lock_time: (a: number) => number;
143
+ export const wasmtransaction_version: (a: number) => number;
144
+ export const wasmzcashtransaction_lock_time: (a: number) => number;
145
+ export const wasmzcashtransaction_version: (a: number) => number;
146
+ export const wrappsbt_lock_time: (a: number) => number;
147
+ export const wrappsbt_version: (a: number) => number;
148
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
149
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
150
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
151
+ export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
152
+ export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
153
+ export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
154
+ export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
155
+ export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
156
+ export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
157
+ export const wasmecpair_private_key: (a: number) => number;
158
+ export const wasmecpair_public_key: (a: number) => number;
159
+ export const wasmecpair_to_wif: (a: number, b: number) => void;
160
+ export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
161
+ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
4
162
  export const __wbg_bip322namespace_free: (a: number, b: number) => void;
5
163
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
6
164
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
165
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
7
166
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
8
167
  export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
9
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
10
168
  export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
11
169
  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;
12
170
  export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
@@ -17,6 +175,7 @@ export const bip322namespace_verify_bip322_tx_input_with_pubkeys: (a: number, b:
17
175
  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;
18
176
  export const bitgopsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number, k: number, l: number) => void;
19
177
  export const bitgopsbt_add_ironwood_output: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
178
+ export const bitgopsbt_add_ironwood_outputs: (a: number, b: number, c: number, d: number, e: number) => void;
20
179
  export const bitgopsbt_add_ironwood_v6_signature: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
21
180
  export const bitgopsbt_add_output: (a: number, b: number, c: number, d: number, e: bigint) => void;
22
181
  export const bitgopsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
@@ -107,6 +266,8 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
107
266
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
108
267
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
109
268
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
269
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
270
+ 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;
110
271
  export const wasmbip32_chain_code: (a: number) => number;
111
272
  export const wasmbip32_depth: (a: number) => number;
112
273
  export const wasmbip32_derive: (a: number, b: number, c: number) => void;
@@ -144,175 +305,15 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
144
305
  export const wasmdimensions_has_segwit: (a: number) => number;
145
306
  export const wasmdimensions_plus: (a: number, b: number) => number;
146
307
  export const wasmdimensions_times: (a: number, b: number) => number;
147
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
148
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
149
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
150
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
151
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
152
- export const wasmecpair_private_key: (a: number) => number;
153
- export const wasmecpair_public_key: (a: number) => number;
154
- export const wasmecpair_to_wif: (a: number, b: number) => void;
155
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
156
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
157
308
  export const wasmrootwalletkeys_backup_key: (a: number) => number;
158
309
  export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
159
310
  export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
160
311
  export const wasmrootwalletkeys_user_key: (a: number) => number;
161
312
  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;
162
313
  export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
314
+ export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
163
315
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
164
316
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
165
- export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
166
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
167
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
168
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
169
- export const wrapdescriptor_descType: (a: number, b: number) => void;
170
- export const wrapdescriptor_encode: (a: number, b: number) => void;
171
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
172
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
173
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
174
- export const wrapdescriptor_hasWildcard: (a: number) => number;
175
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
176
- export const wrapdescriptor_node: (a: number, b: number) => void;
177
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
178
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
179
- export const wrapdescriptor_toString: (a: number, b: number) => void;
180
- export const wrapminiscript_encode: (a: number, b: number) => void;
181
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
182
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
183
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
184
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
185
- export const wrapminiscript_node: (a: number, b: number) => void;
186
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
187
- export const wrapminiscript_toString: (a: number, b: number) => void;
188
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
189
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
190
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
191
- 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;
192
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
193
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
194
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
195
- export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
196
- export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
197
- export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
198
- export const __wbg_addressnamespace_free: (a: number, b: number) => void;
199
- export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
200
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
201
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
202
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
203
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
204
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
205
- export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
206
- export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
207
- export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
208
- export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
209
- export const isInspectEnabled: () => number;
210
- export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
211
- export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
212
- export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
213
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
214
- export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
215
- export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
216
- export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
217
- export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
218
- export const wasmdashtransaction_input_count: (a: number) => number;
219
- export const wasmdashtransaction_lock_time: (a: number) => number;
220
- export const wasmdashtransaction_output_count: (a: number) => number;
221
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
222
- export const wasmdashtransaction_version: (a: number) => number;
223
- export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
224
- export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
225
- export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
226
- export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
227
- export const wasmtransaction_create: () => number;
228
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
229
- export const wasmtransaction_get_inputs: (a: number, b: number) => void;
230
- export const wasmtransaction_get_outputs: (a: number, b: number) => void;
231
- export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
232
- export const wasmtransaction_get_txid: (a: number, b: number) => void;
233
- export const wasmtransaction_get_vsize: (a: number) => number;
234
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
235
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
236
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
237
- export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
238
- export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
239
- export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
240
- export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
241
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
242
- export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
243
- 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;
244
- export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
245
- export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
246
- export const wrappsbt_clone: (a: number) => number;
247
- export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
248
- export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
249
- export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
250
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
251
- export const wrappsbt_extract_transaction: (a: number, b: number) => void;
252
- export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
253
- export const wrappsbt_finalize_mut: (a: number, b: number) => void;
254
- export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
255
- export const wrappsbt_get_global_xpubs: (a: number) => number;
256
- export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
257
- export const wrappsbt_get_inputs: (a: number, b: number) => void;
258
- export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
259
- export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
260
- export const wrappsbt_get_outputs: (a: number, b: number) => void;
261
- export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
262
- export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
263
- export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
264
- export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
265
- export const wrappsbt_input_count: (a: number) => number;
266
- export const wrappsbt_new: (a: number, b: number) => number;
267
- export const wrappsbt_output_count: (a: number) => number;
268
- export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
269
- export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
270
- export const wrappsbt_serialize: (a: number, b: number) => void;
271
- export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
272
- export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
273
- export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
274
- export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
275
- export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
276
- export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
277
- export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
278
- export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
279
- export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
280
- export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
281
- export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
282
- export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
283
- export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
284
- export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
285
- export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
286
- export const zcash_ironwood_version_group_id: () => number;
287
- export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
288
- export const zcashunifiedaddress_encodeOrchardReceiver: (a: number, b: number, c: number, d: number, e: number) => void;
289
- export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
290
- export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
291
- export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
292
- export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
293
- export const zcashv6transaction_consensusBranchId: (a: number) => number;
294
- export const zcashv6transaction_expiryHeight: (a: number) => number;
295
- export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
296
- export const zcashv6transaction_getId: (a: number, b: number) => void;
297
- export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
298
- export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
299
- export const zcashv6transaction_ironwoodFlags: (a: number) => number;
300
- export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
301
- export const zcashv6transaction_toBytes: (a: number, b: number) => void;
302
- export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
303
- export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
304
- export const wasmtransaction_input_count: (a: number) => number;
305
- export const wasmtransaction_output_count: (a: number) => number;
306
- export const wasmzcashtransaction_input_count: (a: number) => number;
307
- export const wasmzcashtransaction_output_count: (a: number) => number;
308
- export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
309
- export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
310
- export const wasmtransaction_lock_time: (a: number) => number;
311
- export const wasmtransaction_version: (a: number) => number;
312
- export const wasmzcashtransaction_lock_time: (a: number) => number;
313
- export const wasmzcashtransaction_version: (a: number) => number;
314
- export const wrappsbt_lock_time: (a: number) => number;
315
- export const wrappsbt_version: (a: number) => number;
316
317
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
317
318
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
318
319
  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.37.2",
4
+ "version": "4.38.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -60,7 +60,8 @@
60
60
  "./dist/cjs/js/wasm/wasm_utxo.js"
61
61
  ],
62
62
  "scripts": {
63
- "test": "npm run test:mocha && npm run test:wasm-pack && npm run test:imports",
63
+ "test": "npm run build:test && npm run test:mocha && npm run test:wasm-pack && npm run test:imports",
64
+ "build:test": "tsc --noEmit --project tsconfig.test.json",
64
65
  "test:mocha": "mocha --recursive 'test/**/*.ts'",
65
66
  "test:integrationLocalRpc": "mocha --config .mocharc.integrationLocalRpc.json --recursive 'test/integrationLocalRpc/**/*.test.ts'",
66
67
  "test:integrationLocalRpc:generate": "tsx --experimental-wasm-modules test/integrationLocalRpc/generate/main.ts",
@@ -76,7 +77,7 @@
76
77
  "build:ts-cjs": "tsc --project tsconfig.cjs.json",
77
78
  "build:ts": "npm run build:ts-esm && npm run build:ts-cjs",
78
79
  "build:package-json": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
79
- "build": "npm run build:wasm && npm run build:ts && npm run build:package-json",
80
+ "build": "npm run build:wasm && npm run build:ts && npm run build:test && npm run build:package-json",
80
81
  "check-fmt": "npm run lint:prettier && npm run lint:rustfmt",
81
82
  "lint:prettier": "prettier --check .",
82
83
  "lint:eslint": "eslint .",