@bitgo/wasm-utxo 5.1.0 → 5.2.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,4 @@
1
+ import { BitGoPsbt as WasmBitGoPsbt } from "../wasm/wasm_utxo.js";
1
2
  import { type WalletKeysArg } from "./RootWalletKeys.js";
2
3
  import { BitGoPsbt, type CreateEmptyOptions, type HydrationUnspent, type ParsedOutput } from "./BitGoPsbt.js";
3
4
  import { ZcashTransaction, type ITransaction } from "../transaction.js";
@@ -15,6 +16,8 @@ export type ZcashParsedOutput = ParsedOutput & {
15
16
  */
16
17
  isShielded: boolean;
17
18
  };
19
+ /** Zcash transaction versions supported by the fixed-script PSBT API. */
20
+ export type ZcashTransactionVersion = 4 | 6;
18
21
  /**
19
22
  * Zcash v6 (Ironwood) version group id (0xd884b698). Its presence marks a PSBT as v6 — see
20
23
  * `ZcashIronwoodBitGoPsbt`.
@@ -124,6 +127,8 @@ export declare class ZcashBitGoPsbt extends BitGoPsbt<ZcashParsedOutput> {
124
127
  * @returns A ZcashBitGoPsbt instance
125
128
  */
126
129
  static fromBytes(bytes: Uint8Array, network: ZcashNetworkName): ZcashBitGoPsbt;
130
+ /** @internal Create from a parsed WASM instance without reparsing the bytes. */
131
+ static fromWasm(wasm: WasmBitGoPsbt): ZcashBitGoPsbt;
127
132
  /**
128
133
  * Reconstruct a Zcash PSBT from a network-format transaction (unsigned, half-signed, or fully-signed).
129
134
  *
@@ -173,6 +178,13 @@ export declare class ZcashBitGoPsbt extends BitGoPsbt<ZcashParsedOutput> {
173
178
  * @returns The version group ID (e.g., 0x892F2085 for Sapling)
174
179
  */
175
180
  get versionGroupId(): number;
181
+ /**
182
+ * Get the Zcash transaction version represented by this PSBT.
183
+ *
184
+ * The version group ID is the discriminator because the v4 and v6 PSBT encodings do not expose
185
+ * the same unsigned transaction bytes to a standard PSBT parser.
186
+ */
187
+ getVersion(): ZcashTransactionVersion;
176
188
  /**
177
189
  * Get the Zcash expiry height
178
190
  * @returns The expiry height (0 if not set)
@@ -111,6 +111,10 @@ class ZcashBitGoPsbt extends BitGoPsbt_js_1.BitGoPsbt {
111
111
  }
112
112
  return psbt;
113
113
  }
114
+ /** @internal Create from a parsed WASM instance without reparsing the bytes. */
115
+ static fromWasm(wasm) {
116
+ return new ZcashBitGoPsbt(wasm);
117
+ }
114
118
  /**
115
119
  * Reconstruct a Zcash PSBT from a network-format transaction (unsigned, half-signed, or fully-signed).
116
120
  *
@@ -181,6 +185,15 @@ class ZcashBitGoPsbt extends BitGoPsbt_js_1.BitGoPsbt {
181
185
  get versionGroupId() {
182
186
  return this.wasm.version_group_id();
183
187
  }
188
+ /**
189
+ * Get the Zcash transaction version represented by this PSBT.
190
+ *
191
+ * The version group ID is the discriminator because the v4 and v6 PSBT encodings do not expose
192
+ * the same unsigned transaction bytes to a standard PSBT parser.
193
+ */
194
+ getVersion() {
195
+ return this.versionGroupId === exports.IRONWOOD_VERSION_GROUP_ID ? 6 : 4;
196
+ }
184
197
  /**
185
198
  * Get the Zcash expiry height
186
199
  * @returns The expiry height (0 if not set)
@@ -1,3 +1,4 @@
1
+ import { BitGoPsbt as WasmBitGoPsbt } from "../wasm/wasm_utxo.js";
1
2
  import { type BIP32Arg } from "../bip32.js";
2
3
  import { type ECPairArg } from "../ecpair.js";
3
4
  import { type WalletKeysArg } from "./RootWalletKeys.js";
@@ -122,6 +123,8 @@ export declare class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
122
123
  * @returns A ZcashIronwoodBitGoPsbt instance
123
124
  */
124
125
  static fromBytes(bytes: Uint8Array, network: ZcashNetworkName): ZcashIronwoodBitGoPsbt;
126
+ /** @internal Create from a parsed WASM instance without reparsing the bytes. */
127
+ static fromWasm(wasm: WasmBitGoPsbt): ZcashIronwoodBitGoPsbt;
125
128
  /**
126
129
  * Add the shielded output (Constructor role). Stores the orchard PCZT in the PSBT.
127
130
  *
@@ -121,6 +121,10 @@ class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt_js_1.ZcashBitGoPsbt {
121
121
  }
122
122
  return psbt;
123
123
  }
124
+ /** @internal Create from a parsed WASM instance without reparsing the bytes. */
125
+ static fromWasm(wasm) {
126
+ return new ZcashIronwoodBitGoPsbt(wasm);
127
+ }
124
128
  /**
125
129
  * Add the shielded output (Constructor role). Stores the orchard PCZT in the PSBT.
126
130
  *
@@ -0,0 +1,15 @@
1
+ import { ZcashBitGoPsbt, type ZcashNetworkName } from "./ZcashBitGoPsbt.js";
2
+ import { ZcashIronwoodBitGoPsbt } from "./ZcashIronwoodBitGoPsbt.js";
3
+ export type ZcashPsbtInstance = ZcashBitGoPsbt | ZcashIronwoodBitGoPsbt;
4
+ /** Factory for deserializing either supported Zcash PSBT format. */
5
+ export declare class ZcashPsbt {
6
+ private constructor();
7
+ /**
8
+ * Deserialize a Zcash PSBT and return the format-specific implementation.
9
+ *
10
+ * The version is read from the parsed Zcash metadata, so callers do not need to run a separate
11
+ * byte-level detector or choose a concrete parser before deserializing.
12
+ */
13
+ static from(bytes: Uint8Array, network: ZcashNetworkName): ZcashPsbtInstance;
14
+ static fromBytes(bytes: Uint8Array, network: ZcashNetworkName): ZcashPsbtInstance;
15
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZcashPsbt = void 0;
4
+ const wasm_utxo_js_1 = require("../wasm/wasm_utxo.js");
5
+ const ZcashBitGoPsbt_js_1 = require("./ZcashBitGoPsbt.js");
6
+ const ZcashIronwoodBitGoPsbt_js_1 = require("./ZcashIronwoodBitGoPsbt.js");
7
+ /** Factory for deserializing either supported Zcash PSBT format. */
8
+ class ZcashPsbt {
9
+ constructor() { }
10
+ /**
11
+ * Deserialize a Zcash PSBT and return the format-specific implementation.
12
+ *
13
+ * The version is read from the parsed Zcash metadata, so callers do not need to run a separate
14
+ * byte-level detector or choose a concrete parser before deserializing.
15
+ */
16
+ static from(bytes, network) {
17
+ const parsed = ZcashBitGoPsbt_js_1.ZcashBitGoPsbt.fromWasm(wasm_utxo_js_1.BitGoPsbt.from_bytes(bytes, network));
18
+ return parsed.getVersion() === 6 ? ZcashIronwoodBitGoPsbt_js_1.ZcashIronwoodBitGoPsbt.fromWasm(parsed.wasm) : parsed;
19
+ }
20
+ static fromBytes(bytes, network) {
21
+ return ZcashPsbt.from(bytes, network);
22
+ }
23
+ }
24
+ exports.ZcashPsbt = ZcashPsbt;
@@ -8,7 +8,8 @@ export { ChainCode, chainCodes, assertChainCode, type Scope } from "./chains.js"
8
8
  export { requiresPrevTxForP2sh } from "./prevTx.js";
9
9
  export { BitGoPsbt, getWalletKeysFromPsbt, type NetworkName, type ScriptId, type ParsedInput, type ParsedOutput, type ParsedTransaction, type SignPath, type CreateEmptyOptions, type AddInputOptions, type AddOutputOptions, type AddWalletInputOptions, type AddWalletOutputOptions, type ParseTransactionOptions, type ParseOutputsOptions, type HydrationUnspent, } from "./BitGoPsbt.js";
10
10
  export { BitGoKeySubtype, type PsbtKvKey } from "./BitGoKeySubtype.js";
11
- export { ZcashBitGoPsbt, type ZcashNetworkName, type ZcashParsedOutput, type CreateEmptyZcashOptions, IRONWOOD_VERSION_GROUP_ID, } from "./ZcashBitGoPsbt.js";
11
+ export { ZcashBitGoPsbt, type ZcashNetworkName, type ZcashParsedOutput, type ZcashTransactionVersion, type CreateEmptyZcashOptions, IRONWOOD_VERSION_GROUP_ID, } from "./ZcashBitGoPsbt.js";
12
+ export { ZcashPsbt, type ZcashPsbtInstance } from "./ZcashPsbt.js";
12
13
  export { ZcashIronwoodBitGoPsbt, zip302NoMemo, type CreateEmptyIronwoodOptions, type CreateEmptyIronwoodWithConsensusBranchIdOptions, } from "./ZcashIronwoodBitGoPsbt.js";
13
14
  export { ZcashUnifiedAddress } from "./ZcashUnifiedAddress.js";
14
15
  export { ZcashV6Transaction } from "./ZcashV6Transaction.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ZcashIronwoodWitness = exports.ZcashV6Transaction = exports.ZcashUnifiedAddress = exports.zip302NoMemo = exports.ZcashIronwoodBitGoPsbt = exports.IRONWOOD_VERSION_GROUP_ID = exports.ZcashBitGoPsbt = exports.BitGoKeySubtype = exports.getWalletKeysFromPsbt = exports.BitGoPsbt = exports.requiresPrevTxForP2sh = exports.assertChainCode = exports.chainCodes = exports.ChainCode = exports.inputScriptTypes = exports.outputScriptTypes = exports.Dimensions = exports.address = exports.outputScript = exports.ReplayProtection = exports.RootWalletKeys = void 0;
3
+ exports.ZcashIronwoodWitness = exports.ZcashV6Transaction = exports.ZcashUnifiedAddress = exports.zip302NoMemo = exports.ZcashIronwoodBitGoPsbt = exports.ZcashPsbt = exports.IRONWOOD_VERSION_GROUP_ID = exports.ZcashBitGoPsbt = exports.BitGoKeySubtype = exports.getWalletKeysFromPsbt = exports.BitGoPsbt = exports.requiresPrevTxForP2sh = exports.assertChainCode = exports.chainCodes = exports.ChainCode = exports.inputScriptTypes = exports.outputScriptTypes = exports.Dimensions = exports.address = exports.outputScript = exports.ReplayProtection = exports.RootWalletKeys = void 0;
4
4
  exports.supportsScriptType = supportsScriptType;
5
5
  exports.createOpReturnScript = createOpReturnScript;
6
6
  exports.p2shP2pkOutputScript = p2shP2pkOutputScript;
@@ -34,6 +34,8 @@ Object.defineProperty(exports, "BitGoKeySubtype", { enumerable: true, get: funct
34
34
  var ZcashBitGoPsbt_js_1 = require("./ZcashBitGoPsbt.js");
35
35
  Object.defineProperty(exports, "ZcashBitGoPsbt", { enumerable: true, get: function () { return ZcashBitGoPsbt_js_1.ZcashBitGoPsbt; } });
36
36
  Object.defineProperty(exports, "IRONWOOD_VERSION_GROUP_ID", { enumerable: true, get: function () { return ZcashBitGoPsbt_js_1.IRONWOOD_VERSION_GROUP_ID; } });
37
+ var ZcashPsbt_js_1 = require("./ZcashPsbt.js");
38
+ Object.defineProperty(exports, "ZcashPsbt", { enumerable: true, get: function () { return ZcashPsbt_js_1.ZcashPsbt; } });
37
39
  // Zcash v6 (Ironwood / NU6.3) shielding PSBT
38
40
  var ZcashIronwoodBitGoPsbt_js_1 = require("./ZcashIronwoodBitGoPsbt.js");
39
41
  Object.defineProperty(exports, "ZcashIronwoodBitGoPsbt", { enumerable: true, get: function () { return ZcashIronwoodBitGoPsbt_js_1.ZcashIronwoodBitGoPsbt; } });
@@ -13,6 +13,7 @@ export { ECPair } from "./ecpair.js";
13
13
  export { BIP32 } from "./bip32.js";
14
14
  export { Dimensions } from "./fixedScriptWallet/Dimensions.js";
15
15
  export { ZcashDimensions } from "./fixedScriptWallet/ZcashDimensions.js";
16
+ export { ZcashBitGoPsbt, ZcashPsbt, ZcashIronwoodBitGoPsbt, type ZcashPsbtInstance, type ZcashTransactionVersion, ZcashUnifiedAddress, ZcashV6Transaction, ZcashIronwoodWitness, } from "./fixedScriptWallet/index.js";
16
17
  export type WasmUtxoVersionInfo = {
17
18
  version: string;
18
19
  gitHash: string;
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.hasPsbtMagic = exports.ZcashTransaction = exports.Transaction = exports.DashTransaction = exports.Psbt = exports.Miniscript = exports.Descriptor = exports.requiresPrevTxForP2sh = exports.isCoinName = exports.isTestnet = exports.isMainnet = exports.getMainnet = exports.ZcashDimensions = exports.Dimensions = exports.BIP32 = exports.ECPair = exports.ecpair = exports.bip32 = exports.descriptorWallet = exports.fixedScriptWallet = exports.utxolibCompat = exports.message = exports.inscriptions = exports.bip322 = exports.ast = exports.zcashAddress = exports.address = void 0;
36
+ exports.hasPsbtMagic = exports.ZcashTransaction = exports.Transaction = exports.DashTransaction = exports.Psbt = exports.Miniscript = exports.Descriptor = exports.requiresPrevTxForP2sh = exports.isCoinName = exports.isTestnet = exports.isMainnet = exports.getMainnet = exports.ZcashIronwoodWitness = exports.ZcashV6Transaction = exports.ZcashUnifiedAddress = exports.ZcashIronwoodBitGoPsbt = exports.ZcashPsbt = exports.ZcashBitGoPsbt = exports.ZcashDimensions = exports.Dimensions = exports.BIP32 = exports.ECPair = exports.ecpair = exports.bip32 = exports.descriptorWallet = exports.fixedScriptWallet = exports.utxolibCompat = exports.message = exports.inscriptions = exports.bip322 = exports.ast = exports.zcashAddress = exports.address = void 0;
37
37
  exports.getWasmUtxoVersion = getWasmUtxoVersion;
38
38
  exports.isWasmUtxoError = isWasmUtxoError;
39
39
  const wasm = __importStar(require("./wasm/wasm_utxo.js"));
@@ -63,6 +63,13 @@ var Dimensions_js_1 = require("./fixedScriptWallet/Dimensions.js");
63
63
  Object.defineProperty(exports, "Dimensions", { enumerable: true, get: function () { return Dimensions_js_1.Dimensions; } });
64
64
  var ZcashDimensions_js_1 = require("./fixedScriptWallet/ZcashDimensions.js");
65
65
  Object.defineProperty(exports, "ZcashDimensions", { enumerable: true, get: function () { return ZcashDimensions_js_1.ZcashDimensions; } });
66
+ var index_js_1 = require("./fixedScriptWallet/index.js");
67
+ Object.defineProperty(exports, "ZcashBitGoPsbt", { enumerable: true, get: function () { return index_js_1.ZcashBitGoPsbt; } });
68
+ Object.defineProperty(exports, "ZcashPsbt", { enumerable: true, get: function () { return index_js_1.ZcashPsbt; } });
69
+ Object.defineProperty(exports, "ZcashIronwoodBitGoPsbt", { enumerable: true, get: function () { return index_js_1.ZcashIronwoodBitGoPsbt; } });
70
+ Object.defineProperty(exports, "ZcashUnifiedAddress", { enumerable: true, get: function () { return index_js_1.ZcashUnifiedAddress; } });
71
+ Object.defineProperty(exports, "ZcashV6Transaction", { enumerable: true, get: function () { return index_js_1.ZcashV6Transaction; } });
72
+ Object.defineProperty(exports, "ZcashIronwoodWitness", { enumerable: true, get: function () { return index_js_1.ZcashIronwoodWitness; } });
66
73
  function getWasmUtxoVersion() {
67
74
  return wasm_utxo_js_1.WasmUtxoNamespace.get_wasm_utxo_version();
68
75
  }
Binary file
@@ -1,174 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
5
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
6
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
7
- export const wrapdescriptor_descType: (a: number, b: number) => void;
8
- export const wrapdescriptor_encode: (a: number, b: number) => void;
9
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
10
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
11
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
12
- export const wrapdescriptor_hasWildcard: (a: number) => number;
13
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
14
- export const wrapdescriptor_node: (a: number, b: number) => void;
15
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
16
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
17
- export const wrapdescriptor_toString: (a: number, b: number) => void;
18
- export const wrapminiscript_encode: (a: number, b: number) => void;
19
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
20
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
21
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
22
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
23
- export const wrapminiscript_node: (a: number, b: number) => void;
24
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
25
- export const wrapminiscript_toString: (a: number, b: number) => void;
26
- export const __wbg_addressnamespace_free: (a: number, b: number) => void;
27
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
28
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
29
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
30
- export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
31
- export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
32
- export const isInspectEnabled: () => number;
33
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
34
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
35
- export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
36
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
37
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
38
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
39
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
40
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
41
- export const wasmecpair_private_key: (a: number) => number;
42
- export const wasmecpair_public_key: (a: number) => number;
43
- export const wasmecpair_to_wif: (a: number, b: number) => void;
44
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
45
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
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;
49
- export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
50
- export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
51
- export const __wbg_ironwoodwitness_free: (a: number, b: number) => void;
52
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
53
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
54
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
55
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
56
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
57
- export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
58
- export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
59
- export const ironwood_build_witness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
60
- export const ironwoodwitness_auth_path: (a: number, b: number) => void;
61
- export const ironwoodwitness_position: (a: number) => number;
62
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
63
- export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
64
- export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
65
- export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
66
- export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
67
- export const wasmdashtransaction_input_count: (a: number) => number;
68
- export const wasmdashtransaction_lock_time: (a: number) => number;
69
- export const wasmdashtransaction_output_count: (a: number) => number;
70
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
71
- export const wasmdashtransaction_version: (a: number) => number;
72
- export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
73
- export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
74
- export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
75
- export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
76
- export const wasmtransaction_create: () => number;
77
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
78
- export const wasmtransaction_get_inputs: (a: number, b: number) => void;
79
- export const wasmtransaction_get_outputs: (a: number, b: number) => void;
80
- export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
81
- export const wasmtransaction_get_txid: (a: number, b: number) => void;
82
- export const wasmtransaction_get_vsize: (a: number) => number;
83
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
84
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
85
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
86
- export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
87
- export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
88
- export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
89
- export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
90
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
91
- export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
92
- 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;
93
- export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
94
- export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
95
- export const wrappsbt_add_sha256_preimage: (a: number, b: number, c: number, d: number, e: number) => void;
96
- export const wrappsbt_clone: (a: number) => number;
97
- export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
98
- export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
99
- export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
100
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
101
- export const wrappsbt_extract_transaction: (a: number, b: number) => void;
102
- export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
103
- export const wrappsbt_finalize_input: (a: number, b: number, c: number) => void;
104
- export const wrappsbt_finalize_mut: (a: number, b: number) => void;
105
- export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
106
- export const wrappsbt_get_global_xpubs: (a: number) => number;
107
- export const wrappsbt_get_input_key_values: (a: number, b: number, c: number) => void;
108
- export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
109
- export const wrappsbt_get_inputs: (a: number, b: number) => void;
110
- export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
111
- export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
112
- export const wrappsbt_get_outputs: (a: number, b: number) => void;
113
- export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
114
- export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
115
- export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
116
- export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
117
- export const wrappsbt_input_count: (a: number) => number;
118
- export const wrappsbt_new: (a: number, b: number) => number;
119
- export const wrappsbt_output_count: (a: number) => number;
120
- export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
121
- export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
122
- export const wrappsbt_serialize: (a: number, b: number) => void;
123
- export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
124
- export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
125
- export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
126
- export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
127
- export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
128
- export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
129
- export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
130
- export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
131
- export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
132
- export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
133
- export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
134
- export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
135
- export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
136
- export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
137
- export const zcashHasOrchardReceiver: (a: number, b: number, c: number, d: number) => number;
138
- export const zcashHasTransparentReceiver: (a: number, b: number, c: number, d: number) => number;
139
- export const zcashToShieldedReceiverWithCoin: (a: number, b: number, c: number, d: number, e: number) => void;
140
- export const zcashToTransparentReceiverWithCoin: (a: number, b: number, c: number, d: number, e: number) => void;
141
- export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
142
- export const zcash_ironwood_version_group_id: () => number;
143
- export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
144
- export const zcashunifiedaddress_encodeOrchardReceiver: (a: number, b: number, c: number, d: number, e: number) => void;
145
- export const zcashunifiedaddress_hasOrchardReceiver: (a: number) => number;
146
- export const zcashunifiedaddress_hasTransparentReceiver: (a: number) => number;
147
- export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
148
- export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
149
- export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
150
- export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
151
- export const zcashv6transaction_consensusBranchId: (a: number) => number;
152
- export const zcashv6transaction_expiryHeight: (a: number) => number;
153
- export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
154
- export const zcashv6transaction_getId: (a: number, b: number) => void;
155
- export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
156
- export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
157
- export const zcashv6transaction_ironwoodFlags: (a: number) => number;
158
- export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
159
- export const zcashv6transaction_toBytes: (a: number, b: number) => void;
160
- export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
161
- export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
162
- export const wasmtransaction_input_count: (a: number) => number;
163
- export const wasmtransaction_output_count: (a: number) => number;
164
- export const wasmzcashtransaction_input_count: (a: number) => number;
165
- export const wasmzcashtransaction_output_count: (a: number) => number;
166
- export const wasmtransaction_lock_time: (a: number) => number;
167
- export const wasmtransaction_version: (a: number) => number;
168
- export const wasmzcashtransaction_lock_time: (a: number) => number;
169
- export const wasmzcashtransaction_version: (a: number) => number;
170
- export const wrappsbt_lock_time: (a: number) => number;
171
- export const wrappsbt_version: (a: number) => number;
172
4
  export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
173
5
  export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
174
6
  export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
@@ -188,19 +20,6 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
188
20
  export const wasmdimensions_has_segwit: (a: number) => number;
189
21
  export const wasmdimensions_plus: (a: number, b: number) => number;
190
22
  export const wasmdimensions_times: (a: number, b: number) => number;
191
- export const __wbg_bip322namespace_free: (a: number, b: number) => void;
192
- export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
193
- 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;
194
- export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
195
- 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;
196
- 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;
197
- 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;
198
- 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;
199
- export const wasmrootwalletkeys_backup_key: (a: number) => number;
200
- export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
201
- export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
202
- export const wasmrootwalletkeys_user_key: (a: number) => number;
203
- 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;
204
23
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
205
24
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
206
25
  export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
@@ -330,6 +149,187 @@ export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
330
149
  export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
331
150
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
332
151
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
152
+ export const __wbg_addressnamespace_free: (a: number, b: number) => void;
153
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
154
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
155
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
156
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
157
+ export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
158
+ export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
159
+ export const isInspectEnabled: () => number;
160
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
161
+ export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
162
+ export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
163
+ export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
164
+ export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
165
+ export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
166
+ export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
167
+ export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
168
+ export const wasmecpair_private_key: (a: number) => number;
169
+ export const wasmecpair_public_key: (a: number) => number;
170
+ export const wasmecpair_to_wif: (a: number, b: number) => void;
171
+ export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
172
+ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
173
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
174
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
175
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
176
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
177
+ export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
178
+ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
179
+ export const __wbg_bip322namespace_free: (a: number, b: number) => void;
180
+ export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
181
+ 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;
182
+ export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
183
+ 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;
184
+ 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;
185
+ 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;
186
+ 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;
187
+ export const wasmrootwalletkeys_backup_key: (a: number) => number;
188
+ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
189
+ export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
190
+ export const wasmrootwalletkeys_user_key: (a: number) => number;
191
+ 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;
192
+ export const __wbg_ironwoodwitness_free: (a: number, b: number) => void;
193
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
194
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
195
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
196
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
197
+ export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
198
+ export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
199
+ export const ironwood_build_witness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
200
+ export const ironwoodwitness_auth_path: (a: number, b: number) => void;
201
+ export const ironwoodwitness_position: (a: number) => number;
202
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
203
+ export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
204
+ export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
205
+ export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
206
+ export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
207
+ export const wasmdashtransaction_input_count: (a: number) => number;
208
+ export const wasmdashtransaction_lock_time: (a: number) => number;
209
+ export const wasmdashtransaction_output_count: (a: number) => number;
210
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
211
+ export const wasmdashtransaction_version: (a: number) => number;
212
+ export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
213
+ export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
214
+ export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
215
+ export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
216
+ export const wasmtransaction_create: () => number;
217
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
218
+ export const wasmtransaction_get_inputs: (a: number, b: number) => void;
219
+ export const wasmtransaction_get_outputs: (a: number, b: number) => void;
220
+ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
221
+ export const wasmtransaction_get_txid: (a: number, b: number) => void;
222
+ export const wasmtransaction_get_vsize: (a: number) => number;
223
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
224
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
225
+ export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
226
+ export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
227
+ export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
228
+ export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
229
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
230
+ export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
231
+ 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;
232
+ export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
233
+ export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
234
+ export const wrappsbt_add_sha256_preimage: (a: number, b: number, c: number, d: number, e: number) => void;
235
+ export const wrappsbt_clone: (a: number) => number;
236
+ export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
237
+ export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
238
+ export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
239
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
240
+ export const wrappsbt_extract_transaction: (a: number, b: number) => void;
241
+ export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
242
+ export const wrappsbt_finalize_input: (a: number, b: number, c: number) => void;
243
+ export const wrappsbt_finalize_mut: (a: number, b: number) => void;
244
+ export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
245
+ export const wrappsbt_get_global_xpubs: (a: number) => number;
246
+ export const wrappsbt_get_input_key_values: (a: number, b: number, c: number) => void;
247
+ export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
248
+ export const wrappsbt_get_inputs: (a: number, b: number) => void;
249
+ export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
250
+ export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
251
+ export const wrappsbt_get_outputs: (a: number, b: number) => void;
252
+ export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
253
+ export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
254
+ export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
255
+ export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
256
+ export const wrappsbt_input_count: (a: number) => number;
257
+ export const wrappsbt_new: (a: number, b: number) => number;
258
+ export const wrappsbt_output_count: (a: number) => number;
259
+ export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
260
+ export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
261
+ export const wrappsbt_serialize: (a: number, b: number) => void;
262
+ export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
263
+ export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
264
+ export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
265
+ export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
266
+ export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
267
+ export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
268
+ export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
269
+ export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
270
+ export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
271
+ export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
272
+ export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
273
+ export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
274
+ export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
275
+ export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
276
+ export const zcashHasOrchardReceiver: (a: number, b: number, c: number, d: number) => number;
277
+ export const zcashHasTransparentReceiver: (a: number, b: number, c: number, d: number) => number;
278
+ export const zcashToShieldedReceiverWithCoin: (a: number, b: number, c: number, d: number, e: number) => void;
279
+ export const zcashToTransparentReceiverWithCoin: (a: number, b: number, c: number, d: number, e: number) => void;
280
+ export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
281
+ export const zcash_ironwood_version_group_id: () => number;
282
+ export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
283
+ export const zcashunifiedaddress_encodeOrchardReceiver: (a: number, b: number, c: number, d: number, e: number) => void;
284
+ export const zcashunifiedaddress_hasOrchardReceiver: (a: number) => number;
285
+ export const zcashunifiedaddress_hasTransparentReceiver: (a: number) => number;
286
+ export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
287
+ export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
288
+ export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
289
+ export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
290
+ export const zcashv6transaction_consensusBranchId: (a: number) => number;
291
+ export const zcashv6transaction_expiryHeight: (a: number) => number;
292
+ export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
293
+ export const zcashv6transaction_getId: (a: number, b: number) => void;
294
+ export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
295
+ export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
296
+ export const zcashv6transaction_ironwoodFlags: (a: number) => number;
297
+ export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
298
+ export const zcashv6transaction_toBytes: (a: number, b: number) => void;
299
+ export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: 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 wasmtransaction_lock_time: (a: number) => number;
306
+ export const wasmtransaction_version: (a: number) => number;
307
+ export const wasmzcashtransaction_lock_time: (a: number) => number;
308
+ export const wasmzcashtransaction_version: (a: number) => number;
309
+ export const wrappsbt_lock_time: (a: number) => number;
310
+ export const wrappsbt_version: (a: number) => number;
311
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
312
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
313
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
314
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
315
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
316
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
317
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
318
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
319
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
320
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
321
+ export const wrapdescriptor_node: (a: number, b: number) => void;
322
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
323
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
324
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
325
+ export const wrapminiscript_encode: (a: number, b: number) => void;
326
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
327
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
328
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
329
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
330
+ export const wrapminiscript_node: (a: number, b: number) => void;
331
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
332
+ export const wrapminiscript_toString: (a: number, b: number) => void;
333
333
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
334
334
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
335
335
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
@@ -1,3 +1,4 @@
1
+ import { BitGoPsbt as WasmBitGoPsbt } from "../wasm/wasm_utxo.js";
1
2
  import { type WalletKeysArg } from "./RootWalletKeys.js";
2
3
  import { BitGoPsbt, type CreateEmptyOptions, type HydrationUnspent, type ParsedOutput } from "./BitGoPsbt.js";
3
4
  import { ZcashTransaction, type ITransaction } from "../transaction.js";
@@ -15,6 +16,8 @@ export type ZcashParsedOutput = ParsedOutput & {
15
16
  */
16
17
  isShielded: boolean;
17
18
  };
19
+ /** Zcash transaction versions supported by the fixed-script PSBT API. */
20
+ export type ZcashTransactionVersion = 4 | 6;
18
21
  /**
19
22
  * Zcash v6 (Ironwood) version group id (0xd884b698). Its presence marks a PSBT as v6 — see
20
23
  * `ZcashIronwoodBitGoPsbt`.
@@ -124,6 +127,8 @@ export declare class ZcashBitGoPsbt extends BitGoPsbt<ZcashParsedOutput> {
124
127
  * @returns A ZcashBitGoPsbt instance
125
128
  */
126
129
  static fromBytes(bytes: Uint8Array, network: ZcashNetworkName): ZcashBitGoPsbt;
130
+ /** @internal Create from a parsed WASM instance without reparsing the bytes. */
131
+ static fromWasm(wasm: WasmBitGoPsbt): ZcashBitGoPsbt;
127
132
  /**
128
133
  * Reconstruct a Zcash PSBT from a network-format transaction (unsigned, half-signed, or fully-signed).
129
134
  *
@@ -173,6 +178,13 @@ export declare class ZcashBitGoPsbt extends BitGoPsbt<ZcashParsedOutput> {
173
178
  * @returns The version group ID (e.g., 0x892F2085 for Sapling)
174
179
  */
175
180
  get versionGroupId(): number;
181
+ /**
182
+ * Get the Zcash transaction version represented by this PSBT.
183
+ *
184
+ * The version group ID is the discriminator because the v4 and v6 PSBT encodings do not expose
185
+ * the same unsigned transaction bytes to a standard PSBT parser.
186
+ */
187
+ getVersion(): ZcashTransactionVersion;
176
188
  /**
177
189
  * Get the Zcash expiry height
178
190
  * @returns The expiry height (0 if not set)
@@ -108,6 +108,10 @@ export class ZcashBitGoPsbt extends BitGoPsbt {
108
108
  }
109
109
  return psbt;
110
110
  }
111
+ /** @internal Create from a parsed WASM instance without reparsing the bytes. */
112
+ static fromWasm(wasm) {
113
+ return new ZcashBitGoPsbt(wasm);
114
+ }
111
115
  /**
112
116
  * Reconstruct a Zcash PSBT from a network-format transaction (unsigned, half-signed, or fully-signed).
113
117
  *
@@ -178,6 +182,15 @@ export class ZcashBitGoPsbt extends BitGoPsbt {
178
182
  get versionGroupId() {
179
183
  return this.wasm.version_group_id();
180
184
  }
185
+ /**
186
+ * Get the Zcash transaction version represented by this PSBT.
187
+ *
188
+ * The version group ID is the discriminator because the v4 and v6 PSBT encodings do not expose
189
+ * the same unsigned transaction bytes to a standard PSBT parser.
190
+ */
191
+ getVersion() {
192
+ return this.versionGroupId === IRONWOOD_VERSION_GROUP_ID ? 6 : 4;
193
+ }
181
194
  /**
182
195
  * Get the Zcash expiry height
183
196
  * @returns The expiry height (0 if not set)
@@ -1,3 +1,4 @@
1
+ import { BitGoPsbt as WasmBitGoPsbt } from "../wasm/wasm_utxo.js";
1
2
  import { type BIP32Arg } from "../bip32.js";
2
3
  import { type ECPairArg } from "../ecpair.js";
3
4
  import { type WalletKeysArg } from "./RootWalletKeys.js";
@@ -122,6 +123,8 @@ export declare class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
122
123
  * @returns A ZcashIronwoodBitGoPsbt instance
123
124
  */
124
125
  static fromBytes(bytes: Uint8Array, network: ZcashNetworkName): ZcashIronwoodBitGoPsbt;
126
+ /** @internal Create from a parsed WASM instance without reparsing the bytes. */
127
+ static fromWasm(wasm: WasmBitGoPsbt): ZcashIronwoodBitGoPsbt;
125
128
  /**
126
129
  * Add the shielded output (Constructor role). Stores the orchard PCZT in the PSBT.
127
130
  *
@@ -117,6 +117,10 @@ export class ZcashIronwoodBitGoPsbt extends ZcashBitGoPsbt {
117
117
  }
118
118
  return psbt;
119
119
  }
120
+ /** @internal Create from a parsed WASM instance without reparsing the bytes. */
121
+ static fromWasm(wasm) {
122
+ return new ZcashIronwoodBitGoPsbt(wasm);
123
+ }
120
124
  /**
121
125
  * Add the shielded output (Constructor role). Stores the orchard PCZT in the PSBT.
122
126
  *
@@ -0,0 +1,15 @@
1
+ import { ZcashBitGoPsbt, type ZcashNetworkName } from "./ZcashBitGoPsbt.js";
2
+ import { ZcashIronwoodBitGoPsbt } from "./ZcashIronwoodBitGoPsbt.js";
3
+ export type ZcashPsbtInstance = ZcashBitGoPsbt | ZcashIronwoodBitGoPsbt;
4
+ /** Factory for deserializing either supported Zcash PSBT format. */
5
+ export declare class ZcashPsbt {
6
+ private constructor();
7
+ /**
8
+ * Deserialize a Zcash PSBT and return the format-specific implementation.
9
+ *
10
+ * The version is read from the parsed Zcash metadata, so callers do not need to run a separate
11
+ * byte-level detector or choose a concrete parser before deserializing.
12
+ */
13
+ static from(bytes: Uint8Array, network: ZcashNetworkName): ZcashPsbtInstance;
14
+ static fromBytes(bytes: Uint8Array, network: ZcashNetworkName): ZcashPsbtInstance;
15
+ }
@@ -0,0 +1,20 @@
1
+ import { BitGoPsbt as WasmBitGoPsbt } from "../wasm/wasm_utxo.js";
2
+ import { ZcashBitGoPsbt } from "./ZcashBitGoPsbt.js";
3
+ import { ZcashIronwoodBitGoPsbt } from "./ZcashIronwoodBitGoPsbt.js";
4
+ /** Factory for deserializing either supported Zcash PSBT format. */
5
+ export class ZcashPsbt {
6
+ constructor() { }
7
+ /**
8
+ * Deserialize a Zcash PSBT and return the format-specific implementation.
9
+ *
10
+ * The version is read from the parsed Zcash metadata, so callers do not need to run a separate
11
+ * byte-level detector or choose a concrete parser before deserializing.
12
+ */
13
+ static from(bytes, network) {
14
+ const parsed = ZcashBitGoPsbt.fromWasm(WasmBitGoPsbt.from_bytes(bytes, network));
15
+ return parsed.getVersion() === 6 ? ZcashIronwoodBitGoPsbt.fromWasm(parsed.wasm) : parsed;
16
+ }
17
+ static fromBytes(bytes, network) {
18
+ return ZcashPsbt.from(bytes, network);
19
+ }
20
+ }
@@ -8,7 +8,8 @@ export { ChainCode, chainCodes, assertChainCode, type Scope } from "./chains.js"
8
8
  export { requiresPrevTxForP2sh } from "./prevTx.js";
9
9
  export { BitGoPsbt, getWalletKeysFromPsbt, type NetworkName, type ScriptId, type ParsedInput, type ParsedOutput, type ParsedTransaction, type SignPath, type CreateEmptyOptions, type AddInputOptions, type AddOutputOptions, type AddWalletInputOptions, type AddWalletOutputOptions, type ParseTransactionOptions, type ParseOutputsOptions, type HydrationUnspent, } from "./BitGoPsbt.js";
10
10
  export { BitGoKeySubtype, type PsbtKvKey } from "./BitGoKeySubtype.js";
11
- export { ZcashBitGoPsbt, type ZcashNetworkName, type ZcashParsedOutput, type CreateEmptyZcashOptions, IRONWOOD_VERSION_GROUP_ID, } from "./ZcashBitGoPsbt.js";
11
+ export { ZcashBitGoPsbt, type ZcashNetworkName, type ZcashParsedOutput, type ZcashTransactionVersion, type CreateEmptyZcashOptions, IRONWOOD_VERSION_GROUP_ID, } from "./ZcashBitGoPsbt.js";
12
+ export { ZcashPsbt, type ZcashPsbtInstance } from "./ZcashPsbt.js";
12
13
  export { ZcashIronwoodBitGoPsbt, zip302NoMemo, type CreateEmptyIronwoodOptions, type CreateEmptyIronwoodWithConsensusBranchIdOptions, } from "./ZcashIronwoodBitGoPsbt.js";
13
14
  export { ZcashUnifiedAddress } from "./ZcashUnifiedAddress.js";
14
15
  export { ZcashV6Transaction } from "./ZcashV6Transaction.js";
@@ -12,6 +12,7 @@ export { BitGoPsbt, getWalletKeysFromPsbt, } from "./BitGoPsbt.js";
12
12
  export { BitGoKeySubtype } from "./BitGoKeySubtype.js";
13
13
  // Zcash-specific PSBT subclass
14
14
  export { ZcashBitGoPsbt, IRONWOOD_VERSION_GROUP_ID, } from "./ZcashBitGoPsbt.js";
15
+ export { ZcashPsbt } from "./ZcashPsbt.js";
15
16
  // Zcash v6 (Ironwood / NU6.3) shielding PSBT
16
17
  export { ZcashIronwoodBitGoPsbt, zip302NoMemo, } from "./ZcashIronwoodBitGoPsbt.js";
17
18
  // Zcash ZIP-316 Unified Address
@@ -13,6 +13,7 @@ export { ECPair } from "./ecpair.js";
13
13
  export { BIP32 } from "./bip32.js";
14
14
  export { Dimensions } from "./fixedScriptWallet/Dimensions.js";
15
15
  export { ZcashDimensions } from "./fixedScriptWallet/ZcashDimensions.js";
16
+ export { ZcashBitGoPsbt, ZcashPsbt, ZcashIronwoodBitGoPsbt, type ZcashPsbtInstance, type ZcashTransactionVersion, ZcashUnifiedAddress, ZcashV6Transaction, ZcashIronwoodWitness, } from "./fixedScriptWallet/index.js";
16
17
  export type WasmUtxoVersionInfo = {
17
18
  version: string;
18
19
  gitHash: string;
@@ -21,6 +21,7 @@ export { ECPair } from "./ecpair.js";
21
21
  export { BIP32 } from "./bip32.js";
22
22
  export { Dimensions } from "./fixedScriptWallet/Dimensions.js";
23
23
  export { ZcashDimensions } from "./fixedScriptWallet/ZcashDimensions.js";
24
+ export { ZcashBitGoPsbt, ZcashPsbt, ZcashIronwoodBitGoPsbt, ZcashUnifiedAddress, ZcashV6Transaction, ZcashIronwoodWitness, } from "./fixedScriptWallet/index.js";
24
25
  export function getWasmUtxoVersion() {
25
26
  return WasmUtxoNamespace.get_wasm_utxo_version();
26
27
  }
Binary file
@@ -1,174 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
5
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
6
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
7
- export const wrapdescriptor_descType: (a: number, b: number) => void;
8
- export const wrapdescriptor_encode: (a: number, b: number) => void;
9
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
10
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
11
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
12
- export const wrapdescriptor_hasWildcard: (a: number) => number;
13
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
14
- export const wrapdescriptor_node: (a: number, b: number) => void;
15
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
16
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
17
- export const wrapdescriptor_toString: (a: number, b: number) => void;
18
- export const wrapminiscript_encode: (a: number, b: number) => void;
19
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
20
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
21
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
22
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
23
- export const wrapminiscript_node: (a: number, b: number) => void;
24
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
25
- export const wrapminiscript_toString: (a: number, b: number) => void;
26
- export const __wbg_addressnamespace_free: (a: number, b: number) => void;
27
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
28
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
29
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
30
- export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
31
- export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
32
- export const isInspectEnabled: () => number;
33
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
34
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
35
- export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
36
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
37
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
38
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
39
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
40
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
41
- export const wasmecpair_private_key: (a: number) => number;
42
- export const wasmecpair_public_key: (a: number) => number;
43
- export const wasmecpair_to_wif: (a: number, b: number) => void;
44
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
45
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
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;
49
- export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
50
- export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
51
- export const __wbg_ironwoodwitness_free: (a: number, b: number) => void;
52
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
53
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
54
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
55
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
56
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
57
- export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
58
- export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
59
- export const ironwood_build_witness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
60
- export const ironwoodwitness_auth_path: (a: number, b: number) => void;
61
- export const ironwoodwitness_position: (a: number) => number;
62
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
63
- export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
64
- export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
65
- export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
66
- export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
67
- export const wasmdashtransaction_input_count: (a: number) => number;
68
- export const wasmdashtransaction_lock_time: (a: number) => number;
69
- export const wasmdashtransaction_output_count: (a: number) => number;
70
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
71
- export const wasmdashtransaction_version: (a: number) => number;
72
- export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
73
- export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
74
- export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
75
- export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
76
- export const wasmtransaction_create: () => number;
77
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
78
- export const wasmtransaction_get_inputs: (a: number, b: number) => void;
79
- export const wasmtransaction_get_outputs: (a: number, b: number) => void;
80
- export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
81
- export const wasmtransaction_get_txid: (a: number, b: number) => void;
82
- export const wasmtransaction_get_vsize: (a: number) => number;
83
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
84
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
85
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
86
- export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
87
- export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
88
- export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
89
- export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
90
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
91
- export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
92
- 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;
93
- export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
94
- export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
95
- export const wrappsbt_add_sha256_preimage: (a: number, b: number, c: number, d: number, e: number) => void;
96
- export const wrappsbt_clone: (a: number) => number;
97
- export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
98
- export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
99
- export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
100
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
101
- export const wrappsbt_extract_transaction: (a: number, b: number) => void;
102
- export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
103
- export const wrappsbt_finalize_input: (a: number, b: number, c: number) => void;
104
- export const wrappsbt_finalize_mut: (a: number, b: number) => void;
105
- export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
106
- export const wrappsbt_get_global_xpubs: (a: number) => number;
107
- export const wrappsbt_get_input_key_values: (a: number, b: number, c: number) => void;
108
- export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
109
- export const wrappsbt_get_inputs: (a: number, b: number) => void;
110
- export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
111
- export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
112
- export const wrappsbt_get_outputs: (a: number, b: number) => void;
113
- export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
114
- export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
115
- export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
116
- export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
117
- export const wrappsbt_input_count: (a: number) => number;
118
- export const wrappsbt_new: (a: number, b: number) => number;
119
- export const wrappsbt_output_count: (a: number) => number;
120
- export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
121
- export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
122
- export const wrappsbt_serialize: (a: number, b: number) => void;
123
- export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
124
- export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
125
- export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
126
- export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
127
- export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
128
- export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
129
- export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
130
- export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
131
- export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
132
- export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
133
- export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
134
- export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
135
- export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
136
- export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
137
- export const zcashHasOrchardReceiver: (a: number, b: number, c: number, d: number) => number;
138
- export const zcashHasTransparentReceiver: (a: number, b: number, c: number, d: number) => number;
139
- export const zcashToShieldedReceiverWithCoin: (a: number, b: number, c: number, d: number, e: number) => void;
140
- export const zcashToTransparentReceiverWithCoin: (a: number, b: number, c: number, d: number, e: number) => void;
141
- export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
142
- export const zcash_ironwood_version_group_id: () => number;
143
- export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
144
- export const zcashunifiedaddress_encodeOrchardReceiver: (a: number, b: number, c: number, d: number, e: number) => void;
145
- export const zcashunifiedaddress_hasOrchardReceiver: (a: number) => number;
146
- export const zcashunifiedaddress_hasTransparentReceiver: (a: number) => number;
147
- export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
148
- export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
149
- export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
150
- export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
151
- export const zcashv6transaction_consensusBranchId: (a: number) => number;
152
- export const zcashv6transaction_expiryHeight: (a: number) => number;
153
- export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
154
- export const zcashv6transaction_getId: (a: number, b: number) => void;
155
- export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
156
- export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
157
- export const zcashv6transaction_ironwoodFlags: (a: number) => number;
158
- export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
159
- export const zcashv6transaction_toBytes: (a: number, b: number) => void;
160
- export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
161
- export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
162
- export const wasmtransaction_input_count: (a: number) => number;
163
- export const wasmtransaction_output_count: (a: number) => number;
164
- export const wasmzcashtransaction_input_count: (a: number) => number;
165
- export const wasmzcashtransaction_output_count: (a: number) => number;
166
- export const wasmtransaction_lock_time: (a: number) => number;
167
- export const wasmtransaction_version: (a: number) => number;
168
- export const wasmzcashtransaction_lock_time: (a: number) => number;
169
- export const wasmzcashtransaction_version: (a: number) => number;
170
- export const wrappsbt_lock_time: (a: number) => number;
171
- export const wrappsbt_version: (a: number) => number;
172
4
  export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
173
5
  export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
174
6
  export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
@@ -188,19 +20,6 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
188
20
  export const wasmdimensions_has_segwit: (a: number) => number;
189
21
  export const wasmdimensions_plus: (a: number, b: number) => number;
190
22
  export const wasmdimensions_times: (a: number, b: number) => number;
191
- export const __wbg_bip322namespace_free: (a: number, b: number) => void;
192
- export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
193
- 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;
194
- export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
195
- 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;
196
- 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;
197
- 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;
198
- 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;
199
- export const wasmrootwalletkeys_backup_key: (a: number) => number;
200
- export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
201
- export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
202
- export const wasmrootwalletkeys_user_key: (a: number) => number;
203
- 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;
204
23
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
205
24
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
206
25
  export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
@@ -330,6 +149,187 @@ export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
330
149
  export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
331
150
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
332
151
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
152
+ export const __wbg_addressnamespace_free: (a: number, b: number) => void;
153
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
154
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
155
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
156
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
157
+ export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
158
+ export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
159
+ export const isInspectEnabled: () => number;
160
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
161
+ export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
162
+ export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
163
+ export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
164
+ export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
165
+ export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
166
+ export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
167
+ export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
168
+ export const wasmecpair_private_key: (a: number) => number;
169
+ export const wasmecpair_public_key: (a: number) => number;
170
+ export const wasmecpair_to_wif: (a: number, b: number) => void;
171
+ export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
172
+ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
173
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
174
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
175
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
176
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
177
+ export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
178
+ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
179
+ export const __wbg_bip322namespace_free: (a: number, b: number) => void;
180
+ export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
181
+ 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;
182
+ export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
183
+ 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;
184
+ 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;
185
+ 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;
186
+ 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;
187
+ export const wasmrootwalletkeys_backup_key: (a: number) => number;
188
+ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
189
+ export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
190
+ export const wasmrootwalletkeys_user_key: (a: number) => number;
191
+ 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;
192
+ export const __wbg_ironwoodwitness_free: (a: number, b: number) => void;
193
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
194
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
195
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
196
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
197
+ export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
198
+ export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
199
+ export const ironwood_build_witness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
200
+ export const ironwoodwitness_auth_path: (a: number, b: number) => void;
201
+ export const ironwoodwitness_position: (a: number) => number;
202
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
203
+ export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
204
+ export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
205
+ export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
206
+ export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
207
+ export const wasmdashtransaction_input_count: (a: number) => number;
208
+ export const wasmdashtransaction_lock_time: (a: number) => number;
209
+ export const wasmdashtransaction_output_count: (a: number) => number;
210
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
211
+ export const wasmdashtransaction_version: (a: number) => number;
212
+ export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
213
+ export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
214
+ export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
215
+ export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
216
+ export const wasmtransaction_create: () => number;
217
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
218
+ export const wasmtransaction_get_inputs: (a: number, b: number) => void;
219
+ export const wasmtransaction_get_outputs: (a: number, b: number) => void;
220
+ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
221
+ export const wasmtransaction_get_txid: (a: number, b: number) => void;
222
+ export const wasmtransaction_get_vsize: (a: number) => number;
223
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
224
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
225
+ export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
226
+ export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
227
+ export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
228
+ export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
229
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
230
+ export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
231
+ 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;
232
+ export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
233
+ export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
234
+ export const wrappsbt_add_sha256_preimage: (a: number, b: number, c: number, d: number, e: number) => void;
235
+ export const wrappsbt_clone: (a: number) => number;
236
+ export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
237
+ export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
238
+ export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
239
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
240
+ export const wrappsbt_extract_transaction: (a: number, b: number) => void;
241
+ export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
242
+ export const wrappsbt_finalize_input: (a: number, b: number, c: number) => void;
243
+ export const wrappsbt_finalize_mut: (a: number, b: number) => void;
244
+ export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
245
+ export const wrappsbt_get_global_xpubs: (a: number) => number;
246
+ export const wrappsbt_get_input_key_values: (a: number, b: number, c: number) => void;
247
+ export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
248
+ export const wrappsbt_get_inputs: (a: number, b: number) => void;
249
+ export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
250
+ export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
251
+ export const wrappsbt_get_outputs: (a: number, b: number) => void;
252
+ export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
253
+ export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
254
+ export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
255
+ export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
256
+ export const wrappsbt_input_count: (a: number) => number;
257
+ export const wrappsbt_new: (a: number, b: number) => number;
258
+ export const wrappsbt_output_count: (a: number) => number;
259
+ export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
260
+ export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
261
+ export const wrappsbt_serialize: (a: number, b: number) => void;
262
+ export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
263
+ export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
264
+ export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
265
+ export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
266
+ export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
267
+ export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
268
+ export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
269
+ export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
270
+ export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
271
+ export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
272
+ export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
273
+ export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
274
+ export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
275
+ export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
276
+ export const zcashHasOrchardReceiver: (a: number, b: number, c: number, d: number) => number;
277
+ export const zcashHasTransparentReceiver: (a: number, b: number, c: number, d: number) => number;
278
+ export const zcashToShieldedReceiverWithCoin: (a: number, b: number, c: number, d: number, e: number) => void;
279
+ export const zcashToTransparentReceiverWithCoin: (a: number, b: number, c: number, d: number, e: number) => void;
280
+ export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
281
+ export const zcash_ironwood_version_group_id: () => number;
282
+ export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
283
+ export const zcashunifiedaddress_encodeOrchardReceiver: (a: number, b: number, c: number, d: number, e: number) => void;
284
+ export const zcashunifiedaddress_hasOrchardReceiver: (a: number) => number;
285
+ export const zcashunifiedaddress_hasTransparentReceiver: (a: number) => number;
286
+ export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
287
+ export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
288
+ export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
289
+ export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
290
+ export const zcashv6transaction_consensusBranchId: (a: number) => number;
291
+ export const zcashv6transaction_expiryHeight: (a: number) => number;
292
+ export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
293
+ export const zcashv6transaction_getId: (a: number, b: number) => void;
294
+ export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
295
+ export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
296
+ export const zcashv6transaction_ironwoodFlags: (a: number) => number;
297
+ export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
298
+ export const zcashv6transaction_toBytes: (a: number, b: number) => void;
299
+ export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: 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 wasmtransaction_lock_time: (a: number) => number;
306
+ export const wasmtransaction_version: (a: number) => number;
307
+ export const wasmzcashtransaction_lock_time: (a: number) => number;
308
+ export const wasmzcashtransaction_version: (a: number) => number;
309
+ export const wrappsbt_lock_time: (a: number) => number;
310
+ export const wrappsbt_version: (a: number) => number;
311
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
312
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
313
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
314
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
315
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
316
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
317
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
318
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
319
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
320
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
321
+ export const wrapdescriptor_node: (a: number, b: number) => void;
322
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
323
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
324
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
325
+ export const wrapminiscript_encode: (a: number, b: number) => void;
326
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
327
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
328
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
329
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
330
+ export const wrapminiscript_node: (a: number, b: number) => void;
331
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
332
+ export const wrapminiscript_toString: (a: number, b: number) => void;
333
333
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
334
334
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
335
335
  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": "5.1.0",
4
+ "version": "5.2.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",