@bitgo/wasm-utxo 4.26.0 → 4.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,132 +1,35 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_addressnamespace_free: (a: number, b: number) => void;
5
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
6
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
7
- export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
8
- export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
9
- export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
10
- export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
11
- export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
12
- export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
13
- export const __wbg_wrappsbt_free: (a: number, b: number) => void;
14
- export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
15
- export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
16
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
17
- export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
18
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
19
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
20
- export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
21
- export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
22
- export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
23
- export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
24
- export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
25
- export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
26
- export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
27
- export const wasmdashtransaction_input_count: (a: number) => number;
28
- export const wasmdashtransaction_lock_time: (a: number) => number;
29
- export const wasmdashtransaction_output_count: (a: number) => number;
30
- export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
31
- export const wasmdashtransaction_version: (a: number) => number;
32
- export const wasmdimensions_empty: () => number;
33
- export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
34
- export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
35
- export const wasmdimensions_from_output_script_length: (a: number) => number;
36
- export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
37
- export const wasmdimensions_from_psbt: (a: number, b: number) => void;
38
- export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
39
- export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
40
- export const wasmdimensions_get_output_vsize: (a: number) => number;
41
- export const wasmdimensions_get_output_weight: (a: number) => number;
42
- export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
43
- export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
44
- export const wasmdimensions_has_segwit: (a: number) => number;
45
- export const wasmdimensions_plus: (a: number, b: number) => number;
46
- export const wasmdimensions_times: (a: number, b: number) => number;
47
- export const wasmrootwalletkeys_backup_key: (a: number) => number;
48
- export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
49
- export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
50
- export const wasmrootwalletkeys_user_key: (a: number) => number;
51
- export const wasmrootwalletkeys_with_derivation_prefixes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
52
- export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
53
- export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
54
- export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
55
- export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
56
- export const wasmtransaction_create: () => number;
57
- export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
58
- export const wasmtransaction_get_inputs: (a: number, b: number) => void;
59
- export const wasmtransaction_get_outputs: (a: number, b: number) => void;
60
- export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
61
- export const wasmtransaction_get_txid: (a: number, b: number) => void;
62
- export const wasmtransaction_get_vsize: (a: number) => number;
63
- export const wasmtransaction_to_bytes: (a: number, b: number) => void;
64
- export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
65
- export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
66
- export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
67
- export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
68
- export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
69
- export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
70
- export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
71
- export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
72
- export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
73
- export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
74
- export const wrappsbt_clone: (a: number) => number;
75
- export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
76
- export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
77
- export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
78
- export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
79
- export const wrappsbt_extract_transaction: (a: number, b: number) => void;
80
- export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
81
- export const wrappsbt_finalize_mut: (a: number, b: number) => void;
82
- export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
83
- export const wrappsbt_get_global_xpubs: (a: number) => number;
84
- export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
85
- export const wrappsbt_get_inputs: (a: number, b: number) => void;
86
- export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
87
- export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
88
- export const wrappsbt_get_outputs: (a: number, b: number) => void;
89
- export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
90
- export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
91
- export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
92
- export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
93
- export const wrappsbt_input_count: (a: number) => number;
94
- export const wrappsbt_new: (a: number, b: number) => number;
95
- export const wrappsbt_output_count: (a: number) => number;
96
- export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
97
- export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
98
- export const wrappsbt_serialize: (a: number, b: number) => void;
99
- export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
100
- export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
101
- export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
102
- export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
103
- export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
104
- export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
105
- export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
106
- export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
107
- export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
108
- export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
109
- export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
110
- export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
111
- export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
112
- export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
113
- export const wasmtransaction_input_count: (a: number) => number;
114
- export const wasmtransaction_output_count: (a: number) => number;
115
- export const wasmzcashtransaction_input_count: (a: number) => number;
116
- export const wasmzcashtransaction_output_count: (a: number) => number;
117
- export const wasmtransaction_lock_time: (a: number) => number;
118
- export const wasmtransaction_version: (a: number) => number;
119
- export const wasmzcashtransaction_lock_time: (a: number) => number;
120
- export const wasmzcashtransaction_version: (a: number) => number;
121
- export const wrappsbt_lock_time: (a: number) => number;
122
- export const wrappsbt_version: (a: number) => number;
4
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
5
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
6
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
7
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
8
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
9
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
10
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
11
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
12
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
13
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
14
+ export const wrapdescriptor_node: (a: number, b: number) => void;
15
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
16
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
17
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
18
+ export const wrapminiscript_encode: (a: number, b: number) => void;
19
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
20
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
21
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
22
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
23
+ export const wrapminiscript_node: (a: number, b: number) => void;
24
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
25
+ export const wrapminiscript_toString: (a: number, b: number) => void;
123
26
  export const __wbg_bip322namespace_free: (a: number, b: number) => void;
124
27
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
125
28
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
29
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
126
30
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
127
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
128
31
  export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
129
- export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
32
+ export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
130
33
  export const bip322namespace_add_bip322_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
131
34
  export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
132
35
  export const bip322namespace_verify_bip322_psbt_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
@@ -216,8 +119,8 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
216
119
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
217
120
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
218
121
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
219
- export const isInspectEnabled: () => number;
220
- export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
122
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
123
+ export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
221
124
  export const wasmbip32_chain_code: (a: number) => number;
222
125
  export const wasmbip32_depth: (a: number) => number;
223
126
  export const wasmbip32_derive: (a: number, b: number, c: number) => void;
@@ -240,6 +143,66 @@ export const wasmbip32_private_key: (a: number) => number;
240
143
  export const wasmbip32_public_key: (a: number) => number;
241
144
  export const wasmbip32_to_base58: (a: number, b: number) => void;
242
145
  export const wasmbip32_to_wif: (a: number, b: number) => void;
146
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
147
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
148
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
149
+ export const wasmrootwalletkeys_backup_key: (a: number) => number;
150
+ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
151
+ export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
152
+ export const wasmrootwalletkeys_user_key: (a: number) => number;
153
+ export const wasmrootwalletkeys_with_derivation_prefixes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
154
+ export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
155
+ export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
156
+ export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
157
+ export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
158
+ export const __wbg_addressnamespace_free: (a: number, b: number) => void;
159
+ export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
160
+ export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
161
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
162
+ export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
163
+ export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
164
+ export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
165
+ export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
166
+ export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
167
+ export const wasmdimensions_empty: () => number;
168
+ export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
169
+ export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
170
+ export const wasmdimensions_from_output_script_length: (a: number) => number;
171
+ export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
172
+ export const wasmdimensions_from_psbt: (a: number, b: number) => void;
173
+ export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
174
+ export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
175
+ export const wasmdimensions_get_output_vsize: (a: number) => number;
176
+ export const wasmdimensions_get_output_weight: (a: number) => number;
177
+ export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
178
+ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
179
+ export const wasmdimensions_has_segwit: (a: number) => number;
180
+ export const wasmdimensions_plus: (a: number, b: number) => number;
181
+ export const wasmdimensions_times: (a: number, b: number) => number;
182
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
183
+ export const isInspectEnabled: () => number;
184
+ export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
185
+ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
186
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
187
+ export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
188
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
189
+ export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
190
+ export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
191
+ export const __wbg_wrappsbt_free: (a: number, b: number) => void;
192
+ export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
193
+ export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
194
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
195
+ export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
196
+ export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
197
+ export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
198
+ export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
199
+ export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
200
+ export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
201
+ export const wasmdashtransaction_input_count: (a: number) => number;
202
+ export const wasmdashtransaction_lock_time: (a: number) => number;
203
+ export const wasmdashtransaction_output_count: (a: number) => number;
204
+ export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
205
+ export const wasmdashtransaction_version: (a: number) => number;
243
206
  export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
244
207
  export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
245
208
  export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
@@ -250,45 +213,93 @@ export const wasmecpair_public_key: (a: number) => number;
250
213
  export const wasmecpair_to_wif: (a: number, b: number) => void;
251
214
  export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
252
215
  export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
253
- export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
254
- export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
255
- export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
216
+ export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
217
+ export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
218
+ export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
219
+ export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
220
+ export const wasmtransaction_create: () => number;
221
+ export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
222
+ export const wasmtransaction_get_inputs: (a: number, b: number) => void;
223
+ export const wasmtransaction_get_outputs: (a: number, b: number) => void;
224
+ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
225
+ export const wasmtransaction_get_txid: (a: number, b: number) => void;
226
+ export const wasmtransaction_get_vsize: (a: number) => number;
227
+ export const wasmtransaction_to_bytes: (a: number, b: number) => void;
228
+ export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
229
+ export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
230
+ export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
231
+ export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
232
+ export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
233
+ export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
234
+ export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
235
+ export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
236
+ export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
237
+ export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
238
+ export const wrappsbt_clone: (a: number) => number;
239
+ export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
240
+ export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
241
+ export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
242
+ export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
243
+ export const wrappsbt_extract_transaction: (a: number, b: number) => void;
244
+ export const wrappsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
245
+ export const wrappsbt_finalize_mut: (a: number, b: number) => void;
246
+ export const wrappsbt_finalize_mut_zcash: (a: number, b: number, c: number, d: number, e: number) => void;
247
+ export const wrappsbt_get_global_xpubs: (a: number) => number;
248
+ export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
249
+ export const wrappsbt_get_inputs: (a: number, b: number) => void;
250
+ export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
251
+ export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
252
+ export const wrappsbt_get_outputs: (a: number, b: number) => void;
253
+ export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
254
+ export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
255
+ export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
256
+ export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
257
+ export const wrappsbt_input_count: (a: number) => number;
258
+ export const wrappsbt_new: (a: number, b: number) => number;
259
+ export const wrappsbt_output_count: (a: number) => number;
260
+ export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
261
+ export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
262
+ export const wrappsbt_serialize: (a: number, b: number) => void;
263
+ export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
264
+ export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
265
+ export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
266
+ export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
267
+ export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
268
+ export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
269
+ export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
270
+ export const wrappsbt_sign_zcash_all_with_ecpair: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
271
+ export const wrappsbt_sign_zcash_with_prv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
272
+ export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
273
+ export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
274
+ export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
275
+ export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
276
+ export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
256
277
  export const zcash_branch_id_for_height: (a: number, b: number, c: number, d: number) => void;
257
278
  export const zcashunifiedaddress_contains: (a: number, b: number, c: number, d: number) => void;
258
279
  export const zcashunifiedaddress_orchardReceiver: (a: number, b: number) => void;
259
280
  export const zcashunifiedaddress_parse: (a: number, b: number, c: number, d: number, e: number) => void;
260
281
  export const zcashunifiedaddress_saplingReceiver: (a: number, b: number) => void;
261
282
  export const zcashunifiedaddress_transparentScript: (a: number, b: number) => void;
262
- export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
263
- export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
264
- export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
265
- export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
266
- export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
267
- export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
268
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
269
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
270
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
271
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
272
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
273
- export const wrapdescriptor_descType: (a: number, b: number) => void;
274
- export const wrapdescriptor_encode: (a: number, b: number) => void;
275
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
276
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
277
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
278
- export const wrapdescriptor_hasWildcard: (a: number) => number;
279
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
280
- export const wrapdescriptor_node: (a: number, b: number) => void;
281
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
282
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
283
- export const wrapdescriptor_toString: (a: number, b: number) => void;
284
- export const wrapminiscript_encode: (a: number, b: number) => void;
285
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
286
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
287
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
288
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
289
- export const wrapminiscript_node: (a: number, b: number) => void;
290
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
291
- export const wrapminiscript_toString: (a: number, b: number) => void;
283
+ export const zcashv6transaction_consensusBranchId: (a: number) => number;
284
+ export const zcashv6transaction_expiryHeight: (a: number) => number;
285
+ export const zcashv6transaction_fromBytes: (a: number, b: number, c: number) => void;
286
+ export const zcashv6transaction_getId: (a: number, b: number) => void;
287
+ export const zcashv6transaction_ironwoodActionCount: (a: number) => number;
288
+ export const zcashv6transaction_ironwoodAnchor: (a: number, b: number) => void;
289
+ export const zcashv6transaction_ironwoodFlags: (a: number) => number;
290
+ export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
291
+ export const zcashv6transaction_toBytes: (a: number, b: number) => void;
292
+ export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
293
+ export const wasmtransaction_input_count: (a: number) => number;
294
+ export const wasmtransaction_output_count: (a: number) => number;
295
+ export const wasmzcashtransaction_input_count: (a: number) => number;
296
+ export const wasmzcashtransaction_output_count: (a: number) => number;
297
+ export const wasmtransaction_lock_time: (a: number) => number;
298
+ export const wasmtransaction_version: (a: number) => number;
299
+ export const wasmzcashtransaction_lock_time: (a: number) => number;
300
+ export const wasmzcashtransaction_version: (a: number) => number;
301
+ export const wrappsbt_lock_time: (a: number) => number;
302
+ export const wrappsbt_version: (a: number) => number;
292
303
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
293
304
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
294
305
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
@@ -0,0 +1,45 @@
1
+ import { ZcashV6Transaction as WasmZcashV6Transaction } from "../wasm/wasm_utxo.js";
2
+ /**
3
+ * A parsed Zcash v6 (Ironwood / NU6.3) transaction — for inspection and txid.
4
+ *
5
+ * The transaction id is an instance method ({@link getId}) returning the canonical
6
+ * display-order hex, consistent with the `getId()` convention on the other
7
+ * transaction/PSBT wrappers. Callers never pass raw bytes to a txid function or have
8
+ * to reverse internal byte order themselves.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * const tx = ZcashV6Transaction.fromBytes(rawV6Bytes);
13
+ * tx.getId(); // canonical (display-order) txid hex
14
+ * tx.ironwoodActionCount; // 0 when the Ironwood slot is empty
15
+ * ```
16
+ */
17
+ export declare class ZcashV6Transaction {
18
+ private _wasm;
19
+ private constructor();
20
+ /**
21
+ * Decode a v6 transaction from raw wire bytes.
22
+ * @throws If the bytes are not a valid v6 (Ironwood) transaction
23
+ */
24
+ static fromBytes(bytes: Uint8Array): ZcashV6Transaction;
25
+ /** Serialize back to raw v6 wire bytes. */
26
+ toBytes(): Uint8Array;
27
+ /** The canonical (display-order) ZIP-244 txid as a lowercase hex string. */
28
+ getId(): string;
29
+ /** The ZIP-244 txid in internal (non-reversed) byte order. */
30
+ txidBytes(): Uint8Array;
31
+ /** Consensus branch id carried in the v6 header. */
32
+ get consensusBranchId(): number;
33
+ /** Expiry height. */
34
+ get expiryHeight(): number;
35
+ /** Number of Ironwood actions (0 when the Ironwood slot is empty). */
36
+ get ironwoodActionCount(): number;
37
+ /** Net value crossing the Ironwood pool boundary (0 when there is no bundle). */
38
+ get ironwoodValueBalance(): bigint;
39
+ /** The Ironwood bundle flag byte, or `undefined` when there is no bundle. */
40
+ get ironwoodFlags(): number | undefined;
41
+ /** The Ironwood note-commitment tree anchor (32 bytes), or `undefined`. */
42
+ get ironwoodAnchor(): Uint8Array | undefined;
43
+ /** @internal */
44
+ get wasm(): WasmZcashV6Transaction;
45
+ }
@@ -0,0 +1,69 @@
1
+ import { ZcashV6Transaction as WasmZcashV6Transaction } from "../wasm/wasm_utxo.js";
2
+ /**
3
+ * A parsed Zcash v6 (Ironwood / NU6.3) transaction — for inspection and txid.
4
+ *
5
+ * The transaction id is an instance method ({@link getId}) returning the canonical
6
+ * display-order hex, consistent with the `getId()` convention on the other
7
+ * transaction/PSBT wrappers. Callers never pass raw bytes to a txid function or have
8
+ * to reverse internal byte order themselves.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * const tx = ZcashV6Transaction.fromBytes(rawV6Bytes);
13
+ * tx.getId(); // canonical (display-order) txid hex
14
+ * tx.ironwoodActionCount; // 0 when the Ironwood slot is empty
15
+ * ```
16
+ */
17
+ export class ZcashV6Transaction {
18
+ _wasm;
19
+ constructor(_wasm) {
20
+ this._wasm = _wasm;
21
+ }
22
+ /**
23
+ * Decode a v6 transaction from raw wire bytes.
24
+ * @throws If the bytes are not a valid v6 (Ironwood) transaction
25
+ */
26
+ static fromBytes(bytes) {
27
+ return new ZcashV6Transaction(WasmZcashV6Transaction.fromBytes(bytes));
28
+ }
29
+ /** Serialize back to raw v6 wire bytes. */
30
+ toBytes() {
31
+ return this._wasm.toBytes();
32
+ }
33
+ /** The canonical (display-order) ZIP-244 txid as a lowercase hex string. */
34
+ getId() {
35
+ return this._wasm.getId();
36
+ }
37
+ /** The ZIP-244 txid in internal (non-reversed) byte order. */
38
+ txidBytes() {
39
+ return this._wasm.txidBytes();
40
+ }
41
+ /** Consensus branch id carried in the v6 header. */
42
+ get consensusBranchId() {
43
+ return this._wasm.consensusBranchId;
44
+ }
45
+ /** Expiry height. */
46
+ get expiryHeight() {
47
+ return this._wasm.expiryHeight;
48
+ }
49
+ /** Number of Ironwood actions (0 when the Ironwood slot is empty). */
50
+ get ironwoodActionCount() {
51
+ return this._wasm.ironwoodActionCount;
52
+ }
53
+ /** Net value crossing the Ironwood pool boundary (0 when there is no bundle). */
54
+ get ironwoodValueBalance() {
55
+ return this._wasm.ironwoodValueBalance;
56
+ }
57
+ /** The Ironwood bundle flag byte, or `undefined` when there is no bundle. */
58
+ get ironwoodFlags() {
59
+ return this._wasm.ironwoodFlags;
60
+ }
61
+ /** The Ironwood note-commitment tree anchor (32 bytes), or `undefined`. */
62
+ get ironwoodAnchor() {
63
+ return this._wasm.ironwoodAnchor;
64
+ }
65
+ /** @internal */
66
+ get wasm() {
67
+ return this._wasm;
68
+ }
69
+ }
@@ -10,6 +10,7 @@ export { BitGoPsbt, getWalletKeysFromPsbt, type NetworkName, type ScriptId, type
10
10
  export { BitGoKeySubtype, type PsbtKvKey } from "./BitGoKeySubtype.js";
11
11
  export { ZcashBitGoPsbt, type ZcashNetworkName, type CreateEmptyZcashOptions, } from "./ZcashBitGoPsbt.js";
12
12
  export { ZcashUnifiedAddress } from "./ZcashUnifiedAddress.js";
13
+ export { ZcashV6Transaction } from "./ZcashV6Transaction.js";
13
14
  import type { ScriptType } from "./scriptType.js";
14
15
  /**
15
16
  * Check if a network supports a given fixed-script wallet script type
@@ -14,6 +14,8 @@ export { BitGoKeySubtype } from "./BitGoKeySubtype.js";
14
14
  export { ZcashBitGoPsbt, } from "./ZcashBitGoPsbt.js";
15
15
  // Zcash ZIP-316 Unified Address
16
16
  export { ZcashUnifiedAddress } from "./ZcashUnifiedAddress.js";
17
+ // Zcash v6 (Ironwood / NU6.3) transaction
18
+ export { ZcashV6Transaction } from "./ZcashV6Transaction.js";
17
19
  /**
18
20
  * Check if a network supports a given fixed-script wallet script type
19
21
  *
@@ -1621,6 +1621,64 @@ export class ZcashUnifiedAddress {
1621
1621
  readonly transparentScript: Uint8Array | undefined;
1622
1622
  }
1623
1623
 
1624
+ /**
1625
+ * A parsed Zcash v6 (Ironwood / NU6.3) transaction — for inspection and txid.
1626
+ *
1627
+ * This wraps the raw v6 wire codec. The transaction id is exposed as an instance
1628
+ * method [`ZcashV6Transaction::get_id`] (canonical display-order hex), matching the
1629
+ * `getId()` convention used by the other transaction/PSBT wrappers, so callers never
1630
+ * pass raw bytes to a txid function or juggle internal vs display byte order.
1631
+ */
1632
+ export class ZcashV6Transaction {
1633
+ private constructor();
1634
+ free(): void;
1635
+ [Symbol.dispose](): void;
1636
+ /**
1637
+ * Decode a v6 transaction from raw wire bytes. Throws if the bytes are not a
1638
+ * valid v6 (Ironwood) transaction.
1639
+ */
1640
+ static fromBytes(bytes: Uint8Array): ZcashV6Transaction;
1641
+ /**
1642
+ * The canonical (display-order) ZIP-244 txid as a lowercase hex string.
1643
+ *
1644
+ * `Txid`'s `Display` emits display-order (byte-reversed) hex, matching how a
1645
+ * transaction id is printed everywhere else in the codebase.
1646
+ */
1647
+ getId(): string;
1648
+ /**
1649
+ * Serialize back to raw v6 wire bytes.
1650
+ */
1651
+ toBytes(): Uint8Array;
1652
+ /**
1653
+ * The ZIP-244 txid in internal (non-reversed) byte order.
1654
+ */
1655
+ txidBytes(): Uint8Array;
1656
+ /**
1657
+ * Consensus branch id carried in the v6 header.
1658
+ */
1659
+ readonly consensusBranchId: number;
1660
+ /**
1661
+ * Expiry height.
1662
+ */
1663
+ readonly expiryHeight: number;
1664
+ /**
1665
+ * Number of Ironwood actions (0 when the Ironwood slot is empty).
1666
+ */
1667
+ readonly ironwoodActionCount: number;
1668
+ /**
1669
+ * The Ironwood note-commitment tree anchor (32 bytes), or `undefined`.
1670
+ */
1671
+ readonly ironwoodAnchor: Uint8Array | undefined;
1672
+ /**
1673
+ * The Ironwood bundle flag byte, or `undefined` when there is no bundle.
1674
+ */
1675
+ readonly ironwoodFlags: number | undefined;
1676
+ /**
1677
+ * Net value crossing the Ironwood pool boundary (0 when there is no bundle).
1678
+ */
1679
+ readonly ironwoodValueBalance: bigint;
1680
+ }
1681
+
1624
1682
  /**
1625
1683
  * Check if the inspect feature is enabled.
1626
1684
  *
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./wasm_utxo_bg.js";
5
5
  __wbg_set_wasm(wasm);
6
6
 
7
7
  export {
8
- AddressNamespace, Bip322Namespace, BitGoPsbt, FixedScriptWalletNamespace, InscriptionsNamespace, MessageNamespace, UtxolibCompatNamespace, WasmBIP32, WasmDashTransaction, WasmDimensions, WasmECPair, WasmReplayProtection, WasmRootWalletKeys, WasmTransaction, WasmUtxoNamespace, WasmZcashTransaction, WrapDescriptor, WrapMiniscript, WrapPsbt, ZcashUnifiedAddress, isInspectEnabled, parsePsbtRawToJson, parsePsbtToJson, parseTxToJson, zcash_branch_id_for_height
8
+ AddressNamespace, Bip322Namespace, BitGoPsbt, FixedScriptWalletNamespace, InscriptionsNamespace, MessageNamespace, UtxolibCompatNamespace, WasmBIP32, WasmDashTransaction, WasmDimensions, WasmECPair, WasmReplayProtection, WasmRootWalletKeys, WasmTransaction, WasmUtxoNamespace, WasmZcashTransaction, WrapDescriptor, WrapMiniscript, WrapPsbt, ZcashUnifiedAddress, ZcashV6Transaction, isInspectEnabled, parsePsbtRawToJson, parsePsbtToJson, parseTxToJson, zcash_branch_id_for_height
9
9
  } from "./wasm_utxo_bg.js";