@bitgo/wasm-utxo 4.32.0 → 4.34.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.
@@ -1,3 +1,5 @@
1
+ import { type BIP32Arg } from "../bip32.js";
2
+ import { type ECPairArg } from "../ecpair.js";
1
3
  import { type WalletKeysArg } from "./RootWalletKeys.js";
2
4
  import { ZcashBitGoPsbt, type ZcashNetworkName } from "./ZcashBitGoPsbt.js";
3
5
  /**
@@ -137,6 +139,29 @@ export declare class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
137
139
  memo?: Uint8Array;
138
140
  ovk?: Uint8Array;
139
141
  }): void;
142
+ /**
143
+ * Client-managed `ovk`: re-encrypt the shielded output's `out_ciphertext` under **this wallet's**
144
+ * `ovk`, derived as the ECDH agreement of `rootWalletKeys.bitgoKey()` and `userKey`. Both are root
145
+ * keys, so the `ovk` does not depend on which inputs the transaction spends, and the server can
146
+ * re-derive the identical value from its own private key plus the user's public key in order to
147
+ * validate `out_ciphertext` before countersigning. The server never sees `userKey` or the `ovk`.
148
+ *
149
+ * `userKey` must be the wallet's user root key — passing the backup or BitGo key throws, since an
150
+ * `ovk` derived from those is one neither the user nor the server can reproduce, and the resulting
151
+ * transaction would broadcast fine while leaving the shielded output permanently unrecoverable.
152
+ *
153
+ * Normally you do not call this directly: {@link sign} performs it on the first signing round.
154
+ *
155
+ * Must be called **before** signing: `out_ciphertext` is committed by the ZIP-244 sighash, so
156
+ * calling this after any transparent signature has been added (via
157
+ * {@link addTransparentSignature}) throws rather than silently invalidating that signature.
158
+ *
159
+ * @param actionIndex - index of the Ironwood action whose output to re-encrypt (always `0`: only
160
+ * one shielded output per transaction is supported, see {@link addShieldedOutput})
161
+ * @param userKey - the wallet's user root key (an xpriv)
162
+ * @param rootWalletKeys - the wallet's root keys, supplying the BitGo cosigner pubkey
163
+ */
164
+ setShieldedOutCiphertext(actionIndex: number, userKey: BIP32Arg, rootWalletKeys: WalletKeysArg): void;
140
165
  /**
141
166
  * The canonical (display-order) ZIP-244 v6 txid as a lowercase hex string, matching
142
167
  * `ITransaction.getId()`. Defined once the transparent inputs/outputs and the shielded output are
@@ -157,6 +182,42 @@ export declare class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
157
182
  * @param sig - DER ECDSA signature with the trailing SIGHASH_ALL byte (as in a scriptSig)
158
183
  */
159
184
  addTransparentSignature(index: number, pubkey: Uint8Array, sig: Uint8Array): void;
185
+ /**
186
+ * Sign every transparent input `key` resolves a private key for, over the ZIP-244 transparent
187
+ * sighash. The v6 (Ironwood) counterpart to the inherited `sign(key)` — that base implementation
188
+ * rejects v6 PSBTs outright, since it only knows the ZIP-243 digest.
189
+ *
190
+ * If no transparent signature has been added to this PSBT yet, this is the first signing round and
191
+ * `key` must be the wallet's user root key: it is used with `rootWalletKeys.bitgoKey()` to derive
192
+ * this wallet's `ovk` and finalize `out_ciphertext` — the client-managed-`ovk` flow — before any
193
+ * sighash is computed. Once a signature exists, that step is a no-op, so a caller passes
194
+ * `rootWalletKeys` on every signing round unconditionally: `psbt.sign(userXpriv, rootWalletKeys)`
195
+ * and later `psbt.sign(bitgoXpriv, rootWalletKeys)` — only the first call actually uses it.
196
+ * `rootWalletKeys` is mandatory precisely so that step can never be silently skipped by omission.
197
+ *
198
+ * **The user must sign first**, and this is enforced: a first round opened by any other key throws
199
+ * rather than deriving an `ovk` that neither the user nor the server can reproduce. One consequence
200
+ * is that a backup-key recovery cannot open the first signing round of a shielding transaction.
201
+ *
202
+ * `rootWalletKeys` is typed optional only so this override type-checks against the inherited
203
+ * `sign(key)` signature — omitting it throws at runtime rather than silently signing without the
204
+ * `ovk` step.
205
+ *
206
+ * @param key - an xpriv (BIP32Arg); raw privkeys (ECPairArg) are not meaningful here, since
207
+ * `out_ciphertext` derivation needs the key's `bip32_derivation` path
208
+ * @param rootWalletKeys - the wallet's root keys (required). Any {@link WalletKeysArg} form, same
209
+ * as {@link setShieldedOutCiphertext} and {@link createEmpty} — an xpub triple, a utxo-lib
210
+ * `RootWalletKeys`, or this package's own — so it is never sensitive to which copy of the class
211
+ * a caller's `RootWalletKeys` came from.
212
+ * @returns the transparent input indices that were signed
213
+ */
214
+ sign(key: BIP32Arg | ECPairArg, rootWalletKeys?: WalletKeysArg): number[];
215
+ /**
216
+ * @deprecated Not supported for v6 (Ironwood): always throws. Inherited only because the base
217
+ * class's single-input overload must be preserved for the override to type-check; use
218
+ * {@link sign} (all matching inputs) instead.
219
+ */
220
+ sign(inputIndex: number, key: BIP32Arg | ECPairArg): void;
160
221
  /**
161
222
  * Transaction Extractor role: given the external prover's `proof` bytes, finalize the
162
223
  * transparent inputs, apply the shielded binding signature, and return the broadcast-ready v6
@@ -1,4 +1,5 @@
1
1
  import { BitGoPsbt as WasmBitGoPsbt } from "../wasm/wasm_utxo.js";
2
+ import { BIP32, isBIP32Arg } from "../bip32.js";
2
3
  import { RootWalletKeys } from "./RootWalletKeys.js";
3
4
  import { IRONWOOD_VERSION_GROUP_ID, ZcashBitGoPsbt, } from "./ZcashBitGoPsbt.js";
4
5
  /**
@@ -132,6 +133,31 @@ export class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
132
133
  const memo = options.memo ?? zip302NoMemo();
133
134
  this.wasm.add_ironwood_output(recipient, amount, options.ovk, options.anchor, memo);
134
135
  }
136
+ /**
137
+ * Client-managed `ovk`: re-encrypt the shielded output's `out_ciphertext` under **this wallet's**
138
+ * `ovk`, derived as the ECDH agreement of `rootWalletKeys.bitgoKey()` and `userKey`. Both are root
139
+ * keys, so the `ovk` does not depend on which inputs the transaction spends, and the server can
140
+ * re-derive the identical value from its own private key plus the user's public key in order to
141
+ * validate `out_ciphertext` before countersigning. The server never sees `userKey` or the `ovk`.
142
+ *
143
+ * `userKey` must be the wallet's user root key — passing the backup or BitGo key throws, since an
144
+ * `ovk` derived from those is one neither the user nor the server can reproduce, and the resulting
145
+ * transaction would broadcast fine while leaving the shielded output permanently unrecoverable.
146
+ *
147
+ * Normally you do not call this directly: {@link sign} performs it on the first signing round.
148
+ *
149
+ * Must be called **before** signing: `out_ciphertext` is committed by the ZIP-244 sighash, so
150
+ * calling this after any transparent signature has been added (via
151
+ * {@link addTransparentSignature}) throws rather than silently invalidating that signature.
152
+ *
153
+ * @param actionIndex - index of the Ironwood action whose output to re-encrypt (always `0`: only
154
+ * one shielded output per transaction is supported, see {@link addShieldedOutput})
155
+ * @param userKey - the wallet's user root key (an xpriv)
156
+ * @param rootWalletKeys - the wallet's root keys, supplying the BitGo cosigner pubkey
157
+ */
158
+ setShieldedOutCiphertext(actionIndex, userKey, rootWalletKeys) {
159
+ this.wasm.set_ironwood_out_ciphertext(actionIndex, BIP32.from(userKey).wasm, RootWalletKeys.from(rootWalletKeys).wasm);
160
+ }
135
161
  /**
136
162
  * The canonical (display-order) ZIP-244 v6 txid as a lowercase hex string, matching
137
163
  * `ITransaction.getId()`. Defined once the transparent inputs/outputs and the shielded output are
@@ -158,6 +184,27 @@ export class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
158
184
  addTransparentSignature(index, pubkey, sig) {
159
185
  this.wasm.add_ironwood_v6_signature(index, pubkey, sig);
160
186
  }
187
+ // The second parameter is `WalletKeysArg` in the public (first) overload above — the only form
188
+ // callers see. It widens here solely to stay assignable to the deprecated `(inputIndex, key)`
189
+ // overload, whose own second parameter is a key; narrowing it to `WalletKeysArg` is TS2394.
190
+ sign(keyOrIndex, keyOrRootWalletKeys) {
191
+ if (typeof keyOrIndex === "number") {
192
+ throw new Error("not supported for v6 (Ironwood): single-input sign(inputIndex, key) has no ZIP-244 " +
193
+ "equivalent; use sign(key) to sign all matching inputs");
194
+ }
195
+ if (!isBIP32Arg(keyOrIndex)) {
196
+ throw new Error("not supported for v6 (Ironwood): a raw privkey (ECPairArg) has no bip32_derivation path " +
197
+ "to resolve out_ciphertext's ovk from; pass an xpriv");
198
+ }
199
+ if (keyOrRootWalletKeys === undefined) {
200
+ throw new Error("rootWalletKeys is required for v6 (Ironwood) signing: sign(key, rootWalletKeys) — pass it " +
201
+ "on every signing round, even Bitgo's, so the client-managed-ovk step is never silently " +
202
+ "skipped");
203
+ }
204
+ const wasmKey = BIP32.from(keyOrIndex).wasm;
205
+ const keys = RootWalletKeys.from(keyOrRootWalletKeys);
206
+ return Array.from(this.wasm.sign_ironwood_v6(wasmKey, keys.wasm), Number);
207
+ }
161
208
  /**
162
209
  * Transaction Extractor role: given the external prover's `proof` bytes, finalize the
163
210
  * transparent inputs, apply the shielded binding signature, and return the broadcast-ready v6
@@ -524,6 +524,21 @@ export class BitGoPsbt {
524
524
  */
525
525
  serialize(): Uint8Array;
526
526
  set_input_kv(index: number, key: any, value: Uint8Array): void;
527
+ /**
528
+ * Client-managed `ovk`: re-encrypt the Ironwood output's `out_ciphertext` under this wallet's
529
+ * `ovk`, derived as the ECDH agreement of `root_wallet_keys.bitgo_key()` and `user_xpriv` — two
530
+ * root keys, so the result is transaction-independent and the server can re-derive the identical
531
+ * `ovk` from its own privkey plus the user's pubkey in order to validate `out_ciphertext`. The
532
+ * server never sees `user_xpriv` or the `ovk` itself.
533
+ *
534
+ * `user_xpriv` must be the wallet's user root key; any other key is rejected, since an `ovk`
535
+ * derived from it is one neither the user nor the server can reproduce.
536
+ *
537
+ * Must be called before signing: `out_ciphertext` is ZIP-244 sighash-committed, so calling this
538
+ * after any transparent signature has been collected for the PSBT is rejected (it would
539
+ * silently invalidate that signature).
540
+ */
541
+ set_ironwood_out_ciphertext(action_index: number, user_xpriv: WasmBIP32, root_wallet_keys: WasmRootWalletKeys): void;
527
542
  set_kv(key: any, value: Uint8Array): void;
528
543
  set_output_kv(index: number, key: any, value: Uint8Array): void;
529
544
  /**
@@ -593,6 +608,22 @@ export class BitGoPsbt {
593
608
  * - `Err(WasmUtxoError)` if signing fails
594
609
  */
595
610
  sign_all_with_xpriv(xpriv: WasmBIP32): any;
611
+ /**
612
+ * Sign every transparent input `xpriv` resolves a key for, over the ZIP-244 transparent
613
+ * sighash — the v6 (Ironwood) counterpart to `sign_all_wallet_inputs`, which rejects v6 PSBTs
614
+ * (it only knows the ZIP-243 digest).
615
+ *
616
+ * If no transparent signature has been collected yet, this is the first signing round and
617
+ * `xpriv` must be the wallet's user root key: it is used with `root_wallet_keys.bitgo_key()` to
618
+ * derive this wallet's `ovk` and finalize `out_ciphertext` before computing any sighash (it is
619
+ * sighash-committed). Any other key signing first is rejected, rather than deriving an `ovk`
620
+ * nobody can reproduce. Once a signature exists, the step is skipped and any key may sign — so
621
+ * callers pass `root_wallet_keys` unconditionally on every signing round without needing to know
622
+ * which key is signing; it is mandatory precisely so the step can never be skipped by omission.
623
+ *
624
+ * Returns the indices of the transparent inputs that were signed.
625
+ */
626
+ sign_ironwood_v6(xpriv: WasmBIP32, root_wallet_keys: WasmRootWalletKeys): Uint32Array;
596
627
  /**
597
628
  * Sign a single MuSig2 keypath input.
598
629
  *
@@ -2023,6 +2023,38 @@ export class BitGoPsbt {
2023
2023
  wasm.__wbindgen_add_to_stack_pointer(16);
2024
2024
  }
2025
2025
  }
2026
+ /**
2027
+ * Client-managed `ovk`: re-encrypt the Ironwood output's `out_ciphertext` under this wallet's
2028
+ * `ovk`, derived as the ECDH agreement of `root_wallet_keys.bitgo_key()` and `user_xpriv` — two
2029
+ * root keys, so the result is transaction-independent and the server can re-derive the identical
2030
+ * `ovk` from its own privkey plus the user's pubkey in order to validate `out_ciphertext`. The
2031
+ * server never sees `user_xpriv` or the `ovk` itself.
2032
+ *
2033
+ * `user_xpriv` must be the wallet's user root key; any other key is rejected, since an `ovk`
2034
+ * derived from it is one neither the user nor the server can reproduce.
2035
+ *
2036
+ * Must be called before signing: `out_ciphertext` is ZIP-244 sighash-committed, so calling this
2037
+ * after any transparent signature has been collected for the PSBT is rejected (it would
2038
+ * silently invalidate that signature).
2039
+ * @param {number} action_index
2040
+ * @param {WasmBIP32} user_xpriv
2041
+ * @param {WasmRootWalletKeys} root_wallet_keys
2042
+ */
2043
+ set_ironwood_out_ciphertext(action_index, user_xpriv, root_wallet_keys) {
2044
+ try {
2045
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2046
+ _assertClass(user_xpriv, WasmBIP32);
2047
+ _assertClass(root_wallet_keys, WasmRootWalletKeys);
2048
+ wasm.bitgopsbt_set_ironwood_out_ciphertext(retptr, this.__wbg_ptr, action_index, user_xpriv.__wbg_ptr, root_wallet_keys.__wbg_ptr);
2049
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2050
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2051
+ if (r1) {
2052
+ throw takeObject(r0);
2053
+ }
2054
+ } finally {
2055
+ wasm.__wbindgen_add_to_stack_pointer(16);
2056
+ }
2057
+ }
2026
2058
  /**
2027
2059
  * @param {any} key
2028
2060
  * @param {Uint8Array} value
@@ -2197,6 +2229,44 @@ export class BitGoPsbt {
2197
2229
  wasm.__wbindgen_add_to_stack_pointer(16);
2198
2230
  }
2199
2231
  }
2232
+ /**
2233
+ * Sign every transparent input `xpriv` resolves a key for, over the ZIP-244 transparent
2234
+ * sighash — the v6 (Ironwood) counterpart to `sign_all_wallet_inputs`, which rejects v6 PSBTs
2235
+ * (it only knows the ZIP-243 digest).
2236
+ *
2237
+ * If no transparent signature has been collected yet, this is the first signing round and
2238
+ * `xpriv` must be the wallet's user root key: it is used with `root_wallet_keys.bitgo_key()` to
2239
+ * derive this wallet's `ovk` and finalize `out_ciphertext` before computing any sighash (it is
2240
+ * sighash-committed). Any other key signing first is rejected, rather than deriving an `ovk`
2241
+ * nobody can reproduce. Once a signature exists, the step is skipped and any key may sign — so
2242
+ * callers pass `root_wallet_keys` unconditionally on every signing round without needing to know
2243
+ * which key is signing; it is mandatory precisely so the step can never be skipped by omission.
2244
+ *
2245
+ * Returns the indices of the transparent inputs that were signed.
2246
+ * @param {WasmBIP32} xpriv
2247
+ * @param {WasmRootWalletKeys} root_wallet_keys
2248
+ * @returns {Uint32Array}
2249
+ */
2250
+ sign_ironwood_v6(xpriv, root_wallet_keys) {
2251
+ try {
2252
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2253
+ _assertClass(xpriv, WasmBIP32);
2254
+ _assertClass(root_wallet_keys, WasmRootWalletKeys);
2255
+ wasm.bitgopsbt_sign_ironwood_v6(retptr, this.__wbg_ptr, xpriv.__wbg_ptr, root_wallet_keys.__wbg_ptr);
2256
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2257
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2258
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
2259
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
2260
+ if (r3) {
2261
+ throw takeObject(r2);
2262
+ }
2263
+ var v1 = getArrayU32FromWasm0(r0, r1).slice();
2264
+ wasm.__wbindgen_export4(r0, r1 * 4, 4);
2265
+ return v1;
2266
+ } finally {
2267
+ wasm.__wbindgen_add_to_stack_pointer(16);
2268
+ }
2269
+ }
2200
2270
  /**
2201
2271
  * Sign a single MuSig2 keypath input.
2202
2272
  *
Binary file
@@ -1,136 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_addressnamespace_free: (a: number, b: number) => void;
5
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
6
- export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
7
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
8
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
9
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
10
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
11
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
12
- export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
13
- export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
14
- export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
15
- export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
16
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
17
- export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
18
- export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
19
- export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
20
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
21
- export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
22
- export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
23
- export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
24
- export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
25
- export const wasmdashtransaction_input_count: (a: number) => number;
26
- export const wasmdashtransaction_lock_time: (a: number) => number;
27
- export const wasmdashtransaction_output_count: (a: number) => number;
28
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
29
- export const wasmdashtransaction_version: (a: number) => number;
30
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
31
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
32
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
33
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
34
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
35
- export const wasmecpair_private_key: (a: number) => number;
36
- export const wasmecpair_public_key: (a: number) => number;
37
- export const wasmecpair_to_wif: (a: number, b: number) => void;
38
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
39
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
40
- export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
41
- export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
42
- export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
43
- export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
44
- export const wasmtransaction_create: () => number;
45
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
46
- export const wasmtransaction_get_inputs: (a: number, b: number) => void;
47
- export const wasmtransaction_get_outputs: (a: number, b: number) => void;
48
- export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
49
- export const wasmtransaction_get_txid: (a: number, b: number) => void;
50
- export const wasmtransaction_get_vsize: (a: number) => number;
51
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
52
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
53
- export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
54
- export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
55
- export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
56
- export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
57
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
58
- export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
59
- 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;
60
- export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
61
- export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
62
- export const wrappsbt_clone: (a: number) => number;
63
- export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
64
- export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
65
- export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
66
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
67
- export const wrappsbt_extract_transaction: (a: number, b: number) => void;
68
- export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
69
- export const wrappsbt_finalize_mut: (a: number, b: number) => void;
70
- export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
71
- export const wrappsbt_get_global_xpubs: (a: number) => number;
72
- export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
73
- export const wrappsbt_get_inputs: (a: number, b: number) => void;
74
- export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
75
- export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
76
- export const wrappsbt_get_outputs: (a: number, b: number) => void;
77
- export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
78
- export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
79
- export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
80
- export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
81
- export const wrappsbt_input_count: (a: number) => number;
82
- export const wrappsbt_new: (a: number, b: number) => number;
83
- export const wrappsbt_output_count: (a: number) => number;
84
- export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
85
- export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
86
- export const wrappsbt_serialize: (a: number, b: number) => void;
87
- export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
88
- export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
89
- export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
90
- export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
91
- export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
92
- export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
93
- export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
94
- export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
95
- export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
96
- export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
97
- export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
98
- export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
99
- export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
100
- export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
101
- export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
102
- export const zcash_ironwood_version_group_id: () => number;
103
- export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
104
- export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
105
- export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
106
- export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
107
- export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
108
- export const zcashv6transaction_consensusBranchId: (a: number) => number;
109
- export const zcashv6transaction_expiryHeight: (a: number) => number;
110
- export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
111
- export const zcashv6transaction_getId: (a: number, b: number) => void;
112
- export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
113
- export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
114
- export const zcashv6transaction_ironwoodFlags: (a: number) => number;
115
- export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
116
- export const zcashv6transaction_toBytes: (a: number, b: number) => void;
117
- export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
118
- export const wasmtransaction_input_count: (a: number) => number;
119
- export const wasmtransaction_output_count: (a: number) => number;
120
- export const wasmzcashtransaction_input_count: (a: number) => number;
121
- export const wasmzcashtransaction_output_count: (a: number) => number;
122
- export const wasmtransaction_lock_time: (a: number) => number;
123
- export const wasmtransaction_version: (a: number) => number;
124
- export const wasmzcashtransaction_lock_time: (a: number) => number;
125
- export const wasmzcashtransaction_version: (a: number) => number;
126
- export const wrappsbt_lock_time: (a: number) => number;
127
- export const wrappsbt_version: (a: number) => number;
128
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
129
4
  export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
130
5
  export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
131
- export const isInspectEnabled: () => number;
132
- export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
133
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
134
6
  export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
135
7
  export const wrapdescriptor_descType: (a: number, b: number) => void;
136
8
  export const wrapdescriptor_encode: (a: number, b: number) => void;
@@ -151,22 +23,12 @@ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d:
151
23
  export const wrapminiscript_node: (a: number, b: number) => void;
152
24
  export const wrapminiscript_toAsmString: (a: number, b: number) => void;
153
25
  export const wrapminiscript_toString: (a: number, b: number) => void;
154
- export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
155
- export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
156
- export const __wbg_bip322namespace_free: (a: number, b: number) => void;
157
26
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
158
27
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
159
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
28
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
160
29
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
161
30
  export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
162
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
163
31
  export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
164
- 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;
165
- export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
166
- 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;
167
- 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;
168
- 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;
169
- 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;
170
32
  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;
171
33
  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;
172
34
  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) => void;
@@ -231,11 +93,13 @@ export const bitgopsbt_remove_input: (a: number, b: number, c: number) => void;
231
93
  export const bitgopsbt_remove_output: (a: number, b: number, c: number) => void;
232
94
  export const bitgopsbt_serialize: (a: number, b: number) => void;
233
95
  export const bitgopsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
96
+ export const bitgopsbt_set_ironwood_out_ciphertext: (a: number, b: number, c: number, d: number, e: number) => void;
234
97
  export const bitgopsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
235
98
  export const bitgopsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
236
99
  export const bitgopsbt_sign_all_musig2_inputs: (a: number, b: number, c: number) => void;
237
100
  export const bitgopsbt_sign_all_replay_protection_inputs: (a: number, b: number, c: number) => void;
238
101
  export const bitgopsbt_sign_all_wallet_inputs: (a: number, b: number, c: number) => void;
102
+ export const bitgopsbt_sign_ironwood_v6: (a: number, b: number, c: number, d: number) => void;
239
103
  export const bitgopsbt_sign_musig2_input: (a: number, b: number, c: number, d: number) => void;
240
104
  export const bitgopsbt_sign_single_input_with_privkey: (a: number, b: number, c: number, d: number) => void;
241
105
  export const bitgopsbt_sign_single_input_with_xpriv: (a: number, b: number, c: number, d: number) => void;
@@ -257,8 +121,8 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
257
121
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
258
122
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
259
123
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
260
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
261
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
124
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
125
+ 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;
262
126
  export const wasmbip32_chain_code: (a: number) => number;
263
127
  export const wasmbip32_depth: (a: number) => number;
264
128
  export const wasmbip32_derive: (a: number, b: number, c: number) => void;
@@ -296,9 +160,6 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
296
160
  export const wasmdimensions_has_segwit: (a: number) => number;
297
161
  export const wasmdimensions_plus: (a: number, b: number) => number;
298
162
  export const wasmdimensions_times: (a: number, b: number) => number;
299
- export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
300
- export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
301
- export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
302
163
  export const wasmrootwalletkeys_backup_key: (a: number) => number;
303
164
  export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
304
165
  export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
@@ -308,6 +169,147 @@ export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
308
169
  export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
309
170
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
310
171
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
172
+ export const __wbg_addressnamespace_free: (a: number, b: number) => void;
173
+ export const __wbg_bip322namespace_free: (a: number, b: number) => void;
174
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
175
+ export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
176
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
177
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
178
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
179
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
180
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
181
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
182
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
183
+ export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
184
+ export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
185
+ export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
186
+ export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
187
+ 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;
188
+ export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
189
+ 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;
190
+ 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;
191
+ 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;
192
+ 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;
193
+ export const isInspectEnabled: () => number;
194
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
195
+ export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
196
+ export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
197
+ export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
198
+ export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
199
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
200
+ export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
201
+ export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
202
+ export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
203
+ export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
204
+ export const wasmdashtransaction_input_count: (a: number) => number;
205
+ export const wasmdashtransaction_lock_time: (a: number) => number;
206
+ export const wasmdashtransaction_output_count: (a: number) => number;
207
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
208
+ export const wasmdashtransaction_version: (a: number) => number;
209
+ export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
210
+ export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
211
+ export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
212
+ export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
213
+ export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
214
+ export const wasmecpair_private_key: (a: number) => number;
215
+ export const wasmecpair_public_key: (a: number) => number;
216
+ export const wasmecpair_to_wif: (a: number, b: number) => void;
217
+ export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
218
+ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
219
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
220
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
221
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
222
+ export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
223
+ export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
224
+ export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
225
+ export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
226
+ export const wasmtransaction_create: () => number;
227
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
228
+ export const wasmtransaction_get_inputs: (a: number, b: number) => void;
229
+ export const wasmtransaction_get_outputs: (a: number, b: number) => void;
230
+ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
231
+ export const wasmtransaction_get_txid: (a: number, b: number) => void;
232
+ export const wasmtransaction_get_vsize: (a: number) => number;
233
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
234
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
235
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
236
+ export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
237
+ export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
238
+ export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
239
+ export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
240
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
241
+ export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
242
+ 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;
243
+ export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
244
+ export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
245
+ export const wrappsbt_clone: (a: number) => number;
246
+ export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
247
+ export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
248
+ export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
249
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
250
+ export const wrappsbt_extract_transaction: (a: number, b: number) => void;
251
+ export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
252
+ export const wrappsbt_finalize_mut: (a: number, b: number) => void;
253
+ export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
254
+ export const wrappsbt_get_global_xpubs: (a: number) => number;
255
+ export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
256
+ export const wrappsbt_get_inputs: (a: number, b: number) => void;
257
+ export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
258
+ export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
259
+ export const wrappsbt_get_outputs: (a: number, b: number) => void;
260
+ export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
261
+ export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
262
+ export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
263
+ export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
264
+ export const wrappsbt_input_count: (a: number) => number;
265
+ export const wrappsbt_new: (a: number, b: number) => number;
266
+ export const wrappsbt_output_count: (a: number) => number;
267
+ export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
268
+ export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
269
+ export const wrappsbt_serialize: (a: number, b: number) => void;
270
+ export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
271
+ export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
272
+ export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
273
+ export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
274
+ export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
275
+ export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
276
+ export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
277
+ export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
278
+ export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
279
+ export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
280
+ export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
281
+ export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
282
+ export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
283
+ export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
284
+ export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
285
+ export const zcash_ironwood_version_group_id: () => number;
286
+ export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
287
+ export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
288
+ export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
289
+ export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
290
+ export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
291
+ export const zcashv6transaction_consensusBranchId: (a: number) => number;
292
+ export const zcashv6transaction_expiryHeight: (a: number) => number;
293
+ export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
294
+ export const zcashv6transaction_getId: (a: number, b: number) => void;
295
+ export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
296
+ export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
297
+ export const zcashv6transaction_ironwoodFlags: (a: number) => number;
298
+ export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
299
+ export const zcashv6transaction_toBytes: (a: number, b: number) => void;
300
+ export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
301
+ export const wasmtransaction_input_count: (a: number) => number;
302
+ export const wasmtransaction_output_count: (a: number) => number;
303
+ export const wasmzcashtransaction_input_count: (a: number) => number;
304
+ export const wasmzcashtransaction_output_count: (a: number) => number;
305
+ export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
306
+ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
307
+ export const wasmtransaction_lock_time: (a: number) => number;
308
+ export const wasmtransaction_version: (a: number) => number;
309
+ export const wasmzcashtransaction_lock_time: (a: number) => number;
310
+ export const wasmzcashtransaction_version: (a: number) => number;
311
+ export const wrappsbt_lock_time: (a: number) => number;
312
+ export const wrappsbt_version: (a: number) => number;
311
313
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
312
314
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
313
315
  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.32.0",
4
+ "version": "4.34.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",