@bitgo/wasm-utxo 4.36.0 → 4.37.1

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.
@@ -1184,8 +1184,10 @@ export class WasmDimensions {
1184
1184
  * Create dimensions from a BitGoPsbt
1185
1185
  *
1186
1186
  * Parses PSBT inputs and outputs to compute weight bounds without
1187
- * requiring wallet keys. Input types are detected from BIP32 derivation
1188
- * paths stored in the PSBT.
1187
+ * requiring wallet keys. Each input is classified by inspecting its
1188
+ * `witness_script` / `redeem_script` (and taproot metadata), so BitGo
1189
+ * wallet inputs, replay-protection inputs, and externally-signed inputs
1190
+ * are all detected correctly.
1189
1191
  */
1190
1192
  static from_psbt(psbt: BitGoPsbt): WasmDimensions;
1191
1193
  /**
@@ -3962,8 +3962,10 @@ class WasmDimensions {
3962
3962
  * Create dimensions from a BitGoPsbt
3963
3963
  *
3964
3964
  * Parses PSBT inputs and outputs to compute weight bounds without
3965
- * requiring wallet keys. Input types are detected from BIP32 derivation
3966
- * paths stored in the PSBT.
3965
+ * requiring wallet keys. Each input is classified by inspecting its
3966
+ * `witness_script` / `redeem_script` (and taproot metadata), so BitGo
3967
+ * wallet inputs, replay-protection inputs, and externally-signed inputs
3968
+ * are all detected correctly.
3967
3969
  * @param {BitGoPsbt} psbt
3968
3970
  * @returns {WasmDimensions}
3969
3971
  */
Binary file
@@ -1,28 +1,20 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
5
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
6
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
7
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
4
8
  export const __wbg_addressnamespace_free: (a: number, b: number) => void;
5
- export const __wbg_bip322namespace_free: (a: number, b: number) => void;
6
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
7
9
  export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
8
10
  export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
9
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
10
11
  export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
11
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
12
12
  export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
13
13
  export const __wbg_wrappsbt_free: (a: number, b: number) => void;
14
14
  export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
15
15
  export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
16
16
  export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
17
17
  export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
18
- 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;
19
- export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
20
- 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;
21
- 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;
22
- 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;
23
- 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;
24
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
25
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
26
18
  export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
27
19
  export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
28
20
  export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
@@ -35,16 +27,6 @@ export const wasmdashtransaction_lock_time: (a: number) => number;
35
27
  export const wasmdashtransaction_output_count: (a: number) => number;
36
28
  export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
37
29
  export const wasmdashtransaction_version: (a: number) => number;
38
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
39
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
40
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
41
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
42
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
43
- export const wasmecpair_private_key: (a: number) => number;
44
- export const wasmecpair_public_key: (a: number) => number;
45
- export const wasmecpair_to_wif: (a: number, b: number) => void;
46
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
47
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
48
30
  export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
49
31
  export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
50
32
  export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
@@ -57,7 +39,6 @@ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c:
57
39
  export const wasmtransaction_get_txid: (a: number, b: number) => void;
58
40
  export const wasmtransaction_get_vsize: (a: number) => number;
59
41
  export const wasmtransaction_to_bytes: (a: number, b: number) => void;
60
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
61
42
  export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
62
43
  export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
63
44
  export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
@@ -136,13 +117,48 @@ export const wasmzcashtransaction_lock_time: (a: number) => number;
136
117
  export const wasmzcashtransaction_version: (a: number) => number;
137
118
  export const wrappsbt_lock_time: (a: number) => number;
138
119
  export const wrappsbt_version: (a: number) => number;
120
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
121
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
122
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
123
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
124
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
125
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
126
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
127
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
128
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
129
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
130
+ export const wrapdescriptor_node: (a: number, b: number) => void;
131
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
132
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
133
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
134
+ export const wrapminiscript_encode: (a: number, b: number) => void;
135
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
136
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
137
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
138
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
139
+ export const wrapminiscript_node: (a: number, b: number) => void;
140
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
141
+ export const wrapminiscript_toString: (a: number, b: number) => void;
142
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
143
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
144
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
145
+ export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
146
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
147
+ export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
148
+ export const __wbg_bip322namespace_free: (a: number, b: number) => void;
139
149
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
140
150
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
141
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
142
151
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
143
152
  export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
144
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
153
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
145
154
  export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
155
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
156
+ 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;
157
+ export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
158
+ 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;
159
+ 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;
160
+ 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;
161
+ 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;
146
162
  export const bitgopsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number) => void;
147
163
  export const bitgopsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number, k: number, l: number) => void;
148
164
  export const bitgopsbt_add_ironwood_output: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number, h: number, i: number, j: number, k: number) => void;
@@ -236,8 +252,7 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
236
252
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
237
253
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
238
254
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
239
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
240
- 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;
255
+ export const isInspectEnabled: () => number;
241
256
  export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
242
257
  export const wasmbip32_chain_code: (a: number) => number;
243
258
  export const wasmbip32_depth: (a: number) => number;
@@ -276,43 +291,28 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
276
291
  export const wasmdimensions_has_segwit: (a: number) => number;
277
292
  export const wasmdimensions_plus: (a: number, b: number) => number;
278
293
  export const wasmdimensions_times: (a: number, b: number) => number;
279
- export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
280
- export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
281
- export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
294
+ export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
295
+ export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
296
+ export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
297
+ export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
298
+ export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
299
+ export const wasmecpair_private_key: (a: number) => number;
300
+ export const wasmecpair_public_key: (a: number) => number;
301
+ export const wasmecpair_to_wif: (a: number, b: number) => void;
302
+ export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
303
+ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
282
304
  export const wasmrootwalletkeys_backup_key: (a: number) => number;
283
305
  export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
284
306
  export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
285
307
  export const wasmrootwalletkeys_user_key: (a: number) => number;
286
308
  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;
309
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
287
310
  export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
288
- export const isInspectEnabled: () => number;
289
311
  export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
290
312
  export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
291
- export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
292
313
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
293
314
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
294
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
295
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
296
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
297
- export const wrapdescriptor_descType: (a: number, b: number) => void;
298
- export const wrapdescriptor_encode: (a: number, b: number) => void;
299
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
300
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
301
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
302
- export const wrapdescriptor_hasWildcard: (a: number) => number;
303
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
304
- export const wrapdescriptor_node: (a: number, b: number) => void;
305
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
306
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
307
- export const wrapdescriptor_toString: (a: number, b: number) => void;
308
- export const wrapminiscript_encode: (a: number, b: number) => void;
309
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
310
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
311
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
312
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
313
- export const wrapminiscript_node: (a: number, b: number) => void;
314
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
315
- export const wrapminiscript_toString: (a: number, b: number) => void;
315
+ export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
316
316
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
317
317
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
318
318
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
@@ -1184,8 +1184,10 @@ export class WasmDimensions {
1184
1184
  * Create dimensions from a BitGoPsbt
1185
1185
  *
1186
1186
  * Parses PSBT inputs and outputs to compute weight bounds without
1187
- * requiring wallet keys. Input types are detected from BIP32 derivation
1188
- * paths stored in the PSBT.
1187
+ * requiring wallet keys. Each input is classified by inspecting its
1188
+ * `witness_script` / `redeem_script` (and taproot metadata), so BitGo
1189
+ * wallet inputs, replay-protection inputs, and externally-signed inputs
1190
+ * are all detected correctly.
1189
1191
  */
1190
1192
  static from_psbt(psbt: BitGoPsbt): WasmDimensions;
1191
1193
  /**
@@ -3951,8 +3951,10 @@ export class WasmDimensions {
3951
3951
  * Create dimensions from a BitGoPsbt
3952
3952
  *
3953
3953
  * Parses PSBT inputs and outputs to compute weight bounds without
3954
- * requiring wallet keys. Input types are detected from BIP32 derivation
3955
- * paths stored in the PSBT.
3954
+ * requiring wallet keys. Each input is classified by inspecting its
3955
+ * `witness_script` / `redeem_script` (and taproot metadata), so BitGo
3956
+ * wallet inputs, replay-protection inputs, and externally-signed inputs
3957
+ * are all detected correctly.
3956
3958
  * @param {BitGoPsbt} psbt
3957
3959
  * @returns {WasmDimensions}
3958
3960
  */
Binary file
@@ -1,28 +1,20 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
5
+ export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
6
+ export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
7
+ export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
4
8
  export const __wbg_addressnamespace_free: (a: number, b: number) => void;
5
- export const __wbg_bip322namespace_free: (a: number, b: number) => void;
6
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
7
9
  export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
8
10
  export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
9
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
10
11
  export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
11
- export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
12
12
  export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
13
13
  export const __wbg_wrappsbt_free: (a: number, b: number) => void;
14
14
  export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
15
15
  export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
16
16
  export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
17
17
  export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
18
- 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;
19
- export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
20
- 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;
21
- 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;
22
- 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;
23
- 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;
24
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
25
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
26
18
  export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
27
19
  export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
28
20
  export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
@@ -35,16 +27,6 @@ export const wasmdashtransaction_lock_time: (a: number) => number;
35
27
  export const wasmdashtransaction_output_count: (a: number) => number;
36
28
  export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
37
29
  export const wasmdashtransaction_version: (a: number) => number;
38
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
39
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
40
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
41
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
42
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
43
- export const wasmecpair_private_key: (a: number) => number;
44
- export const wasmecpair_public_key: (a: number) => number;
45
- export const wasmecpair_to_wif: (a: number, b: number) => void;
46
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
47
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
48
30
  export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
49
31
  export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
50
32
  export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
@@ -57,7 +39,6 @@ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c:
57
39
  export const wasmtransaction_get_txid: (a: number, b: number) => void;
58
40
  export const wasmtransaction_get_vsize: (a: number) => number;
59
41
  export const wasmtransaction_to_bytes: (a: number, b: number) => void;
60
- export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
61
42
  export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
62
43
  export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
63
44
  export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
@@ -136,13 +117,48 @@ export const wasmzcashtransaction_lock_time: (a: number) => number;
136
117
  export const wasmzcashtransaction_version: (a: number) => number;
137
118
  export const wrappsbt_lock_time: (a: number) => number;
138
119
  export const wrappsbt_version: (a: number) => number;
120
+ export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
121
+ export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
122
+ export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
123
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
124
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
125
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
126
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
127
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
128
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
129
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
130
+ export const wrapdescriptor_node: (a: number, b: number) => void;
131
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
132
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
133
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
134
+ export const wrapminiscript_encode: (a: number, b: number) => void;
135
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
136
+ export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
137
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
138
+ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
139
+ export const wrapminiscript_node: (a: number, b: number) => void;
140
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
141
+ export const wrapminiscript_toString: (a: number, b: number) => void;
142
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
143
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
144
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
145
+ export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
146
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
147
+ export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
148
+ export const __wbg_bip322namespace_free: (a: number, b: number) => void;
139
149
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
140
150
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
141
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
142
151
  export const __wbg_wasmbip32_free: (a: number, b: number) => void;
143
152
  export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
144
- export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
153
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
145
154
  export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
155
+ export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
156
+ 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;
157
+ export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
158
+ 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;
159
+ 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;
160
+ 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;
161
+ 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;
146
162
  export const bitgopsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number) => void;
147
163
  export const bitgopsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number, k: number, l: number) => void;
148
164
  export const bitgopsbt_add_ironwood_output: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number, h: number, i: number, j: number, k: number) => void;
@@ -236,8 +252,7 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
236
252
  export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
237
253
  export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
238
254
  export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
239
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
240
- 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;
255
+ export const isInspectEnabled: () => number;
241
256
  export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
242
257
  export const wasmbip32_chain_code: (a: number) => number;
243
258
  export const wasmbip32_depth: (a: number) => number;
@@ -276,43 +291,28 @@ export const wasmdimensions_get_weight: (a: number, b: number, c: number) => num
276
291
  export const wasmdimensions_has_segwit: (a: number) => number;
277
292
  export const wasmdimensions_plus: (a: number, b: number) => number;
278
293
  export const wasmdimensions_times: (a: number, b: number) => number;
279
- export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
280
- export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
281
- export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
294
+ export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
295
+ export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
296
+ export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
297
+ export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
298
+ export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
299
+ export const wasmecpair_private_key: (a: number) => number;
300
+ export const wasmecpair_public_key: (a: number) => number;
301
+ export const wasmecpair_to_wif: (a: number, b: number) => void;
302
+ export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
303
+ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
282
304
  export const wasmrootwalletkeys_backup_key: (a: number) => number;
283
305
  export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
284
306
  export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
285
307
  export const wasmrootwalletkeys_user_key: (a: number) => number;
286
308
  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;
309
+ export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
287
310
  export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
288
- export const isInspectEnabled: () => number;
289
311
  export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
290
312
  export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
291
- export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
292
313
  export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
293
314
  export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
294
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
295
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
296
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
297
- export const wrapdescriptor_descType: (a: number, b: number) => void;
298
- export const wrapdescriptor_encode: (a: number, b: number) => void;
299
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
300
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
301
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
302
- export const wrapdescriptor_hasWildcard: (a: number) => number;
303
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
304
- export const wrapdescriptor_node: (a: number, b: number) => void;
305
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
306
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
307
- export const wrapdescriptor_toString: (a: number, b: number) => void;
308
- export const wrapminiscript_encode: (a: number, b: number) => void;
309
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
310
- export const wrapminiscript_fromBitcoinScriptExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
311
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
312
- export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
313
- export const wrapminiscript_node: (a: number, b: number) => void;
314
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
315
- export const wrapminiscript_toString: (a: number, b: number) => void;
315
+ export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
316
316
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
317
317
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
318
318
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitgo/wasm-utxo",
3
3
  "description": "WebAssembly wrapper for rust-bitcoin (beta)",
4
- "version": "4.36.0",
4
+ "version": "4.37.1",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",