@bitgo/wasm-utxo 4.13.0 → 4.14.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.
- package/dist/cjs/js/descriptorWallet/psbt/findDescriptors.js +2 -2
- package/dist/cjs/js/fixedScriptWallet/BitGoPsbt.d.ts +9 -0
- package/dist/cjs/js/fixedScriptWallet/BitGoPsbt.js +11 -0
- package/dist/cjs/js/wasm/wasm_utxo.d.ts +6 -0
- package/dist/cjs/js/wasm/wasm_utxo.js +19 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm.d.ts +112 -111
- package/dist/esm/js/descriptorWallet/psbt/findDescriptors.js +2 -2
- package/dist/esm/js/fixedScriptWallet/BitGoPsbt.d.ts +9 -0
- package/dist/esm/js/fixedScriptWallet/BitGoPsbt.js +11 -0
- package/dist/esm/js/wasm/wasm_utxo.d.ts +6 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.js +19 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm.d.ts +112 -111
- package/package.json +1 -1
|
@@ -73,10 +73,10 @@ function findDescriptorForAnyDerivationPath(script, derivationPaths, descriptorM
|
|
|
73
73
|
return undefined;
|
|
74
74
|
}
|
|
75
75
|
function getDerivationPaths(v) {
|
|
76
|
-
if ("bip32Derivation" in v && v.bip32Derivation) {
|
|
76
|
+
if ("bip32Derivation" in v && v.bip32Derivation && v.bip32Derivation.length > 0) {
|
|
77
77
|
return v.bip32Derivation.map((v) => v.path);
|
|
78
78
|
}
|
|
79
|
-
if ("tapBip32Derivation" in v && v.tapBip32Derivation) {
|
|
79
|
+
if ("tapBip32Derivation" in v && v.tapBip32Derivation && v.tapBip32Derivation.length > 0) {
|
|
80
80
|
return v.tapBip32Derivation.map((v) => v.path).filter((v) => v !== "" && v !== "m");
|
|
81
81
|
}
|
|
82
82
|
return undefined;
|
|
@@ -585,6 +585,15 @@ export declare class BitGoPsbt extends PsbtBase<WasmBitGoPsbt> implements IPsbtW
|
|
|
585
585
|
* ```
|
|
586
586
|
*/
|
|
587
587
|
getHalfSignedLegacyFormat(): Uint8Array;
|
|
588
|
+
/**
|
|
589
|
+
* Serialize the unsigned transaction embedded in this PSBT.
|
|
590
|
+
*
|
|
591
|
+
* Unlike {@link extractTransaction}, this does NOT require finalization or signatures.
|
|
592
|
+
* Equivalent to utxo-lib's `UtxoPsbt.getUnsignedTx().toBuffer()`.
|
|
593
|
+
*
|
|
594
|
+
* @returns The serialized unsigned transaction bytes (network/consensus encoding).
|
|
595
|
+
*/
|
|
596
|
+
getUnsignedTransaction(): Uint8Array;
|
|
588
597
|
/**
|
|
589
598
|
* Get all PSBT outputs with resolved address strings
|
|
590
599
|
*
|
|
@@ -597,6 +597,17 @@ class BitGoPsbt extends psbtBase_js_1.PsbtBase {
|
|
|
597
597
|
getHalfSignedLegacyFormat() {
|
|
598
598
|
return this._wasm.extract_half_signed_legacy_tx();
|
|
599
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* Serialize the unsigned transaction embedded in this PSBT.
|
|
602
|
+
*
|
|
603
|
+
* Unlike {@link extractTransaction}, this does NOT require finalization or signatures.
|
|
604
|
+
* Equivalent to utxo-lib's `UtxoPsbt.getUnsignedTx().toBuffer()`.
|
|
605
|
+
*
|
|
606
|
+
* @returns The serialized unsigned transaction bytes (network/consensus encoding).
|
|
607
|
+
*/
|
|
608
|
+
getUnsignedTransaction() {
|
|
609
|
+
return this._wasm.get_unsigned_tx();
|
|
610
|
+
}
|
|
600
611
|
/**
|
|
601
612
|
* Get all PSBT outputs with resolved address strings
|
|
602
613
|
*
|
|
@@ -404,6 +404,12 @@ export class BitGoPsbt {
|
|
|
404
404
|
get_output_kv(index: number, key: any): Uint8Array | undefined;
|
|
405
405
|
get_outputs(): any;
|
|
406
406
|
get_outputs_with_address(): any;
|
|
407
|
+
/**
|
|
408
|
+
* Serialize the unsigned transaction embedded in this PSBT.
|
|
409
|
+
*
|
|
410
|
+
* Unlike `extract_transaction()`, this does NOT require finalization or signatures.
|
|
411
|
+
*/
|
|
412
|
+
get_unsigned_tx(): Uint8Array;
|
|
407
413
|
input_count(): number;
|
|
408
414
|
/**
|
|
409
415
|
* Check if an input is a MuSig2 keypath input.
|
|
@@ -1569,6 +1569,25 @@ class BitGoPsbt {
|
|
|
1569
1569
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
+
/**
|
|
1573
|
+
* Serialize the unsigned transaction embedded in this PSBT.
|
|
1574
|
+
*
|
|
1575
|
+
* Unlike `extract_transaction()`, this does NOT require finalization or signatures.
|
|
1576
|
+
* @returns {Uint8Array}
|
|
1577
|
+
*/
|
|
1578
|
+
get_unsigned_tx() {
|
|
1579
|
+
try {
|
|
1580
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1581
|
+
wasm.bitgopsbt_get_unsigned_tx(retptr, this.__wbg_ptr);
|
|
1582
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1583
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1584
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1585
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
1586
|
+
return v1;
|
|
1587
|
+
} finally {
|
|
1588
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1572
1591
|
/**
|
|
1573
1592
|
* @returns {number}
|
|
1574
1593
|
*/
|
|
Binary file
|
|
@@ -23,6 +23,117 @@ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d:
|
|
|
23
23
|
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
24
24
|
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
25
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_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
28
|
+
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
29
|
+
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
30
|
+
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
31
|
+
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
32
|
+
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
33
|
+
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
34
|
+
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
35
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
36
|
+
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
37
|
+
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
38
|
+
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
39
|
+
export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
|
|
40
|
+
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
41
|
+
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
42
|
+
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
43
|
+
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
44
|
+
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
45
|
+
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
46
|
+
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
47
|
+
export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
48
|
+
export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
|
|
49
|
+
export const wasmdashtransaction_input_count: (a: number) => number;
|
|
50
|
+
export const wasmdashtransaction_lock_time: (a: number) => number;
|
|
51
|
+
export const wasmdashtransaction_output_count: (a: number) => number;
|
|
52
|
+
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
53
|
+
export const wasmdashtransaction_version: (a: number) => number;
|
|
54
|
+
export const wasmdimensions_empty: () => number;
|
|
55
|
+
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
56
|
+
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
57
|
+
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
58
|
+
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
59
|
+
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
60
|
+
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
61
|
+
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
62
|
+
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
63
|
+
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
64
|
+
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
65
|
+
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
66
|
+
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
67
|
+
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
68
|
+
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
69
|
+
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
70
|
+
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
71
|
+
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
72
|
+
export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
73
|
+
export const wasmtransaction_create: () => number;
|
|
74
|
+
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
75
|
+
export const wasmtransaction_get_inputs: (a: number, b: number) => void;
|
|
76
|
+
export const wasmtransaction_get_outputs: (a: number, b: number) => void;
|
|
77
|
+
export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
78
|
+
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
79
|
+
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
80
|
+
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
81
|
+
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
82
|
+
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
83
|
+
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
84
|
+
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
85
|
+
export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
86
|
+
export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
|
|
87
|
+
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
88
|
+
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
89
|
+
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;
|
|
90
|
+
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
91
|
+
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
92
|
+
export const wrappsbt_clone: (a: number) => number;
|
|
93
|
+
export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
94
|
+
export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
95
|
+
export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
96
|
+
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
97
|
+
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
98
|
+
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
99
|
+
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
100
|
+
export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
101
|
+
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
102
|
+
export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
103
|
+
export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
104
|
+
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
105
|
+
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
106
|
+
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
107
|
+
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
108
|
+
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
109
|
+
export const wrappsbt_input_count: (a: number) => number;
|
|
110
|
+
export const wrappsbt_new: (a: number, b: number) => number;
|
|
111
|
+
export const wrappsbt_output_count: (a: number) => number;
|
|
112
|
+
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
113
|
+
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
114
|
+
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
115
|
+
export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
116
|
+
export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
117
|
+
export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
118
|
+
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
119
|
+
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
120
|
+
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
121
|
+
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
122
|
+
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
123
|
+
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
124
|
+
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
125
|
+
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
126
|
+
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
127
|
+
export const wasmtransaction_input_count: (a: number) => number;
|
|
128
|
+
export const wasmtransaction_output_count: (a: number) => number;
|
|
129
|
+
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
130
|
+
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
131
|
+
export const wasmtransaction_lock_time: (a: number) => number;
|
|
132
|
+
export const wasmtransaction_version: (a: number) => number;
|
|
133
|
+
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
134
|
+
export const wasmzcashtransaction_version: (a: number) => number;
|
|
135
|
+
export const wrappsbt_lock_time: (a: number) => number;
|
|
136
|
+
export const wrappsbt_version: (a: number) => number;
|
|
26
137
|
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
27
138
|
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
28
139
|
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
@@ -79,6 +190,7 @@ export const bitgopsbt_get_network_type: (a: number, b: number) => void;
|
|
|
79
190
|
export const bitgopsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
80
191
|
export const bitgopsbt_get_outputs: (a: number, b: number) => void;
|
|
81
192
|
export const bitgopsbt_get_outputs_with_address: (a: number, b: number) => void;
|
|
193
|
+
export const bitgopsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
82
194
|
export const bitgopsbt_input_count: (a: number) => number;
|
|
83
195
|
export const bitgopsbt_is_musig2_input: (a: number, b: number) => number;
|
|
84
196
|
export const bitgopsbt_lock_time: (a: number) => number;
|
|
@@ -164,117 +276,6 @@ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: numb
|
|
|
164
276
|
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
165
277
|
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
166
278
|
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
167
|
-
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
168
|
-
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
169
|
-
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
170
|
-
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
171
|
-
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
172
|
-
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
173
|
-
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
174
|
-
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
175
|
-
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
176
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
177
|
-
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
178
|
-
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
179
|
-
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
180
|
-
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;
|
|
181
|
-
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
182
|
-
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
183
|
-
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
184
|
-
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
185
|
-
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
186
|
-
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
187
|
-
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
188
|
-
export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
189
|
-
export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
|
|
190
|
-
export const wasmdashtransaction_input_count: (a: number) => number;
|
|
191
|
-
export const wasmdashtransaction_lock_time: (a: number) => number;
|
|
192
|
-
export const wasmdashtransaction_output_count: (a: number) => number;
|
|
193
|
-
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
194
|
-
export const wasmdashtransaction_version: (a: number) => number;
|
|
195
|
-
export const wasmdimensions_empty: () => number;
|
|
196
|
-
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
197
|
-
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
198
|
-
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
199
|
-
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
200
|
-
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
201
|
-
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
202
|
-
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
203
|
-
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
204
|
-
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
205
|
-
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
206
|
-
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
207
|
-
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
208
|
-
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
209
|
-
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
210
|
-
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
211
|
-
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
212
|
-
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
213
|
-
export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
214
|
-
export const wasmtransaction_create: () => number;
|
|
215
|
-
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
216
|
-
export const wasmtransaction_get_inputs: (a: number, b: number) => void;
|
|
217
|
-
export const wasmtransaction_get_outputs: (a: number, b: number) => void;
|
|
218
|
-
export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
219
|
-
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
220
|
-
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
221
|
-
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
222
|
-
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
223
|
-
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
224
|
-
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
225
|
-
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
226
|
-
export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
227
|
-
export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
|
|
228
|
-
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
229
|
-
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
230
|
-
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;
|
|
231
|
-
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
232
|
-
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
233
|
-
export const wrappsbt_clone: (a: number) => number;
|
|
234
|
-
export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
235
|
-
export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
236
|
-
export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
237
|
-
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
238
|
-
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
239
|
-
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
240
|
-
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
241
|
-
export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
242
|
-
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
243
|
-
export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
244
|
-
export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
245
|
-
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
246
|
-
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
247
|
-
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
248
|
-
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
249
|
-
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
250
|
-
export const wrappsbt_input_count: (a: number) => number;
|
|
251
|
-
export const wrappsbt_new: (a: number, b: number) => number;
|
|
252
|
-
export const wrappsbt_output_count: (a: number) => number;
|
|
253
|
-
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
254
|
-
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
255
|
-
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
256
|
-
export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
257
|
-
export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
258
|
-
export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
259
|
-
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
260
|
-
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
261
|
-
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
262
|
-
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
263
|
-
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
264
|
-
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
265
|
-
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
266
|
-
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
267
|
-
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
268
|
-
export const wasmtransaction_input_count: (a: number) => number;
|
|
269
|
-
export const wasmtransaction_output_count: (a: number) => number;
|
|
270
|
-
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
271
|
-
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
272
|
-
export const wasmtransaction_lock_time: (a: number) => number;
|
|
273
|
-
export const wasmtransaction_version: (a: number) => number;
|
|
274
|
-
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
275
|
-
export const wasmzcashtransaction_version: (a: number) => number;
|
|
276
|
-
export const wrappsbt_lock_time: (a: number) => number;
|
|
277
|
-
export const wrappsbt_version: (a: number) => number;
|
|
278
279
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
279
280
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
280
281
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
@@ -69,10 +69,10 @@ function findDescriptorForAnyDerivationPath(script, derivationPaths, descriptorM
|
|
|
69
69
|
return undefined;
|
|
70
70
|
}
|
|
71
71
|
function getDerivationPaths(v) {
|
|
72
|
-
if ("bip32Derivation" in v && v.bip32Derivation) {
|
|
72
|
+
if ("bip32Derivation" in v && v.bip32Derivation && v.bip32Derivation.length > 0) {
|
|
73
73
|
return v.bip32Derivation.map((v) => v.path);
|
|
74
74
|
}
|
|
75
|
-
if ("tapBip32Derivation" in v && v.tapBip32Derivation) {
|
|
75
|
+
if ("tapBip32Derivation" in v && v.tapBip32Derivation && v.tapBip32Derivation.length > 0) {
|
|
76
76
|
return v.tapBip32Derivation.map((v) => v.path).filter((v) => v !== "" && v !== "m");
|
|
77
77
|
}
|
|
78
78
|
return undefined;
|
|
@@ -585,6 +585,15 @@ export declare class BitGoPsbt extends PsbtBase<WasmBitGoPsbt> implements IPsbtW
|
|
|
585
585
|
* ```
|
|
586
586
|
*/
|
|
587
587
|
getHalfSignedLegacyFormat(): Uint8Array;
|
|
588
|
+
/**
|
|
589
|
+
* Serialize the unsigned transaction embedded in this PSBT.
|
|
590
|
+
*
|
|
591
|
+
* Unlike {@link extractTransaction}, this does NOT require finalization or signatures.
|
|
592
|
+
* Equivalent to utxo-lib's `UtxoPsbt.getUnsignedTx().toBuffer()`.
|
|
593
|
+
*
|
|
594
|
+
* @returns The serialized unsigned transaction bytes (network/consensus encoding).
|
|
595
|
+
*/
|
|
596
|
+
getUnsignedTransaction(): Uint8Array;
|
|
588
597
|
/**
|
|
589
598
|
* Get all PSBT outputs with resolved address strings
|
|
590
599
|
*
|
|
@@ -593,6 +593,17 @@ export class BitGoPsbt extends PsbtBase {
|
|
|
593
593
|
getHalfSignedLegacyFormat() {
|
|
594
594
|
return this._wasm.extract_half_signed_legacy_tx();
|
|
595
595
|
}
|
|
596
|
+
/**
|
|
597
|
+
* Serialize the unsigned transaction embedded in this PSBT.
|
|
598
|
+
*
|
|
599
|
+
* Unlike {@link extractTransaction}, this does NOT require finalization or signatures.
|
|
600
|
+
* Equivalent to utxo-lib's `UtxoPsbt.getUnsignedTx().toBuffer()`.
|
|
601
|
+
*
|
|
602
|
+
* @returns The serialized unsigned transaction bytes (network/consensus encoding).
|
|
603
|
+
*/
|
|
604
|
+
getUnsignedTransaction() {
|
|
605
|
+
return this._wasm.get_unsigned_tx();
|
|
606
|
+
}
|
|
596
607
|
/**
|
|
597
608
|
* Get all PSBT outputs with resolved address strings
|
|
598
609
|
*
|
|
@@ -404,6 +404,12 @@ export class BitGoPsbt {
|
|
|
404
404
|
get_output_kv(index: number, key: any): Uint8Array | undefined;
|
|
405
405
|
get_outputs(): any;
|
|
406
406
|
get_outputs_with_address(): any;
|
|
407
|
+
/**
|
|
408
|
+
* Serialize the unsigned transaction embedded in this PSBT.
|
|
409
|
+
*
|
|
410
|
+
* Unlike `extract_transaction()`, this does NOT require finalization or signatures.
|
|
411
|
+
*/
|
|
412
|
+
get_unsigned_tx(): Uint8Array;
|
|
407
413
|
input_count(): number;
|
|
408
414
|
/**
|
|
409
415
|
* Check if an input is a MuSig2 keypath input.
|
|
@@ -1565,6 +1565,25 @@ export class BitGoPsbt {
|
|
|
1565
1565
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
+
/**
|
|
1569
|
+
* Serialize the unsigned transaction embedded in this PSBT.
|
|
1570
|
+
*
|
|
1571
|
+
* Unlike `extract_transaction()`, this does NOT require finalization or signatures.
|
|
1572
|
+
* @returns {Uint8Array}
|
|
1573
|
+
*/
|
|
1574
|
+
get_unsigned_tx() {
|
|
1575
|
+
try {
|
|
1576
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1577
|
+
wasm.bitgopsbt_get_unsigned_tx(retptr, this.__wbg_ptr);
|
|
1578
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1579
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1580
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1581
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
1582
|
+
return v1;
|
|
1583
|
+
} finally {
|
|
1584
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1568
1587
|
/**
|
|
1569
1588
|
* @returns {number}
|
|
1570
1589
|
*/
|
|
Binary file
|
|
@@ -23,6 +23,117 @@ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d:
|
|
|
23
23
|
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
24
24
|
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
25
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_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
28
|
+
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
29
|
+
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
30
|
+
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
31
|
+
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
32
|
+
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
33
|
+
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
34
|
+
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
35
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
36
|
+
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
37
|
+
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
38
|
+
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
39
|
+
export const inscriptionsnamespace_sign_reveal_transaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint) => void;
|
|
40
|
+
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
41
|
+
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
42
|
+
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
43
|
+
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
44
|
+
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
45
|
+
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
46
|
+
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
47
|
+
export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
48
|
+
export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
|
|
49
|
+
export const wasmdashtransaction_input_count: (a: number) => number;
|
|
50
|
+
export const wasmdashtransaction_lock_time: (a: number) => number;
|
|
51
|
+
export const wasmdashtransaction_output_count: (a: number) => number;
|
|
52
|
+
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
53
|
+
export const wasmdashtransaction_version: (a: number) => number;
|
|
54
|
+
export const wasmdimensions_empty: () => number;
|
|
55
|
+
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
56
|
+
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
57
|
+
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
58
|
+
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
59
|
+
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
60
|
+
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
61
|
+
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
62
|
+
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
63
|
+
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
64
|
+
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
65
|
+
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
66
|
+
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
67
|
+
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
68
|
+
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
69
|
+
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
70
|
+
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
71
|
+
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
72
|
+
export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
73
|
+
export const wasmtransaction_create: () => number;
|
|
74
|
+
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
75
|
+
export const wasmtransaction_get_inputs: (a: number, b: number) => void;
|
|
76
|
+
export const wasmtransaction_get_outputs: (a: number, b: number) => void;
|
|
77
|
+
export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
78
|
+
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
79
|
+
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
80
|
+
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
81
|
+
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
82
|
+
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
83
|
+
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
84
|
+
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
85
|
+
export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
86
|
+
export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
|
|
87
|
+
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
88
|
+
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
89
|
+
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;
|
|
90
|
+
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
91
|
+
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
92
|
+
export const wrappsbt_clone: (a: number) => number;
|
|
93
|
+
export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
94
|
+
export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
95
|
+
export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
96
|
+
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
97
|
+
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
98
|
+
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
99
|
+
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
100
|
+
export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
101
|
+
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
102
|
+
export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
103
|
+
export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
104
|
+
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
105
|
+
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
106
|
+
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
107
|
+
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
108
|
+
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
109
|
+
export const wrappsbt_input_count: (a: number) => number;
|
|
110
|
+
export const wrappsbt_new: (a: number, b: number) => number;
|
|
111
|
+
export const wrappsbt_output_count: (a: number) => number;
|
|
112
|
+
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
113
|
+
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
114
|
+
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
115
|
+
export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
116
|
+
export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
117
|
+
export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
118
|
+
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
119
|
+
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
120
|
+
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
121
|
+
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
122
|
+
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
123
|
+
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
124
|
+
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
125
|
+
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
126
|
+
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
127
|
+
export const wasmtransaction_input_count: (a: number) => number;
|
|
128
|
+
export const wasmtransaction_output_count: (a: number) => number;
|
|
129
|
+
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
130
|
+
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
131
|
+
export const wasmtransaction_lock_time: (a: number) => number;
|
|
132
|
+
export const wasmtransaction_version: (a: number) => number;
|
|
133
|
+
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
134
|
+
export const wasmzcashtransaction_version: (a: number) => number;
|
|
135
|
+
export const wrappsbt_lock_time: (a: number) => number;
|
|
136
|
+
export const wrappsbt_version: (a: number) => number;
|
|
26
137
|
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
27
138
|
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
28
139
|
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
@@ -79,6 +190,7 @@ export const bitgopsbt_get_network_type: (a: number, b: number) => void;
|
|
|
79
190
|
export const bitgopsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
80
191
|
export const bitgopsbt_get_outputs: (a: number, b: number) => void;
|
|
81
192
|
export const bitgopsbt_get_outputs_with_address: (a: number, b: number) => void;
|
|
193
|
+
export const bitgopsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
82
194
|
export const bitgopsbt_input_count: (a: number) => number;
|
|
83
195
|
export const bitgopsbt_is_musig2_input: (a: number, b: number) => number;
|
|
84
196
|
export const bitgopsbt_lock_time: (a: number) => number;
|
|
@@ -164,117 +276,6 @@ export const parseTxToJson: (a: number, b: number, c: number, d: number, e: numb
|
|
|
164
276
|
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
165
277
|
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
166
278
|
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
167
|
-
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
168
|
-
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
169
|
-
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
170
|
-
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
171
|
-
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
172
|
-
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
173
|
-
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
174
|
-
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
175
|
-
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
176
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
177
|
-
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
178
|
-
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
179
|
-
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
180
|
-
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;
|
|
181
|
-
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
182
|
-
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
183
|
-
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
184
|
-
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
185
|
-
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
186
|
-
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
187
|
-
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
188
|
-
export const wasmdashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
189
|
-
export const wasmdashtransaction_get_txid: (a: number, b: number) => void;
|
|
190
|
-
export const wasmdashtransaction_input_count: (a: number) => number;
|
|
191
|
-
export const wasmdashtransaction_lock_time: (a: number) => number;
|
|
192
|
-
export const wasmdashtransaction_output_count: (a: number) => number;
|
|
193
|
-
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
194
|
-
export const wasmdashtransaction_version: (a: number) => number;
|
|
195
|
-
export const wasmdimensions_empty: () => number;
|
|
196
|
-
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
197
|
-
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
198
|
-
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
199
|
-
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
200
|
-
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
201
|
-
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
202
|
-
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
203
|
-
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
204
|
-
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
205
|
-
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
206
|
-
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
207
|
-
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
208
|
-
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
209
|
-
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
210
|
-
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
211
|
-
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
212
|
-
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
213
|
-
export const wasmtransaction_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
214
|
-
export const wasmtransaction_create: () => number;
|
|
215
|
-
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
216
|
-
export const wasmtransaction_get_inputs: (a: number, b: number) => void;
|
|
217
|
-
export const wasmtransaction_get_outputs: (a: number, b: number) => void;
|
|
218
|
-
export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
219
|
-
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
220
|
-
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
221
|
-
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
222
|
-
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
223
|
-
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
224
|
-
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
225
|
-
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
226
|
-
export const wasmzcashtransaction_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
227
|
-
export const wasmzcashtransaction_get_txid: (a: number, b: number) => void;
|
|
228
|
-
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
229
|
-
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
230
|
-
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;
|
|
231
|
-
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
232
|
-
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
233
|
-
export const wrappsbt_clone: (a: number) => number;
|
|
234
|
-
export const wrappsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
235
|
-
export const wrappsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
236
|
-
export const wrappsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
237
|
-
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
238
|
-
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
239
|
-
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
240
|
-
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
241
|
-
export const wrappsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
242
|
-
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
243
|
-
export const wrappsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
244
|
-
export const wrappsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
245
|
-
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
246
|
-
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
247
|
-
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
248
|
-
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
249
|
-
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
250
|
-
export const wrappsbt_input_count: (a: number) => number;
|
|
251
|
-
export const wrappsbt_new: (a: number, b: number) => number;
|
|
252
|
-
export const wrappsbt_output_count: (a: number) => number;
|
|
253
|
-
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
254
|
-
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
255
|
-
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
256
|
-
export const wrappsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
257
|
-
export const wrappsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
258
|
-
export const wrappsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
259
|
-
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
260
|
-
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
261
|
-
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
262
|
-
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
263
|
-
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
264
|
-
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
265
|
-
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
266
|
-
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
267
|
-
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
268
|
-
export const wasmtransaction_input_count: (a: number) => number;
|
|
269
|
-
export const wasmtransaction_output_count: (a: number) => number;
|
|
270
|
-
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
271
|
-
export const wasmzcashtransaction_output_count: (a: number) => number;
|
|
272
|
-
export const wasmtransaction_lock_time: (a: number) => number;
|
|
273
|
-
export const wasmtransaction_version: (a: number) => number;
|
|
274
|
-
export const wasmzcashtransaction_lock_time: (a: number) => number;
|
|
275
|
-
export const wasmzcashtransaction_version: (a: number) => number;
|
|
276
|
-
export const wrappsbt_lock_time: (a: number) => number;
|
|
277
|
-
export const wrappsbt_version: (a: number) => number;
|
|
278
279
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
279
280
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
280
281
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|