@bitgo/wasm-utxo 4.39.0 → 4.40.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.
@@ -198,4 +198,28 @@ export declare class ZcashBitGoPsbt extends BitGoPsbt<ZcashParsedOutput> {
198
198
  * @throws Error if the PSBT is not fully finalized or extraction fails
199
199
  */
200
200
  extractTransaction(maxFeeRate?: number): ZcashTransaction;
201
+ /**
202
+ * Add a plain transparent output. Just `script`/`value` (no `unifiedAddress`) is the same as
203
+ * the generic {@link BitGoPsbt.addOutput}, unchanged.
204
+ *
205
+ * If `unifiedAddress` is given, it must be a Unified Address whose transparent receiver is
206
+ * exactly `script` — mismatches throw rather than being silently stored. It is then kept
207
+ * verbatim, keyed by this output's index, so {@link ZcashBitGoPsbt.transparentOutputUnifiedAddress}
208
+ * can later return the original UA string rather than just the bare scriptPubkey.
209
+ *
210
+ * `unifiedAddress` is only supported on a legacy v4 `ZcashBitGoPsbt` — the v6 (Ironwood)
211
+ * shielded side has its own UA path (`ZcashIronwoodBitGoPsbt.addShieldedOutput`'s
212
+ * `unifiedAddress` option).
213
+ *
214
+ * @param script - The output scriptPubkey
215
+ * @param value - The value in zatoshi
216
+ * @param unifiedAddress - Optional full Unified Address `script` was resolved from
217
+ * @returns The index of the newly added output
218
+ */
219
+ addTransparentOutput(script: Uint8Array, value: bigint, unifiedAddress?: string): number;
220
+ /**
221
+ * The Unified Address stored by {@link ZcashBitGoPsbt.addTransparentOutput} for output `index`,
222
+ * if one was supplied — `undefined` otherwise.
223
+ */
224
+ transparentOutputUnifiedAddress(index: number): string | undefined;
201
225
  }
@@ -214,5 +214,33 @@ class ZcashBitGoPsbt extends BitGoPsbt_js_1.BitGoPsbt {
214
214
  extractTransaction(maxFeeRate) {
215
215
  return transaction_js_1.ZcashTransaction.fromWasm(this.wasm.extract_zcash_transaction(maxFeeRate));
216
216
  }
217
+ /**
218
+ * Add a plain transparent output. Just `script`/`value` (no `unifiedAddress`) is the same as
219
+ * the generic {@link BitGoPsbt.addOutput}, unchanged.
220
+ *
221
+ * If `unifiedAddress` is given, it must be a Unified Address whose transparent receiver is
222
+ * exactly `script` — mismatches throw rather than being silently stored. It is then kept
223
+ * verbatim, keyed by this output's index, so {@link ZcashBitGoPsbt.transparentOutputUnifiedAddress}
224
+ * can later return the original UA string rather than just the bare scriptPubkey.
225
+ *
226
+ * `unifiedAddress` is only supported on a legacy v4 `ZcashBitGoPsbt` — the v6 (Ironwood)
227
+ * shielded side has its own UA path (`ZcashIronwoodBitGoPsbt.addShieldedOutput`'s
228
+ * `unifiedAddress` option).
229
+ *
230
+ * @param script - The output scriptPubkey
231
+ * @param value - The value in zatoshi
232
+ * @param unifiedAddress - Optional full Unified Address `script` was resolved from
233
+ * @returns The index of the newly added output
234
+ */
235
+ addTransparentOutput(script, value, unifiedAddress) {
236
+ return this.wasm.add_transparent_output(script, value, unifiedAddress);
237
+ }
238
+ /**
239
+ * The Unified Address stored by {@link ZcashBitGoPsbt.addTransparentOutput} for output `index`,
240
+ * if one was supplied — `undefined` otherwise.
241
+ */
242
+ transparentOutputUnifiedAddress(index) {
243
+ return this.wasm.transparent_output_unified_address(index);
244
+ }
217
245
  }
218
246
  exports.ZcashBitGoPsbt = ZcashBitGoPsbt;
@@ -200,6 +200,18 @@ export class BitGoPsbt {
200
200
  add_paygo_attestation(output_index: number, entropy: Uint8Array, signature: Uint8Array): void;
201
201
  add_replay_protection_input(ecpair: WasmECPair, txid: string, vout: number, value: bigint, sequence?: number | null, prev_tx?: Uint8Array | null): number;
202
202
  add_replay_protection_input_at_index(index: number, ecpair: WasmECPair, txid: string, vout: number, value: bigint, sequence?: number | null, prev_tx?: Uint8Array | null): number;
203
+ /**
204
+ * Zcash-only: add a plain transparent output. Just `script`/`value`
205
+ * (`unified_address: undefined`) is the legacy `add_output` behavior, unchanged.
206
+ *
207
+ * If `unified_address` is given, this PSBT must be a legacy v4 Zcash PSBT — a v6 (Ironwood)
208
+ * PSBT's shielded side already has its own UA path (`add_ironwood_output`). The UA must be a
209
+ * Unified Address whose transparent receiver is exactly `script`; mismatches are rejected
210
+ * rather than silently stored. It is then kept verbatim, keyed by this output's index, so
211
+ * `transparent_output_unified_address` can later return the original UA string rather than
212
+ * just the bare scriptPubkey.
213
+ */
214
+ add_transparent_output(script: Uint8Array, value: bigint, unified_address?: string | null): number;
203
215
  add_wallet_input(txid: string, vout: number, value: bigint, wallet_keys: WasmRootWalletKeys, chain: number, index: number, signer?: string | null, cosigner?: string | null, sequence?: number | null, prev_tx?: Uint8Array | null): number;
204
216
  add_wallet_input_at_index(index: number, txid: string, vout: number, value: bigint, wallet_keys: WasmRootWalletKeys, chain: number, derivation_index: number, signer?: string | null, cosigner?: string | null, sequence?: number | null, prev_tx?: Uint8Array | null): number;
205
217
  add_wallet_output(chain: number, index: number, value: bigint, wallet_keys: WasmRootWalletKeys): number;
@@ -796,6 +808,12 @@ export class BitGoPsbt {
796
808
  * - `Err(WasmUtxoError)` if signing fails
797
809
  */
798
810
  sign_with_xpriv(input_index: number, xpriv: WasmBIP32): void;
811
+ /**
812
+ * Zcash-only: the Unified Address stored by [`Self::add_transparent_output`] for output
813
+ * `index`, if the caller supplied one — `undefined` otherwise (including for a non-Zcash
814
+ * PSBT).
815
+ */
816
+ transparent_output_unified_address(index: number): string | undefined;
799
817
  unsigned_tx_id(): string;
800
818
  /**
801
819
  * Verify if a replay protection input has a valid signature
@@ -763,6 +763,40 @@ class BitGoPsbt {
763
763
  wasm.__wbindgen_add_to_stack_pointer(16);
764
764
  }
765
765
  }
766
+ /**
767
+ * Zcash-only: add a plain transparent output. Just `script`/`value`
768
+ * (`unified_address: undefined`) is the legacy `add_output` behavior, unchanged.
769
+ *
770
+ * If `unified_address` is given, this PSBT must be a legacy v4 Zcash PSBT — a v6 (Ironwood)
771
+ * PSBT's shielded side already has its own UA path (`add_ironwood_output`). The UA must be a
772
+ * Unified Address whose transparent receiver is exactly `script`; mismatches are rejected
773
+ * rather than silently stored. It is then kept verbatim, keyed by this output's index, so
774
+ * `transparent_output_unified_address` can later return the original UA string rather than
775
+ * just the bare scriptPubkey.
776
+ * @param {Uint8Array} script
777
+ * @param {bigint} value
778
+ * @param {string | null} [unified_address]
779
+ * @returns {number}
780
+ */
781
+ add_transparent_output(script, value, unified_address) {
782
+ try {
783
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
784
+ const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export);
785
+ const len0 = WASM_VECTOR_LEN;
786
+ var ptr1 = isLikeNone(unified_address) ? 0 : passStringToWasm0(unified_address, wasm.__wbindgen_export, wasm.__wbindgen_export2);
787
+ var len1 = WASM_VECTOR_LEN;
788
+ wasm.bitgopsbt_add_transparent_output(retptr, this.__wbg_ptr, ptr0, len0, value, ptr1, len1);
789
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
790
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
791
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
792
+ if (r2) {
793
+ throw takeObject(r1);
794
+ }
795
+ return r0 >>> 0;
796
+ } finally {
797
+ wasm.__wbindgen_add_to_stack_pointer(16);
798
+ }
799
+ }
766
800
  /**
767
801
  * @param {string} txid
768
802
  * @param {number} vout
@@ -2590,6 +2624,29 @@ class BitGoPsbt {
2590
2624
  wasm.__wbindgen_add_to_stack_pointer(16);
2591
2625
  }
2592
2626
  }
2627
+ /**
2628
+ * Zcash-only: the Unified Address stored by [`Self::add_transparent_output`] for output
2629
+ * `index`, if the caller supplied one — `undefined` otherwise (including for a non-Zcash
2630
+ * PSBT).
2631
+ * @param {number} index
2632
+ * @returns {string | undefined}
2633
+ */
2634
+ transparent_output_unified_address(index) {
2635
+ try {
2636
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2637
+ wasm.bitgopsbt_transparent_output_unified_address(retptr, this.__wbg_ptr, index);
2638
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2639
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2640
+ let v1;
2641
+ if (r0 !== 0) {
2642
+ v1 = getStringFromWasm0(r0, r1).slice();
2643
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
2644
+ }
2645
+ return v1;
2646
+ } finally {
2647
+ wasm.__wbindgen_add_to_stack_pointer(16);
2648
+ }
2649
+ }
2593
2650
  /**
2594
2651
  * @returns {string}
2595
2652
  */
Binary file
@@ -23,20 +23,14 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
23
23
  export const wasmdimensions_has_segwit: (a: number) => number;
24
24
  export const wasmdimensions_plus: (a: number, b: number) => number;
25
25
  export const wasmdimensions_times: (a: number, b: number) => number;
26
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
27
- export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
28
- export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
29
- export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
30
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
31
26
  export const __wbg_messagenamespace_free: (a: number, b: number) => void;
32
27
  export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
28
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
33
29
  export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
34
30
  export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
35
31
  export const __wbg_wrappsbt_free: (a: number, b: number) => void;
36
32
  export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
37
33
  export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
38
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
39
- 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;
40
34
  export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
41
35
  export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
42
36
  export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
@@ -49,6 +43,9 @@ export const wasmdashtransaction_lock_time: (a: number) => number;
49
43
  export const wasmdashtransaction_output_count: (a: number) => number;
50
44
  export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
51
45
  export const wasmdashtransaction_version: (a: number) => number;
46
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
47
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
48
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
52
49
  export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
53
50
  export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
54
51
  export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
@@ -141,11 +138,44 @@ export const wasmzcashtransaction_lock_time: (a: number) => number;
141
138
  export const wasmzcashtransaction_version: (a: number) => number;
142
139
  export const wrappsbt_lock_time: (a: number) => number;
143
140
  export const wrappsbt_version: (a: number) => number;
141
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
142
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
143
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
144
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
145
+ 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;
146
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
147
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
148
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
149
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
150
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
151
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
152
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
153
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
154
+ export const wrapdescriptor_node: (a: number, b: number) => void;
155
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
156
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
157
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
158
+ export const wrapminiscript_encode: (a: number, b: number) => void;
159
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
160
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
161
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
162
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
163
+ export const wrapminiscript_node: (a: number, b: number) => void;
164
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
165
+ export const wrapminiscript_toString: (a: number, b: number) => void;
166
+ export const __wbg_bip322namespace_free: (a: number, b: number) => void;
167
+ 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;
168
+ export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
169
+ 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;
170
+ export const bip322namespace_verify_bip322_psbt_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
171
+ export const bip322namespace_verify_bip322_tx_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
172
+ export const bip322namespace_verify_bip322_tx_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
144
173
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
145
174
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
146
175
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
147
176
  export const __wbg_wasmecpair_free: (a: number, b: number) => void;
148
177
  export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
178
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
149
179
  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;
150
180
  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;
151
181
  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;
@@ -158,6 +188,7 @@ export const bitgopsbt_add_output_with_address_at_index: (a: number, b: number,
158
188
  export const bitgopsbt_add_paygo_attestation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
159
189
  export const bitgopsbt_add_replay_protection_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
160
190
  export const bitgopsbt_add_replay_protection_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: number) => void;
191
+ export const bitgopsbt_add_transparent_output: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => void;
161
192
  export const bitgopsbt_add_wallet_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
162
193
  export const bitgopsbt_add_wallet_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, m: number, n: number, o: number, p: number, q: number) => void;
163
194
  export const bitgopsbt_add_wallet_output: (a: number, b: number, c: number, d: number, e: bigint, f: number) => void;
@@ -224,6 +255,7 @@ export const bitgopsbt_sign_single_input_with_privkey: (a: number, b: number, c:
224
255
  export const bitgopsbt_sign_single_input_with_xpriv: (a: number, b: number, c: number, d: number) => void;
225
256
  export const bitgopsbt_sign_with_privkey: (a: number, b: number, c: number, d: number) => void;
226
257
  export const bitgopsbt_sign_with_xpriv: (a: number, b: number, c: number, d: number) => void;
258
+ export const bitgopsbt_transparent_output_unified_address: (a: number, b: number, c: number) => void;
227
259
  export const bitgopsbt_unsigned_tx_id: (a: number, b: number) => void;
228
260
  export const bitgopsbt_verify_replay_protection_signature: (a: number, b: number, c: number, d: number) => void;
229
261
  export const bitgopsbt_verify_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
@@ -240,6 +272,7 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
240
272
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
241
273
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
242
274
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
275
+ export const isInspectEnabled: () => number;
243
276
  export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
244
277
  export const wasmbip32_chain_code: (a: number) => number;
245
278
  export const wasmbip32_depth: (a: number) => number;
@@ -278,44 +311,13 @@ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
278
311
  export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
279
312
  export const wasmrootwalletkeys_user_key: (a: number) => number;
280
313
  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;
314
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
281
315
  export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
282
- export const isInspectEnabled: () => number;
283
316
  export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
284
317
  export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
285
318
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
286
319
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
287
320
  export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
288
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
289
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
290
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
291
- export const wrapdescriptor_descType: (a: number, b: number) => void;
292
- export const wrapdescriptor_encode: (a: number, b: number) => void;
293
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
294
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
295
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
296
- export const wrapdescriptor_hasWildcard: (a: number) => number;
297
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
298
- export const wrapdescriptor_node: (a: number, b: number) => void;
299
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
300
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
301
- export const wrapdescriptor_toString: (a: number, b: number) => void;
302
- export const wrapminiscript_encode: (a: number, b: number) => void;
303
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
304
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
305
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
306
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
307
- export const wrapminiscript_node: (a: number, b: number) => void;
308
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
309
- export const wrapminiscript_toString: (a: number, b: number) => void;
310
- export const __wbg_bip322namespace_free: (a: number, b: number) => void;
311
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
312
- 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;
313
- export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
314
- 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;
315
- export const bip322namespace_verify_bip322_psbt_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
316
- export const bip322namespace_verify_bip322_tx_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
317
- export const bip322namespace_verify_bip322_tx_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
318
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
319
321
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
320
322
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
321
323
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
@@ -198,4 +198,28 @@ export declare class ZcashBitGoPsbt extends BitGoPsbt<ZcashParsedOutput> {
198
198
  * @throws Error if the PSBT is not fully finalized or extraction fails
199
199
  */
200
200
  extractTransaction(maxFeeRate?: number): ZcashTransaction;
201
+ /**
202
+ * Add a plain transparent output. Just `script`/`value` (no `unifiedAddress`) is the same as
203
+ * the generic {@link BitGoPsbt.addOutput}, unchanged.
204
+ *
205
+ * If `unifiedAddress` is given, it must be a Unified Address whose transparent receiver is
206
+ * exactly `script` — mismatches throw rather than being silently stored. It is then kept
207
+ * verbatim, keyed by this output's index, so {@link ZcashBitGoPsbt.transparentOutputUnifiedAddress}
208
+ * can later return the original UA string rather than just the bare scriptPubkey.
209
+ *
210
+ * `unifiedAddress` is only supported on a legacy v4 `ZcashBitGoPsbt` — the v6 (Ironwood)
211
+ * shielded side has its own UA path (`ZcashIronwoodBitGoPsbt.addShieldedOutput`'s
212
+ * `unifiedAddress` option).
213
+ *
214
+ * @param script - The output scriptPubkey
215
+ * @param value - The value in zatoshi
216
+ * @param unifiedAddress - Optional full Unified Address `script` was resolved from
217
+ * @returns The index of the newly added output
218
+ */
219
+ addTransparentOutput(script: Uint8Array, value: bigint, unifiedAddress?: string): number;
220
+ /**
221
+ * The Unified Address stored by {@link ZcashBitGoPsbt.addTransparentOutput} for output `index`,
222
+ * if one was supplied — `undefined` otherwise.
223
+ */
224
+ transparentOutputUnifiedAddress(index: number): string | undefined;
201
225
  }
@@ -211,4 +211,32 @@ export class ZcashBitGoPsbt extends BitGoPsbt {
211
211
  extractTransaction(maxFeeRate) {
212
212
  return ZcashTransaction.fromWasm(this.wasm.extract_zcash_transaction(maxFeeRate));
213
213
  }
214
+ /**
215
+ * Add a plain transparent output. Just `script`/`value` (no `unifiedAddress`) is the same as
216
+ * the generic {@link BitGoPsbt.addOutput}, unchanged.
217
+ *
218
+ * If `unifiedAddress` is given, it must be a Unified Address whose transparent receiver is
219
+ * exactly `script` — mismatches throw rather than being silently stored. It is then kept
220
+ * verbatim, keyed by this output's index, so {@link ZcashBitGoPsbt.transparentOutputUnifiedAddress}
221
+ * can later return the original UA string rather than just the bare scriptPubkey.
222
+ *
223
+ * `unifiedAddress` is only supported on a legacy v4 `ZcashBitGoPsbt` — the v6 (Ironwood)
224
+ * shielded side has its own UA path (`ZcashIronwoodBitGoPsbt.addShieldedOutput`'s
225
+ * `unifiedAddress` option).
226
+ *
227
+ * @param script - The output scriptPubkey
228
+ * @param value - The value in zatoshi
229
+ * @param unifiedAddress - Optional full Unified Address `script` was resolved from
230
+ * @returns The index of the newly added output
231
+ */
232
+ addTransparentOutput(script, value, unifiedAddress) {
233
+ return this.wasm.add_transparent_output(script, value, unifiedAddress);
234
+ }
235
+ /**
236
+ * The Unified Address stored by {@link ZcashBitGoPsbt.addTransparentOutput} for output `index`,
237
+ * if one was supplied — `undefined` otherwise.
238
+ */
239
+ transparentOutputUnifiedAddress(index) {
240
+ return this.wasm.transparent_output_unified_address(index);
241
+ }
214
242
  }
@@ -200,6 +200,18 @@ export class BitGoPsbt {
200
200
  add_paygo_attestation(output_index: number, entropy: Uint8Array, signature: Uint8Array): void;
201
201
  add_replay_protection_input(ecpair: WasmECPair, txid: string, vout: number, value: bigint, sequence?: number | null, prev_tx?: Uint8Array | null): number;
202
202
  add_replay_protection_input_at_index(index: number, ecpair: WasmECPair, txid: string, vout: number, value: bigint, sequence?: number | null, prev_tx?: Uint8Array | null): number;
203
+ /**
204
+ * Zcash-only: add a plain transparent output. Just `script`/`value`
205
+ * (`unified_address: undefined`) is the legacy `add_output` behavior, unchanged.
206
+ *
207
+ * If `unified_address` is given, this PSBT must be a legacy v4 Zcash PSBT — a v6 (Ironwood)
208
+ * PSBT's shielded side already has its own UA path (`add_ironwood_output`). The UA must be a
209
+ * Unified Address whose transparent receiver is exactly `script`; mismatches are rejected
210
+ * rather than silently stored. It is then kept verbatim, keyed by this output's index, so
211
+ * `transparent_output_unified_address` can later return the original UA string rather than
212
+ * just the bare scriptPubkey.
213
+ */
214
+ add_transparent_output(script: Uint8Array, value: bigint, unified_address?: string | null): number;
203
215
  add_wallet_input(txid: string, vout: number, value: bigint, wallet_keys: WasmRootWalletKeys, chain: number, index: number, signer?: string | null, cosigner?: string | null, sequence?: number | null, prev_tx?: Uint8Array | null): number;
204
216
  add_wallet_input_at_index(index: number, txid: string, vout: number, value: bigint, wallet_keys: WasmRootWalletKeys, chain: number, derivation_index: number, signer?: string | null, cosigner?: string | null, sequence?: number | null, prev_tx?: Uint8Array | null): number;
205
217
  add_wallet_output(chain: number, index: number, value: bigint, wallet_keys: WasmRootWalletKeys): number;
@@ -796,6 +808,12 @@ export class BitGoPsbt {
796
808
  * - `Err(WasmUtxoError)` if signing fails
797
809
  */
798
810
  sign_with_xpriv(input_index: number, xpriv: WasmBIP32): void;
811
+ /**
812
+ * Zcash-only: the Unified Address stored by [`Self::add_transparent_output`] for output
813
+ * `index`, if the caller supplied one — `undefined` otherwise (including for a non-Zcash
814
+ * PSBT).
815
+ */
816
+ transparent_output_unified_address(index: number): string | undefined;
799
817
  unsigned_tx_id(): string;
800
818
  /**
801
819
  * Verify if a replay protection input has a valid signature
@@ -759,6 +759,40 @@ export class BitGoPsbt {
759
759
  wasm.__wbindgen_add_to_stack_pointer(16);
760
760
  }
761
761
  }
762
+ /**
763
+ * Zcash-only: add a plain transparent output. Just `script`/`value`
764
+ * (`unified_address: undefined`) is the legacy `add_output` behavior, unchanged.
765
+ *
766
+ * If `unified_address` is given, this PSBT must be a legacy v4 Zcash PSBT — a v6 (Ironwood)
767
+ * PSBT's shielded side already has its own UA path (`add_ironwood_output`). The UA must be a
768
+ * Unified Address whose transparent receiver is exactly `script`; mismatches are rejected
769
+ * rather than silently stored. It is then kept verbatim, keyed by this output's index, so
770
+ * `transparent_output_unified_address` can later return the original UA string rather than
771
+ * just the bare scriptPubkey.
772
+ * @param {Uint8Array} script
773
+ * @param {bigint} value
774
+ * @param {string | null} [unified_address]
775
+ * @returns {number}
776
+ */
777
+ add_transparent_output(script, value, unified_address) {
778
+ try {
779
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
780
+ const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export);
781
+ const len0 = WASM_VECTOR_LEN;
782
+ var ptr1 = isLikeNone(unified_address) ? 0 : passStringToWasm0(unified_address, wasm.__wbindgen_export, wasm.__wbindgen_export2);
783
+ var len1 = WASM_VECTOR_LEN;
784
+ wasm.bitgopsbt_add_transparent_output(retptr, this.__wbg_ptr, ptr0, len0, value, ptr1, len1);
785
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
786
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
787
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
788
+ if (r2) {
789
+ throw takeObject(r1);
790
+ }
791
+ return r0 >>> 0;
792
+ } finally {
793
+ wasm.__wbindgen_add_to_stack_pointer(16);
794
+ }
795
+ }
762
796
  /**
763
797
  * @param {string} txid
764
798
  * @param {number} vout
@@ -2586,6 +2620,29 @@ export class BitGoPsbt {
2586
2620
  wasm.__wbindgen_add_to_stack_pointer(16);
2587
2621
  }
2588
2622
  }
2623
+ /**
2624
+ * Zcash-only: the Unified Address stored by [`Self::add_transparent_output`] for output
2625
+ * `index`, if the caller supplied one — `undefined` otherwise (including for a non-Zcash
2626
+ * PSBT).
2627
+ * @param {number} index
2628
+ * @returns {string | undefined}
2629
+ */
2630
+ transparent_output_unified_address(index) {
2631
+ try {
2632
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2633
+ wasm.bitgopsbt_transparent_output_unified_address(retptr, this.__wbg_ptr, index);
2634
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2635
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2636
+ let v1;
2637
+ if (r0 !== 0) {
2638
+ v1 = getStringFromWasm0(r0, r1).slice();
2639
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
2640
+ }
2641
+ return v1;
2642
+ } finally {
2643
+ wasm.__wbindgen_add_to_stack_pointer(16);
2644
+ }
2645
+ }
2589
2646
  /**
2590
2647
  * @returns {string}
2591
2648
  */
Binary file
@@ -23,20 +23,14 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
23
23
  export const wasmdimensions_has_segwit: (a: number) => number;
24
24
  export const wasmdimensions_plus: (a: number, b: number) => number;
25
25
  export const wasmdimensions_times: (a: number, b: number) => number;
26
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
27
- export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
28
- export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
29
- export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
30
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
31
26
  export const __wbg_messagenamespace_free: (a: number, b: number) => void;
32
27
  export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
28
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
33
29
  export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
34
30
  export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
35
31
  export const __wbg_wrappsbt_free: (a: number, b: number) => void;
36
32
  export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
37
33
  export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
38
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
39
- 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;
40
34
  export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
41
35
  export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
42
36
  export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
@@ -49,6 +43,9 @@ export const wasmdashtransaction_lock_time: (a: number) => number;
49
43
  export const wasmdashtransaction_output_count: (a: number) => number;
50
44
  export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
51
45
  export const wasmdashtransaction_version: (a: number) => number;
46
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
47
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
48
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
52
49
  export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
53
50
  export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
54
51
  export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
@@ -141,11 +138,44 @@ export const wasmzcashtransaction_lock_time: (a: number) => number;
141
138
  export const wasmzcashtransaction_version: (a: number) => number;
142
139
  export const wrappsbt_lock_time: (a: number) => number;
143
140
  export const wrappsbt_version: (a: number) => number;
141
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
142
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
143
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
144
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
145
+ 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;
146
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
147
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
148
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
149
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
150
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
151
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
152
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
153
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
154
+ export const wrapdescriptor_node: (a: number, b: number) => void;
155
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
156
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
157
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
158
+ export const wrapminiscript_encode: (a: number, b: number) => void;
159
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
160
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
161
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
162
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
163
+ export const wrapminiscript_node: (a: number, b: number) => void;
164
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
165
+ export const wrapminiscript_toString: (a: number, b: number) => void;
166
+ export const __wbg_bip322namespace_free: (a: number, b: number) => void;
167
+ 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;
168
+ export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
169
+ 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;
170
+ export const bip322namespace_verify_bip322_psbt_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
171
+ export const bip322namespace_verify_bip322_tx_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
172
+ export const bip322namespace_verify_bip322_tx_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
144
173
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
145
174
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
146
175
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
147
176
  export const __wbg_wasmecpair_free: (a: number, b: number) => void;
148
177
  export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
178
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
149
179
  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;
150
180
  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;
151
181
  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;
@@ -158,6 +188,7 @@ export const bitgopsbt_add_output_with_address_at_index: (a: number, b: number,
158
188
  export const bitgopsbt_add_paygo_attestation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
159
189
  export const bitgopsbt_add_replay_protection_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
160
190
  export const bitgopsbt_add_replay_protection_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: number) => void;
191
+ export const bitgopsbt_add_transparent_output: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => void;
161
192
  export const bitgopsbt_add_wallet_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
162
193
  export const bitgopsbt_add_wallet_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, m: number, n: number, o: number, p: number, q: number) => void;
163
194
  export const bitgopsbt_add_wallet_output: (a: number, b: number, c: number, d: number, e: bigint, f: number) => void;
@@ -224,6 +255,7 @@ export const bitgopsbt_sign_single_input_with_privkey: (a: number, b: number, c:
224
255
  export const bitgopsbt_sign_single_input_with_xpriv: (a: number, b: number, c: number, d: number) => void;
225
256
  export const bitgopsbt_sign_with_privkey: (a: number, b: number, c: number, d: number) => void;
226
257
  export const bitgopsbt_sign_with_xpriv: (a: number, b: number, c: number, d: number) => void;
258
+ export const bitgopsbt_transparent_output_unified_address: (a: number, b: number, c: number) => void;
227
259
  export const bitgopsbt_unsigned_tx_id: (a: number, b: number) => void;
228
260
  export const bitgopsbt_verify_replay_protection_signature: (a: number, b: number, c: number, d: number) => void;
229
261
  export const bitgopsbt_verify_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
@@ -240,6 +272,7 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
240
272
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
241
273
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
242
274
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
275
+ export const isInspectEnabled: () => number;
243
276
  export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
244
277
  export const wasmbip32_chain_code: (a: number) => number;
245
278
  export const wasmbip32_depth: (a: number) => number;
@@ -278,44 +311,13 @@ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
278
311
  export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
279
312
  export const wasmrootwalletkeys_user_key: (a: number) => number;
280
313
  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;
314
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
281
315
  export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
282
- export const isInspectEnabled: () => number;
283
316
  export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
284
317
  export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
285
318
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
286
319
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
287
320
  export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
288
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
289
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
290
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
291
- export const wrapdescriptor_descType: (a: number, b: number) => void;
292
- export const wrapdescriptor_encode: (a: number, b: number) => void;
293
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
294
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
295
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
296
- export const wrapdescriptor_hasWildcard: (a: number) => number;
297
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
298
- export const wrapdescriptor_node: (a: number, b: number) => void;
299
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
300
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
301
- export const wrapdescriptor_toString: (a: number, b: number) => void;
302
- export const wrapminiscript_encode: (a: number, b: number) => void;
303
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
304
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
305
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
306
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
307
- export const wrapminiscript_node: (a: number, b: number) => void;
308
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
309
- export const wrapminiscript_toString: (a: number, b: number) => void;
310
- export const __wbg_bip322namespace_free: (a: number, b: number) => void;
311
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
312
- 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;
313
- export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
314
- 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;
315
- export const bip322namespace_verify_bip322_psbt_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
316
- export const bip322namespace_verify_bip322_tx_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
317
- export const bip322namespace_verify_bip322_tx_input_with_pubkeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
318
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
319
321
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
320
322
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
321
323
  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.39.0",
4
+ "version": "4.40.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",