@bitgo/wasm-utxo 5.5.1 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/js/fixedScriptWallet/BitGoPsbt.d.ts +35 -0
- package/dist/cjs/js/fixedScriptWallet/BitGoPsbt.js +39 -0
- package/dist/cjs/js/wasm/wasm_utxo.d.ts +22 -0
- package/dist/cjs/js/wasm/wasm_utxo.js +49 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm.d.ts +166 -164
- package/dist/esm/js/fixedScriptWallet/BitGoPsbt.d.ts +35 -0
- package/dist/esm/js/fixedScriptWallet/BitGoPsbt.js +39 -0
- package/dist/esm/js/wasm/wasm_utxo.d.ts +22 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.js +49 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm.d.ts +166 -164
- package/package.json +1 -1
|
@@ -610,6 +610,41 @@ export declare class BitGoPsbt<TOutput extends ParsedOutput = ParsedOutput> exte
|
|
|
610
610
|
* @returns The serialized unsigned transaction bytes (network/consensus encoding).
|
|
611
611
|
*/
|
|
612
612
|
getUnsignedTransaction(): Uint8Array;
|
|
613
|
+
/**
|
|
614
|
+
* Returns each input's declared sighash type (BIP-174 PSBT_IN_SIGHASH_TYPE),
|
|
615
|
+
* in input order.
|
|
616
|
+
*
|
|
617
|
+
* Entries are `undefined` when the input does not declare a sighash type, in
|
|
618
|
+
* which case the signer's default sighash type applies.
|
|
619
|
+
*/
|
|
620
|
+
getInputSighashTypes(): (number | undefined)[];
|
|
621
|
+
/**
|
|
622
|
+
* Asserts the sighash policy required when signing an externally supplied
|
|
623
|
+
* PSBT: every input must commit to the entire transaction.
|
|
624
|
+
*
|
|
625
|
+
* For every input this checks that
|
|
626
|
+
*
|
|
627
|
+
* 1. the declared sighash type (PSBT_IN_SIGHASH_TYPE), if present, commits
|
|
628
|
+
* to every input and every output: SIGHASH_ALL (0x01) — SIGHASH_ALL |
|
|
629
|
+
* SIGHASH_FORKID (0x41) on BCH-family coins — or SIGHASH_DEFAULT
|
|
630
|
+
* (0x00) / SIGHASH_ALL (0x01) on Taproot inputs. An absent sighash type
|
|
631
|
+
* is accepted: the signer then applies its default, which commits to
|
|
632
|
+
* the entire transaction.
|
|
633
|
+
* 2. every signature already present on the input (ECDSA partial
|
|
634
|
+
* signatures, Taproot key-path and script-path signatures) uses such a
|
|
635
|
+
* sighash type. MuSig2 partial signatures carry no sighash byte; the
|
|
636
|
+
* declared sighash type checked above governs them.
|
|
637
|
+
*
|
|
638
|
+
* SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_ANYONECANPAY, and combinations
|
|
639
|
+
* thereof leave outputs (or inputs) uncommitted, so a signature produced
|
|
640
|
+
* under one of them does not bind the signer to the transaction the signer
|
|
641
|
+
* reviewed. Callers that ingest foreign PSBTs must run this check before
|
|
642
|
+
* signing and again afterwards.
|
|
643
|
+
*
|
|
644
|
+
* @throws Error if any input declares a sighash type, or carries a
|
|
645
|
+
* signature, that does not commit to the entire transaction.
|
|
646
|
+
*/
|
|
647
|
+
assertSighashAllPolicy(): void;
|
|
613
648
|
/**
|
|
614
649
|
* Get all PSBT outputs with resolved address strings
|
|
615
650
|
*
|
|
@@ -626,6 +626,45 @@ class BitGoPsbt extends psbtBase_js_1.PsbtBase {
|
|
|
626
626
|
getUnsignedTransaction() {
|
|
627
627
|
return this._wasm.get_unsigned_tx();
|
|
628
628
|
}
|
|
629
|
+
/**
|
|
630
|
+
* Returns each input's declared sighash type (BIP-174 PSBT_IN_SIGHASH_TYPE),
|
|
631
|
+
* in input order.
|
|
632
|
+
*
|
|
633
|
+
* Entries are `undefined` when the input does not declare a sighash type, in
|
|
634
|
+
* which case the signer's default sighash type applies.
|
|
635
|
+
*/
|
|
636
|
+
getInputSighashTypes() {
|
|
637
|
+
return this._wasm.get_input_sighash_types().map((sighashType) => sighashType ?? undefined);
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Asserts the sighash policy required when signing an externally supplied
|
|
641
|
+
* PSBT: every input must commit to the entire transaction.
|
|
642
|
+
*
|
|
643
|
+
* For every input this checks that
|
|
644
|
+
*
|
|
645
|
+
* 1. the declared sighash type (PSBT_IN_SIGHASH_TYPE), if present, commits
|
|
646
|
+
* to every input and every output: SIGHASH_ALL (0x01) — SIGHASH_ALL |
|
|
647
|
+
* SIGHASH_FORKID (0x41) on BCH-family coins — or SIGHASH_DEFAULT
|
|
648
|
+
* (0x00) / SIGHASH_ALL (0x01) on Taproot inputs. An absent sighash type
|
|
649
|
+
* is accepted: the signer then applies its default, which commits to
|
|
650
|
+
* the entire transaction.
|
|
651
|
+
* 2. every signature already present on the input (ECDSA partial
|
|
652
|
+
* signatures, Taproot key-path and script-path signatures) uses such a
|
|
653
|
+
* sighash type. MuSig2 partial signatures carry no sighash byte; the
|
|
654
|
+
* declared sighash type checked above governs them.
|
|
655
|
+
*
|
|
656
|
+
* SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_ANYONECANPAY, and combinations
|
|
657
|
+
* thereof leave outputs (or inputs) uncommitted, so a signature produced
|
|
658
|
+
* under one of them does not bind the signer to the transaction the signer
|
|
659
|
+
* reviewed. Callers that ingest foreign PSBTs must run this check before
|
|
660
|
+
* signing and again afterwards.
|
|
661
|
+
*
|
|
662
|
+
* @throws Error if any input declares a sighash type, or carries a
|
|
663
|
+
* signature, that does not commit to the entire transaction.
|
|
664
|
+
*/
|
|
665
|
+
assertSighashAllPolicy() {
|
|
666
|
+
this._wasm.assert_sighash_all_policy();
|
|
667
|
+
}
|
|
629
668
|
/**
|
|
630
669
|
* Get all PSBT outputs with resolved address strings
|
|
631
670
|
*
|
|
@@ -216,6 +216,20 @@ export class BitGoPsbt {
|
|
|
216
216
|
add_wallet_input_at_index(index: number, txid: string, vout: number, value: bigint, wallet_keys: WasmRootWalletKeys, chain: number, derivation_index: number, signer?: string | null, cosigner?: string | null, sequence?: number | null, prev_tx?: Uint8Array | null): number;
|
|
217
217
|
add_wallet_output(chain: number, index: number, value: bigint, wallet_keys: WasmRootWalletKeys): number;
|
|
218
218
|
add_wallet_output_at_index(index: number, chain: number, derivation_index: number, value: bigint, wallet_keys: WasmRootWalletKeys): number;
|
|
219
|
+
/**
|
|
220
|
+
* Asserts the sighash policy required when signing an externally
|
|
221
|
+
* supplied PSBT: every input must commit to the entire transaction.
|
|
222
|
+
*
|
|
223
|
+
* Rejects SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_ANYONECANPAY, and
|
|
224
|
+
* combinations thereof — in both the declared per-input sighash type
|
|
225
|
+
* and the signatures already present in the PSBT — because signatures
|
|
226
|
+
* produced under those types do not bind the signer to the outputs of
|
|
227
|
+
* the transaction. Accepted types are SIGHASH_ALL (0x01),
|
|
228
|
+
* SIGHASH_ALL | SIGHASH_FORKID (0x41) on BCH-family networks, and
|
|
229
|
+
* SIGHASH_DEFAULT (0x00) / SIGHASH_ALL (0x01) on Taproot inputs; an
|
|
230
|
+
* absent sighash type uses the signer default.
|
|
231
|
+
*/
|
|
232
|
+
assert_sighash_all_policy(): void;
|
|
219
233
|
/**
|
|
220
234
|
* Merge all input fields from a raw PSBT (given as bytes) into this PSBT.
|
|
221
235
|
*
|
|
@@ -493,6 +507,14 @@ export class BitGoPsbt {
|
|
|
493
507
|
get_global_xpubs(): any;
|
|
494
508
|
get_input_key_values(index: number): any;
|
|
495
509
|
get_input_kv(index: number, key: any): Uint8Array | undefined;
|
|
510
|
+
/**
|
|
511
|
+
* Returns each input's declared sighash type (BIP-174
|
|
512
|
+
* `PSBT_IN_SIGHASH_TYPE`), in input order.
|
|
513
|
+
*
|
|
514
|
+
* Entries are `null` when the input does not declare a sighash type, in
|
|
515
|
+
* which case the signer's default sighash type applies.
|
|
516
|
+
*/
|
|
517
|
+
get_input_sighash_types(): any;
|
|
496
518
|
get_inputs(): any;
|
|
497
519
|
get_kv(key: any): Uint8Array | undefined;
|
|
498
520
|
/**
|
|
@@ -918,6 +918,32 @@ class BitGoPsbt {
|
|
|
918
918
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
+
/**
|
|
922
|
+
* Asserts the sighash policy required when signing an externally
|
|
923
|
+
* supplied PSBT: every input must commit to the entire transaction.
|
|
924
|
+
*
|
|
925
|
+
* Rejects SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_ANYONECANPAY, and
|
|
926
|
+
* combinations thereof — in both the declared per-input sighash type
|
|
927
|
+
* and the signatures already present in the PSBT — because signatures
|
|
928
|
+
* produced under those types do not bind the signer to the outputs of
|
|
929
|
+
* the transaction. Accepted types are SIGHASH_ALL (0x01),
|
|
930
|
+
* SIGHASH_ALL | SIGHASH_FORKID (0x41) on BCH-family networks, and
|
|
931
|
+
* SIGHASH_DEFAULT (0x00) / SIGHASH_ALL (0x01) on Taproot inputs; an
|
|
932
|
+
* absent sighash type uses the signer default.
|
|
933
|
+
*/
|
|
934
|
+
assert_sighash_all_policy() {
|
|
935
|
+
try {
|
|
936
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
937
|
+
wasm.bitgopsbt_assert_sighash_all_policy(retptr, this.__wbg_ptr);
|
|
938
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
939
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
940
|
+
if (r1) {
|
|
941
|
+
throw takeObject(r0);
|
|
942
|
+
}
|
|
943
|
+
} finally {
|
|
944
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
921
947
|
/**
|
|
922
948
|
* Merge all input fields from a raw PSBT (given as bytes) into this PSBT.
|
|
923
949
|
*
|
|
@@ -1739,6 +1765,29 @@ class BitGoPsbt {
|
|
|
1739
1765
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1740
1766
|
}
|
|
1741
1767
|
}
|
|
1768
|
+
/**
|
|
1769
|
+
* Returns each input's declared sighash type (BIP-174
|
|
1770
|
+
* `PSBT_IN_SIGHASH_TYPE`), in input order.
|
|
1771
|
+
*
|
|
1772
|
+
* Entries are `null` when the input does not declare a sighash type, in
|
|
1773
|
+
* which case the signer's default sighash type applies.
|
|
1774
|
+
* @returns {any}
|
|
1775
|
+
*/
|
|
1776
|
+
get_input_sighash_types() {
|
|
1777
|
+
try {
|
|
1778
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1779
|
+
wasm.bitgopsbt_get_input_sighash_types(retptr, this.__wbg_ptr);
|
|
1780
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1781
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1782
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1783
|
+
if (r2) {
|
|
1784
|
+
throw takeObject(r1);
|
|
1785
|
+
}
|
|
1786
|
+
return takeObject(r0);
|
|
1787
|
+
} finally {
|
|
1788
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1742
1791
|
/**
|
|
1743
1792
|
* @returns {any}
|
|
1744
1793
|
*/
|
|
Binary file
|
|
@@ -1,114 +1,37 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
4
|
+
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
6
|
+
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
7
|
+
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
8
|
+
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
9
|
+
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
10
|
+
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
11
|
+
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
12
|
+
export const __wbg_ironwoodwitness_free: (a: number, b: number) => void;
|
|
7
13
|
export const __wbg_wasmbip32_free: (a: number, b: number) => void;
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
14
|
+
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
15
|
+
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
10
16
|
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const bitgopsbt_combine_ironwood_proof: (a: number, b: number, c: number, d: number) => void;
|
|
30
|
-
export const bitgopsbt_combine_musig2_nonces: (a: number, b: number, c: number) => void;
|
|
31
|
-
export const bitgopsbt_consensus_branch_id: (a: number) => number;
|
|
32
|
-
export const bitgopsbt_create_empty: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
33
|
-
export const bitgopsbt_create_empty_zcash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
34
|
-
export const bitgopsbt_create_empty_zcash_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
35
|
-
export const bitgopsbt_create_empty_zcash_v6: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
36
|
-
export const bitgopsbt_create_empty_zcash_v6_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
37
|
-
export const bitgopsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
38
|
-
export const bitgopsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
39
|
-
export const bitgopsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
40
|
-
export const bitgopsbt_expiry_height: (a: number) => number;
|
|
41
|
-
export const bitgopsbt_extract_bitcoin_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
42
|
-
export const bitgopsbt_extract_dash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
43
|
-
export const bitgopsbt_extract_half_signed_legacy_tx: (a: number, b: number) => void;
|
|
44
|
-
export const bitgopsbt_extract_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
45
|
-
export const bitgopsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
46
|
-
export const bitgopsbt_finalize_all_inputs: (a: number, b: number) => void;
|
|
47
|
-
export const bitgopsbt_from_bytes: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
48
|
-
export const bitgopsbt_from_half_signed_legacy_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
49
|
-
export const bitgopsbt_from_half_signed_legacy_transaction_dash: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
50
|
-
export const bitgopsbt_from_network_format: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
51
|
-
export const bitgopsbt_from_network_format_dash: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
52
|
-
export const bitgopsbt_from_network_format_zcash_with_block_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
53
|
-
export const bitgopsbt_from_network_format_zcash_with_branch_id: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
54
|
-
export const bitgopsbt_generate_musig2_nonces: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
55
|
-
export const bitgopsbt_get_global_xpubs: (a: number) => number;
|
|
56
|
-
export const bitgopsbt_get_input_key_values: (a: number, b: number, c: number) => void;
|
|
57
|
-
export const bitgopsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
58
|
-
export const bitgopsbt_get_inputs: (a: number, b: number) => void;
|
|
59
|
-
export const bitgopsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
60
|
-
export const bitgopsbt_get_network_type: (a: number, b: number) => void;
|
|
61
|
-
export const bitgopsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
62
|
-
export const bitgopsbt_get_outputs: (a: number, b: number) => void;
|
|
63
|
-
export const bitgopsbt_get_outputs_with_address: (a: number, b: number) => void;
|
|
64
|
-
export const bitgopsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
65
|
-
export const bitgopsbt_input_count: (a: number) => number;
|
|
66
|
-
export const bitgopsbt_ironwood_pczt_bytes: (a: number, b: number) => void;
|
|
67
|
-
export const bitgopsbt_ironwood_v6_transparent_sighash: (a: number, b: number, c: number) => void;
|
|
68
|
-
export const bitgopsbt_ironwood_v6_txid: (a: number, b: number) => void;
|
|
69
|
-
export const bitgopsbt_is_musig2_input: (a: number, b: number) => number;
|
|
70
|
-
export const bitgopsbt_lock_time: (a: number) => number;
|
|
71
|
-
export const bitgopsbt_network: (a: number, b: number) => void;
|
|
72
|
-
export const bitgopsbt_output_count: (a: number) => number;
|
|
73
|
-
export const bitgopsbt_parse_outputs_with_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
74
|
-
export const bitgopsbt_parse_transaction_with_wallet_keys: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
75
|
-
export const bitgopsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
76
|
-
export const bitgopsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
77
|
-
export const bitgopsbt_serialize: (a: number, b: number) => void;
|
|
78
|
-
export const bitgopsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
79
|
-
export const bitgopsbt_set_ironwood_out_ciphertext: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
80
|
-
export const bitgopsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
81
|
-
export const bitgopsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
82
|
-
export const bitgopsbt_sign_all_musig2_inputs: (a: number, b: number, c: number) => void;
|
|
83
|
-
export const bitgopsbt_sign_all_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
84
|
-
export const bitgopsbt_sign_all_wallet_inputs: (a: number, b: number, c: number) => void;
|
|
85
|
-
export const bitgopsbt_sign_ironwood_v6: (a: number, b: number, c: number, d: number) => void;
|
|
86
|
-
export const bitgopsbt_sign_musig2_input: (a: number, b: number, c: number, d: number) => void;
|
|
87
|
-
export const bitgopsbt_sign_single_input_with_privkey: (a: number, b: number, c: number, d: number) => void;
|
|
88
|
-
export const bitgopsbt_sign_single_input_with_xpriv: (a: number, b: number, c: number, d: number) => void;
|
|
89
|
-
export const bitgopsbt_sign_with_privkey: (a: number, b: number, c: number, d: number) => void;
|
|
90
|
-
export const bitgopsbt_sign_with_xpriv: (a: number, b: number, c: number, d: number) => void;
|
|
91
|
-
export const bitgopsbt_transparent_output_unified_address: (a: number, b: number, c: number) => void;
|
|
92
|
-
export const bitgopsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
93
|
-
export const bitgopsbt_verify_ironwood_v6_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
|
|
94
|
-
export const bitgopsbt_verify_ironwood_v6_signature_with_xpub: (a: number, b: number, c: number, d: number) => void;
|
|
95
|
-
export const bitgopsbt_verify_replay_protection_signature: (a: number, b: number, c: number, d: number) => void;
|
|
96
|
-
export const bitgopsbt_verify_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
|
|
97
|
-
export const bitgopsbt_verify_signature_with_xpub: (a: number, b: number, c: number, d: number) => void;
|
|
98
|
-
export const bitgopsbt_version: (a: number) => number;
|
|
99
|
-
export const bitgopsbt_version_group_id: (a: number) => number;
|
|
100
|
-
export const fixedscriptwalletnamespace_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
101
|
-
export const fixedscriptwalletnamespace_address_with_network_str: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
102
|
-
export const fixedscriptwalletnamespace_chain_code_table: () => number;
|
|
103
|
-
export const fixedscriptwalletnamespace_create_op_return_script: (a: number, b: number, c: number) => void;
|
|
104
|
-
export const fixedscriptwalletnamespace_get_bitgo_key_subtypes: () => number;
|
|
105
|
-
export const fixedscriptwalletnamespace_output_script: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
106
|
-
export const fixedscriptwalletnamespace_output_script_with_network_str: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
107
|
-
export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
|
|
108
|
-
export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
109
|
-
export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
110
|
-
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
111
|
-
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
17
|
+
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
18
|
+
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
19
|
+
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
20
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
21
|
+
export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
|
|
22
|
+
export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
|
|
23
|
+
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;
|
|
24
|
+
export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
|
|
25
|
+
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;
|
|
26
|
+
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;
|
|
27
|
+
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;
|
|
28
|
+
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;
|
|
29
|
+
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
30
|
+
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;
|
|
31
|
+
export const ironwood_build_witness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
32
|
+
export const ironwood_build_witness_from_shard: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
33
|
+
export const ironwoodwitness_auth_path: (a: number, b: number) => void;
|
|
34
|
+
export const ironwoodwitness_position: (a: number) => number;
|
|
112
35
|
export const wasmbip32_chain_code: (a: number) => number;
|
|
113
36
|
export const wasmbip32_depth: (a: number) => number;
|
|
114
37
|
export const wasmbip32_derive: (a: number, b: number, c: number) => void;
|
|
@@ -131,63 +54,6 @@ export const wasmbip32_private_key: (a: number) => number;
|
|
|
131
54
|
export const wasmbip32_public_key: (a: number) => number;
|
|
132
55
|
export const wasmbip32_to_base58: (a: number, b: number) => void;
|
|
133
56
|
export const wasmbip32_to_wif: (a: number, b: number) => void;
|
|
134
|
-
export const wasmdimensions_empty: () => number;
|
|
135
|
-
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
136
|
-
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
137
|
-
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
138
|
-
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
139
|
-
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
140
|
-
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
141
|
-
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
142
|
-
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
143
|
-
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
144
|
-
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
145
|
-
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
146
|
-
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
147
|
-
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
148
|
-
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
149
|
-
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
150
|
-
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
151
|
-
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
152
|
-
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
153
|
-
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
154
|
-
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
155
|
-
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
156
|
-
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;
|
|
157
|
-
export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
158
|
-
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
159
|
-
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
160
|
-
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
161
|
-
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
162
|
-
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
163
|
-
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
164
|
-
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
165
|
-
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
166
|
-
export const __wbg_ironwoodwitness_free: (a: number, b: number) => void;
|
|
167
|
-
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
168
|
-
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
169
|
-
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
170
|
-
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
171
|
-
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
172
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
173
|
-
export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
|
|
174
|
-
export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
|
|
175
|
-
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
176
|
-
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
177
|
-
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;
|
|
178
|
-
export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
|
|
179
|
-
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;
|
|
180
|
-
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;
|
|
181
|
-
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;
|
|
182
|
-
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;
|
|
183
|
-
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
184
|
-
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;
|
|
185
|
-
export const ironwood_build_witness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
186
|
-
export const ironwood_build_witness_from_shard: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
187
|
-
export const ironwoodwitness_auth_path: (a: number, b: number) => void;
|
|
188
|
-
export const ironwoodwitness_position: (a: number) => number;
|
|
189
|
-
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
190
|
-
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
191
57
|
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
192
58
|
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
193
59
|
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
@@ -208,6 +74,11 @@ export const wasmecpair_public_key: (a: number) => number;
|
|
|
208
74
|
export const wasmecpair_to_wif: (a: number, b: number) => void;
|
|
209
75
|
export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
|
|
210
76
|
export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
|
|
77
|
+
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
78
|
+
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
79
|
+
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
80
|
+
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
81
|
+
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;
|
|
211
82
|
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
212
83
|
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
213
84
|
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
@@ -220,6 +91,7 @@ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c:
|
|
|
220
91
|
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
221
92
|
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
222
93
|
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
94
|
+
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
223
95
|
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
224
96
|
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
225
97
|
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
@@ -298,6 +170,7 @@ export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
|
|
|
298
170
|
export const zcashv6transaction_toBytes: (a: number, b: number) => void;
|
|
299
171
|
export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
300
172
|
export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
|
|
173
|
+
export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
301
174
|
export const wasmtransaction_input_count: (a: number) => number;
|
|
302
175
|
export const wasmtransaction_output_count: (a: number) => number;
|
|
303
176
|
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
@@ -310,7 +183,6 @@ export const wrappsbt_lock_time: (a: number) => number;
|
|
|
310
183
|
export const wrappsbt_version: (a: number) => number;
|
|
311
184
|
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
312
185
|
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
313
|
-
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
314
186
|
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
315
187
|
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
316
188
|
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
@@ -331,9 +203,139 @@ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d:
|
|
|
331
203
|
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
332
204
|
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
333
205
|
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
206
|
+
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
207
|
+
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
208
|
+
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
209
|
+
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
210
|
+
export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
|
|
211
|
+
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;
|
|
212
|
+
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;
|
|
213
|
+
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, l: number, m: number) => void;
|
|
214
|
+
export const bitgopsbt_add_ironwood_outputs: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
215
|
+
export const bitgopsbt_add_ironwood_v6_signature: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
216
|
+
export const bitgopsbt_add_output: (a: number, b: number, c: number, d: number, e: bigint) => void;
|
|
217
|
+
export const bitgopsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
218
|
+
export const bitgopsbt_add_output_with_address: (a: number, b: number, c: number, d: number, e: bigint) => void;
|
|
219
|
+
export const bitgopsbt_add_output_with_address_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
220
|
+
export const bitgopsbt_add_paygo_attestation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
221
|
+
export const bitgopsbt_add_replay_protection_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
222
|
+
export const bitgopsbt_add_replay_protection_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: number) => void;
|
|
223
|
+
export const bitgopsbt_add_transparent_output: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => void;
|
|
224
|
+
export const bitgopsbt_add_wallet_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
|
|
225
|
+
export const bitgopsbt_add_wallet_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, m: number, n: number, o: number, p: number, q: number) => void;
|
|
226
|
+
export const bitgopsbt_add_wallet_output: (a: number, b: number, c: number, d: number, e: bigint, f: number) => void;
|
|
227
|
+
export const bitgopsbt_add_wallet_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number) => void;
|
|
228
|
+
export const bitgopsbt_assert_sighash_all_policy: (a: number, b: number) => void;
|
|
229
|
+
export const bitgopsbt_combine_inputs: (a: number, b: number, c: number, d: number) => void;
|
|
230
|
+
export const bitgopsbt_combine_ironwood_proof: (a: number, b: number, c: number, d: number) => void;
|
|
231
|
+
export const bitgopsbt_combine_musig2_nonces: (a: number, b: number, c: number) => void;
|
|
232
|
+
export const bitgopsbt_consensus_branch_id: (a: number) => number;
|
|
233
|
+
export const bitgopsbt_create_empty: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
234
|
+
export const bitgopsbt_create_empty_zcash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
235
|
+
export const bitgopsbt_create_empty_zcash_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
236
|
+
export const bitgopsbt_create_empty_zcash_v6: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
237
|
+
export const bitgopsbt_create_empty_zcash_v6_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
238
|
+
export const bitgopsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
239
|
+
export const bitgopsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
240
|
+
export const bitgopsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
241
|
+
export const bitgopsbt_expiry_height: (a: number) => number;
|
|
242
|
+
export const bitgopsbt_extract_bitcoin_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
243
|
+
export const bitgopsbt_extract_dash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
244
|
+
export const bitgopsbt_extract_half_signed_legacy_tx: (a: number, b: number) => void;
|
|
245
|
+
export const bitgopsbt_extract_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
246
|
+
export const bitgopsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
247
|
+
export const bitgopsbt_finalize_all_inputs: (a: number, b: number) => void;
|
|
248
|
+
export const bitgopsbt_from_bytes: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
249
|
+
export const bitgopsbt_from_half_signed_legacy_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
250
|
+
export const bitgopsbt_from_half_signed_legacy_transaction_dash: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
251
|
+
export const bitgopsbt_from_network_format: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
252
|
+
export const bitgopsbt_from_network_format_dash: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
253
|
+
export const bitgopsbt_from_network_format_zcash_with_block_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
254
|
+
export const bitgopsbt_from_network_format_zcash_with_branch_id: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
255
|
+
export const bitgopsbt_generate_musig2_nonces: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
256
|
+
export const bitgopsbt_get_global_xpubs: (a: number) => number;
|
|
257
|
+
export const bitgopsbt_get_input_key_values: (a: number, b: number, c: number) => void;
|
|
258
|
+
export const bitgopsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
259
|
+
export const bitgopsbt_get_input_sighash_types: (a: number, b: number) => void;
|
|
260
|
+
export const bitgopsbt_get_inputs: (a: number, b: number) => void;
|
|
261
|
+
export const bitgopsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
262
|
+
export const bitgopsbt_get_network_type: (a: number, b: number) => void;
|
|
263
|
+
export const bitgopsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
264
|
+
export const bitgopsbt_get_outputs: (a: number, b: number) => void;
|
|
265
|
+
export const bitgopsbt_get_outputs_with_address: (a: number, b: number) => void;
|
|
266
|
+
export const bitgopsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
267
|
+
export const bitgopsbt_input_count: (a: number) => number;
|
|
268
|
+
export const bitgopsbt_ironwood_pczt_bytes: (a: number, b: number) => void;
|
|
269
|
+
export const bitgopsbt_ironwood_v6_transparent_sighash: (a: number, b: number, c: number) => void;
|
|
270
|
+
export const bitgopsbt_ironwood_v6_txid: (a: number, b: number) => void;
|
|
271
|
+
export const bitgopsbt_is_musig2_input: (a: number, b: number) => number;
|
|
272
|
+
export const bitgopsbt_lock_time: (a: number) => number;
|
|
273
|
+
export const bitgopsbt_network: (a: number, b: number) => void;
|
|
274
|
+
export const bitgopsbt_output_count: (a: number) => number;
|
|
275
|
+
export const bitgopsbt_parse_outputs_with_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
276
|
+
export const bitgopsbt_parse_transaction_with_wallet_keys: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
277
|
+
export const bitgopsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
278
|
+
export const bitgopsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
279
|
+
export const bitgopsbt_serialize: (a: number, b: number) => void;
|
|
280
|
+
export const bitgopsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
281
|
+
export const bitgopsbt_set_ironwood_out_ciphertext: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
282
|
+
export const bitgopsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
283
|
+
export const bitgopsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
284
|
+
export const bitgopsbt_sign_all_musig2_inputs: (a: number, b: number, c: number) => void;
|
|
285
|
+
export const bitgopsbt_sign_all_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
286
|
+
export const bitgopsbt_sign_all_wallet_inputs: (a: number, b: number, c: number) => void;
|
|
287
|
+
export const bitgopsbt_sign_ironwood_v6: (a: number, b: number, c: number, d: number) => void;
|
|
288
|
+
export const bitgopsbt_sign_musig2_input: (a: number, b: number, c: number, d: number) => void;
|
|
289
|
+
export const bitgopsbt_sign_single_input_with_privkey: (a: number, b: number, c: number, d: number) => void;
|
|
290
|
+
export const bitgopsbt_sign_single_input_with_xpriv: (a: number, b: number, c: number, d: number) => void;
|
|
291
|
+
export const bitgopsbt_sign_with_privkey: (a: number, b: number, c: number, d: number) => void;
|
|
292
|
+
export const bitgopsbt_sign_with_xpriv: (a: number, b: number, c: number, d: number) => void;
|
|
293
|
+
export const bitgopsbt_transparent_output_unified_address: (a: number, b: number, c: number) => void;
|
|
294
|
+
export const bitgopsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
295
|
+
export const bitgopsbt_verify_ironwood_v6_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
|
|
296
|
+
export const bitgopsbt_verify_ironwood_v6_signature_with_xpub: (a: number, b: number, c: number, d: number) => void;
|
|
297
|
+
export const bitgopsbt_verify_replay_protection_signature: (a: number, b: number, c: number, d: number) => void;
|
|
298
|
+
export const bitgopsbt_verify_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
|
|
299
|
+
export const bitgopsbt_verify_signature_with_xpub: (a: number, b: number, c: number, d: number) => void;
|
|
300
|
+
export const bitgopsbt_version: (a: number) => number;
|
|
301
|
+
export const bitgopsbt_version_group_id: (a: number) => number;
|
|
302
|
+
export const fixedscriptwalletnamespace_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
303
|
+
export const fixedscriptwalletnamespace_address_with_network_str: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
304
|
+
export const fixedscriptwalletnamespace_chain_code_table: () => number;
|
|
305
|
+
export const fixedscriptwalletnamespace_create_op_return_script: (a: number, b: number, c: number) => void;
|
|
306
|
+
export const fixedscriptwalletnamespace_get_bitgo_key_subtypes: () => number;
|
|
307
|
+
export const fixedscriptwalletnamespace_output_script: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
308
|
+
export const fixedscriptwalletnamespace_output_script_with_network_str: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
309
|
+
export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
|
|
310
|
+
export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
311
|
+
export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
334
312
|
export const isInspectEnabled: () => number;
|
|
313
|
+
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
314
|
+
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
315
|
+
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
316
|
+
export const wasmdimensions_empty: () => number;
|
|
317
|
+
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
318
|
+
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
319
|
+
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
320
|
+
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
321
|
+
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
322
|
+
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
323
|
+
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
324
|
+
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
325
|
+
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
326
|
+
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
327
|
+
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
328
|
+
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
329
|
+
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
330
|
+
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
331
|
+
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
332
|
+
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
333
|
+
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
335
334
|
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
336
335
|
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
336
|
+
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
337
|
+
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
338
|
+
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
337
339
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
338
340
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
339
341
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
@@ -610,6 +610,41 @@ export declare class BitGoPsbt<TOutput extends ParsedOutput = ParsedOutput> exte
|
|
|
610
610
|
* @returns The serialized unsigned transaction bytes (network/consensus encoding).
|
|
611
611
|
*/
|
|
612
612
|
getUnsignedTransaction(): Uint8Array;
|
|
613
|
+
/**
|
|
614
|
+
* Returns each input's declared sighash type (BIP-174 PSBT_IN_SIGHASH_TYPE),
|
|
615
|
+
* in input order.
|
|
616
|
+
*
|
|
617
|
+
* Entries are `undefined` when the input does not declare a sighash type, in
|
|
618
|
+
* which case the signer's default sighash type applies.
|
|
619
|
+
*/
|
|
620
|
+
getInputSighashTypes(): (number | undefined)[];
|
|
621
|
+
/**
|
|
622
|
+
* Asserts the sighash policy required when signing an externally supplied
|
|
623
|
+
* PSBT: every input must commit to the entire transaction.
|
|
624
|
+
*
|
|
625
|
+
* For every input this checks that
|
|
626
|
+
*
|
|
627
|
+
* 1. the declared sighash type (PSBT_IN_SIGHASH_TYPE), if present, commits
|
|
628
|
+
* to every input and every output: SIGHASH_ALL (0x01) — SIGHASH_ALL |
|
|
629
|
+
* SIGHASH_FORKID (0x41) on BCH-family coins — or SIGHASH_DEFAULT
|
|
630
|
+
* (0x00) / SIGHASH_ALL (0x01) on Taproot inputs. An absent sighash type
|
|
631
|
+
* is accepted: the signer then applies its default, which commits to
|
|
632
|
+
* the entire transaction.
|
|
633
|
+
* 2. every signature already present on the input (ECDSA partial
|
|
634
|
+
* signatures, Taproot key-path and script-path signatures) uses such a
|
|
635
|
+
* sighash type. MuSig2 partial signatures carry no sighash byte; the
|
|
636
|
+
* declared sighash type checked above governs them.
|
|
637
|
+
*
|
|
638
|
+
* SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_ANYONECANPAY, and combinations
|
|
639
|
+
* thereof leave outputs (or inputs) uncommitted, so a signature produced
|
|
640
|
+
* under one of them does not bind the signer to the transaction the signer
|
|
641
|
+
* reviewed. Callers that ingest foreign PSBTs must run this check before
|
|
642
|
+
* signing and again afterwards.
|
|
643
|
+
*
|
|
644
|
+
* @throws Error if any input declares a sighash type, or carries a
|
|
645
|
+
* signature, that does not commit to the entire transaction.
|
|
646
|
+
*/
|
|
647
|
+
assertSighashAllPolicy(): void;
|
|
613
648
|
/**
|
|
614
649
|
* Get all PSBT outputs with resolved address strings
|
|
615
650
|
*
|
|
@@ -622,6 +622,45 @@ export class BitGoPsbt extends PsbtBase {
|
|
|
622
622
|
getUnsignedTransaction() {
|
|
623
623
|
return this._wasm.get_unsigned_tx();
|
|
624
624
|
}
|
|
625
|
+
/**
|
|
626
|
+
* Returns each input's declared sighash type (BIP-174 PSBT_IN_SIGHASH_TYPE),
|
|
627
|
+
* in input order.
|
|
628
|
+
*
|
|
629
|
+
* Entries are `undefined` when the input does not declare a sighash type, in
|
|
630
|
+
* which case the signer's default sighash type applies.
|
|
631
|
+
*/
|
|
632
|
+
getInputSighashTypes() {
|
|
633
|
+
return this._wasm.get_input_sighash_types().map((sighashType) => sighashType ?? undefined);
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Asserts the sighash policy required when signing an externally supplied
|
|
637
|
+
* PSBT: every input must commit to the entire transaction.
|
|
638
|
+
*
|
|
639
|
+
* For every input this checks that
|
|
640
|
+
*
|
|
641
|
+
* 1. the declared sighash type (PSBT_IN_SIGHASH_TYPE), if present, commits
|
|
642
|
+
* to every input and every output: SIGHASH_ALL (0x01) — SIGHASH_ALL |
|
|
643
|
+
* SIGHASH_FORKID (0x41) on BCH-family coins — or SIGHASH_DEFAULT
|
|
644
|
+
* (0x00) / SIGHASH_ALL (0x01) on Taproot inputs. An absent sighash type
|
|
645
|
+
* is accepted: the signer then applies its default, which commits to
|
|
646
|
+
* the entire transaction.
|
|
647
|
+
* 2. every signature already present on the input (ECDSA partial
|
|
648
|
+
* signatures, Taproot key-path and script-path signatures) uses such a
|
|
649
|
+
* sighash type. MuSig2 partial signatures carry no sighash byte; the
|
|
650
|
+
* declared sighash type checked above governs them.
|
|
651
|
+
*
|
|
652
|
+
* SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_ANYONECANPAY, and combinations
|
|
653
|
+
* thereof leave outputs (or inputs) uncommitted, so a signature produced
|
|
654
|
+
* under one of them does not bind the signer to the transaction the signer
|
|
655
|
+
* reviewed. Callers that ingest foreign PSBTs must run this check before
|
|
656
|
+
* signing and again afterwards.
|
|
657
|
+
*
|
|
658
|
+
* @throws Error if any input declares a sighash type, or carries a
|
|
659
|
+
* signature, that does not commit to the entire transaction.
|
|
660
|
+
*/
|
|
661
|
+
assertSighashAllPolicy() {
|
|
662
|
+
this._wasm.assert_sighash_all_policy();
|
|
663
|
+
}
|
|
625
664
|
/**
|
|
626
665
|
* Get all PSBT outputs with resolved address strings
|
|
627
666
|
*
|
|
@@ -216,6 +216,20 @@ export class BitGoPsbt {
|
|
|
216
216
|
add_wallet_input_at_index(index: number, txid: string, vout: number, value: bigint, wallet_keys: WasmRootWalletKeys, chain: number, derivation_index: number, signer?: string | null, cosigner?: string | null, sequence?: number | null, prev_tx?: Uint8Array | null): number;
|
|
217
217
|
add_wallet_output(chain: number, index: number, value: bigint, wallet_keys: WasmRootWalletKeys): number;
|
|
218
218
|
add_wallet_output_at_index(index: number, chain: number, derivation_index: number, value: bigint, wallet_keys: WasmRootWalletKeys): number;
|
|
219
|
+
/**
|
|
220
|
+
* Asserts the sighash policy required when signing an externally
|
|
221
|
+
* supplied PSBT: every input must commit to the entire transaction.
|
|
222
|
+
*
|
|
223
|
+
* Rejects SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_ANYONECANPAY, and
|
|
224
|
+
* combinations thereof — in both the declared per-input sighash type
|
|
225
|
+
* and the signatures already present in the PSBT — because signatures
|
|
226
|
+
* produced under those types do not bind the signer to the outputs of
|
|
227
|
+
* the transaction. Accepted types are SIGHASH_ALL (0x01),
|
|
228
|
+
* SIGHASH_ALL | SIGHASH_FORKID (0x41) on BCH-family networks, and
|
|
229
|
+
* SIGHASH_DEFAULT (0x00) / SIGHASH_ALL (0x01) on Taproot inputs; an
|
|
230
|
+
* absent sighash type uses the signer default.
|
|
231
|
+
*/
|
|
232
|
+
assert_sighash_all_policy(): void;
|
|
219
233
|
/**
|
|
220
234
|
* Merge all input fields from a raw PSBT (given as bytes) into this PSBT.
|
|
221
235
|
*
|
|
@@ -493,6 +507,14 @@ export class BitGoPsbt {
|
|
|
493
507
|
get_global_xpubs(): any;
|
|
494
508
|
get_input_key_values(index: number): any;
|
|
495
509
|
get_input_kv(index: number, key: any): Uint8Array | undefined;
|
|
510
|
+
/**
|
|
511
|
+
* Returns each input's declared sighash type (BIP-174
|
|
512
|
+
* `PSBT_IN_SIGHASH_TYPE`), in input order.
|
|
513
|
+
*
|
|
514
|
+
* Entries are `null` when the input does not declare a sighash type, in
|
|
515
|
+
* which case the signer's default sighash type applies.
|
|
516
|
+
*/
|
|
517
|
+
get_input_sighash_types(): any;
|
|
496
518
|
get_inputs(): any;
|
|
497
519
|
get_kv(key: any): Uint8Array | undefined;
|
|
498
520
|
/**
|
|
@@ -914,6 +914,32 @@ export class BitGoPsbt {
|
|
|
914
914
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
+
/**
|
|
918
|
+
* Asserts the sighash policy required when signing an externally
|
|
919
|
+
* supplied PSBT: every input must commit to the entire transaction.
|
|
920
|
+
*
|
|
921
|
+
* Rejects SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_ANYONECANPAY, and
|
|
922
|
+
* combinations thereof — in both the declared per-input sighash type
|
|
923
|
+
* and the signatures already present in the PSBT — because signatures
|
|
924
|
+
* produced under those types do not bind the signer to the outputs of
|
|
925
|
+
* the transaction. Accepted types are SIGHASH_ALL (0x01),
|
|
926
|
+
* SIGHASH_ALL | SIGHASH_FORKID (0x41) on BCH-family networks, and
|
|
927
|
+
* SIGHASH_DEFAULT (0x00) / SIGHASH_ALL (0x01) on Taproot inputs; an
|
|
928
|
+
* absent sighash type uses the signer default.
|
|
929
|
+
*/
|
|
930
|
+
assert_sighash_all_policy() {
|
|
931
|
+
try {
|
|
932
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
933
|
+
wasm.bitgopsbt_assert_sighash_all_policy(retptr, this.__wbg_ptr);
|
|
934
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
935
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
936
|
+
if (r1) {
|
|
937
|
+
throw takeObject(r0);
|
|
938
|
+
}
|
|
939
|
+
} finally {
|
|
940
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
917
943
|
/**
|
|
918
944
|
* Merge all input fields from a raw PSBT (given as bytes) into this PSBT.
|
|
919
945
|
*
|
|
@@ -1735,6 +1761,29 @@ export class BitGoPsbt {
|
|
|
1735
1761
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1736
1762
|
}
|
|
1737
1763
|
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Returns each input's declared sighash type (BIP-174
|
|
1766
|
+
* `PSBT_IN_SIGHASH_TYPE`), in input order.
|
|
1767
|
+
*
|
|
1768
|
+
* Entries are `null` when the input does not declare a sighash type, in
|
|
1769
|
+
* which case the signer's default sighash type applies.
|
|
1770
|
+
* @returns {any}
|
|
1771
|
+
*/
|
|
1772
|
+
get_input_sighash_types() {
|
|
1773
|
+
try {
|
|
1774
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1775
|
+
wasm.bitgopsbt_get_input_sighash_types(retptr, this.__wbg_ptr);
|
|
1776
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1777
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1778
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1779
|
+
if (r2) {
|
|
1780
|
+
throw takeObject(r1);
|
|
1781
|
+
}
|
|
1782
|
+
return takeObject(r0);
|
|
1783
|
+
} finally {
|
|
1784
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1738
1787
|
/**
|
|
1739
1788
|
* @returns {any}
|
|
1740
1789
|
*/
|
|
Binary file
|
|
@@ -1,114 +1,37 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
4
|
+
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
6
|
+
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
7
|
+
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
8
|
+
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
9
|
+
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
10
|
+
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
11
|
+
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
12
|
+
export const __wbg_ironwoodwitness_free: (a: number, b: number) => void;
|
|
7
13
|
export const __wbg_wasmbip32_free: (a: number, b: number) => void;
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
14
|
+
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
15
|
+
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
10
16
|
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const bitgopsbt_combine_ironwood_proof: (a: number, b: number, c: number, d: number) => void;
|
|
30
|
-
export const bitgopsbt_combine_musig2_nonces: (a: number, b: number, c: number) => void;
|
|
31
|
-
export const bitgopsbt_consensus_branch_id: (a: number) => number;
|
|
32
|
-
export const bitgopsbt_create_empty: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
33
|
-
export const bitgopsbt_create_empty_zcash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
34
|
-
export const bitgopsbt_create_empty_zcash_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
35
|
-
export const bitgopsbt_create_empty_zcash_v6: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
36
|
-
export const bitgopsbt_create_empty_zcash_v6_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
37
|
-
export const bitgopsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
38
|
-
export const bitgopsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
39
|
-
export const bitgopsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
40
|
-
export const bitgopsbt_expiry_height: (a: number) => number;
|
|
41
|
-
export const bitgopsbt_extract_bitcoin_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
42
|
-
export const bitgopsbt_extract_dash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
43
|
-
export const bitgopsbt_extract_half_signed_legacy_tx: (a: number, b: number) => void;
|
|
44
|
-
export const bitgopsbt_extract_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
45
|
-
export const bitgopsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
46
|
-
export const bitgopsbt_finalize_all_inputs: (a: number, b: number) => void;
|
|
47
|
-
export const bitgopsbt_from_bytes: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
48
|
-
export const bitgopsbt_from_half_signed_legacy_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
49
|
-
export const bitgopsbt_from_half_signed_legacy_transaction_dash: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
50
|
-
export const bitgopsbt_from_network_format: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
51
|
-
export const bitgopsbt_from_network_format_dash: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
52
|
-
export const bitgopsbt_from_network_format_zcash_with_block_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
53
|
-
export const bitgopsbt_from_network_format_zcash_with_branch_id: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
54
|
-
export const bitgopsbt_generate_musig2_nonces: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
55
|
-
export const bitgopsbt_get_global_xpubs: (a: number) => number;
|
|
56
|
-
export const bitgopsbt_get_input_key_values: (a: number, b: number, c: number) => void;
|
|
57
|
-
export const bitgopsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
58
|
-
export const bitgopsbt_get_inputs: (a: number, b: number) => void;
|
|
59
|
-
export const bitgopsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
60
|
-
export const bitgopsbt_get_network_type: (a: number, b: number) => void;
|
|
61
|
-
export const bitgopsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
62
|
-
export const bitgopsbt_get_outputs: (a: number, b: number) => void;
|
|
63
|
-
export const bitgopsbt_get_outputs_with_address: (a: number, b: number) => void;
|
|
64
|
-
export const bitgopsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
65
|
-
export const bitgopsbt_input_count: (a: number) => number;
|
|
66
|
-
export const bitgopsbt_ironwood_pczt_bytes: (a: number, b: number) => void;
|
|
67
|
-
export const bitgopsbt_ironwood_v6_transparent_sighash: (a: number, b: number, c: number) => void;
|
|
68
|
-
export const bitgopsbt_ironwood_v6_txid: (a: number, b: number) => void;
|
|
69
|
-
export const bitgopsbt_is_musig2_input: (a: number, b: number) => number;
|
|
70
|
-
export const bitgopsbt_lock_time: (a: number) => number;
|
|
71
|
-
export const bitgopsbt_network: (a: number, b: number) => void;
|
|
72
|
-
export const bitgopsbt_output_count: (a: number) => number;
|
|
73
|
-
export const bitgopsbt_parse_outputs_with_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
74
|
-
export const bitgopsbt_parse_transaction_with_wallet_keys: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
75
|
-
export const bitgopsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
76
|
-
export const bitgopsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
77
|
-
export const bitgopsbt_serialize: (a: number, b: number) => void;
|
|
78
|
-
export const bitgopsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
79
|
-
export const bitgopsbt_set_ironwood_out_ciphertext: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
80
|
-
export const bitgopsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
81
|
-
export const bitgopsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
82
|
-
export const bitgopsbt_sign_all_musig2_inputs: (a: number, b: number, c: number) => void;
|
|
83
|
-
export const bitgopsbt_sign_all_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
84
|
-
export const bitgopsbt_sign_all_wallet_inputs: (a: number, b: number, c: number) => void;
|
|
85
|
-
export const bitgopsbt_sign_ironwood_v6: (a: number, b: number, c: number, d: number) => void;
|
|
86
|
-
export const bitgopsbt_sign_musig2_input: (a: number, b: number, c: number, d: number) => void;
|
|
87
|
-
export const bitgopsbt_sign_single_input_with_privkey: (a: number, b: number, c: number, d: number) => void;
|
|
88
|
-
export const bitgopsbt_sign_single_input_with_xpriv: (a: number, b: number, c: number, d: number) => void;
|
|
89
|
-
export const bitgopsbt_sign_with_privkey: (a: number, b: number, c: number, d: number) => void;
|
|
90
|
-
export const bitgopsbt_sign_with_xpriv: (a: number, b: number, c: number, d: number) => void;
|
|
91
|
-
export const bitgopsbt_transparent_output_unified_address: (a: number, b: number, c: number) => void;
|
|
92
|
-
export const bitgopsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
93
|
-
export const bitgopsbt_verify_ironwood_v6_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
|
|
94
|
-
export const bitgopsbt_verify_ironwood_v6_signature_with_xpub: (a: number, b: number, c: number, d: number) => void;
|
|
95
|
-
export const bitgopsbt_verify_replay_protection_signature: (a: number, b: number, c: number, d: number) => void;
|
|
96
|
-
export const bitgopsbt_verify_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
|
|
97
|
-
export const bitgopsbt_verify_signature_with_xpub: (a: number, b: number, c: number, d: number) => void;
|
|
98
|
-
export const bitgopsbt_version: (a: number) => number;
|
|
99
|
-
export const bitgopsbt_version_group_id: (a: number) => number;
|
|
100
|
-
export const fixedscriptwalletnamespace_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
101
|
-
export const fixedscriptwalletnamespace_address_with_network_str: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
102
|
-
export const fixedscriptwalletnamespace_chain_code_table: () => number;
|
|
103
|
-
export const fixedscriptwalletnamespace_create_op_return_script: (a: number, b: number, c: number) => void;
|
|
104
|
-
export const fixedscriptwalletnamespace_get_bitgo_key_subtypes: () => number;
|
|
105
|
-
export const fixedscriptwalletnamespace_output_script: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
106
|
-
export const fixedscriptwalletnamespace_output_script_with_network_str: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
107
|
-
export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
|
|
108
|
-
export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
109
|
-
export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
110
|
-
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
111
|
-
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
17
|
+
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
18
|
+
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
19
|
+
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
20
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
21
|
+
export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
|
|
22
|
+
export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
|
|
23
|
+
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;
|
|
24
|
+
export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
|
|
25
|
+
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;
|
|
26
|
+
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;
|
|
27
|
+
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;
|
|
28
|
+
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;
|
|
29
|
+
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
30
|
+
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;
|
|
31
|
+
export const ironwood_build_witness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
32
|
+
export const ironwood_build_witness_from_shard: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
33
|
+
export const ironwoodwitness_auth_path: (a: number, b: number) => void;
|
|
34
|
+
export const ironwoodwitness_position: (a: number) => number;
|
|
112
35
|
export const wasmbip32_chain_code: (a: number) => number;
|
|
113
36
|
export const wasmbip32_depth: (a: number) => number;
|
|
114
37
|
export const wasmbip32_derive: (a: number, b: number, c: number) => void;
|
|
@@ -131,63 +54,6 @@ export const wasmbip32_private_key: (a: number) => number;
|
|
|
131
54
|
export const wasmbip32_public_key: (a: number) => number;
|
|
132
55
|
export const wasmbip32_to_base58: (a: number, b: number) => void;
|
|
133
56
|
export const wasmbip32_to_wif: (a: number, b: number) => void;
|
|
134
|
-
export const wasmdimensions_empty: () => number;
|
|
135
|
-
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
136
|
-
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
137
|
-
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
138
|
-
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
139
|
-
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
140
|
-
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
141
|
-
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
142
|
-
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
143
|
-
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
144
|
-
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
145
|
-
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
146
|
-
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
147
|
-
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
148
|
-
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
149
|
-
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
150
|
-
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
151
|
-
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
152
|
-
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
153
|
-
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
154
|
-
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
155
|
-
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
156
|
-
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;
|
|
157
|
-
export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
158
|
-
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
159
|
-
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
160
|
-
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
161
|
-
export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
|
|
162
|
-
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
163
|
-
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
164
|
-
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
165
|
-
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
166
|
-
export const __wbg_ironwoodwitness_free: (a: number, b: number) => void;
|
|
167
|
-
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
168
|
-
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
169
|
-
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
170
|
-
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
171
|
-
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
172
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
173
|
-
export const __wbg_zcashunifiedaddress_free: (a: number, b: number) => void;
|
|
174
|
-
export const __wbg_zcashv6transaction_free: (a: number, b: number) => void;
|
|
175
|
-
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
176
|
-
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
177
|
-
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;
|
|
178
|
-
export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
|
|
179
|
-
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;
|
|
180
|
-
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;
|
|
181
|
-
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;
|
|
182
|
-
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;
|
|
183
|
-
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
184
|
-
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;
|
|
185
|
-
export const ironwood_build_witness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
186
|
-
export const ironwood_build_witness_from_shard: (a: number, b: number, c: number, d: bigint, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
187
|
-
export const ironwoodwitness_auth_path: (a: number, b: number) => void;
|
|
188
|
-
export const ironwoodwitness_position: (a: number) => number;
|
|
189
|
-
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
190
|
-
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
191
57
|
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
192
58
|
export const wasmdashtransaction_get_inputs: (a: number, b: number) => void;
|
|
193
59
|
export const wasmdashtransaction_get_outputs: (a: number, b: number) => void;
|
|
@@ -208,6 +74,11 @@ export const wasmecpair_public_key: (a: number) => number;
|
|
|
208
74
|
export const wasmecpair_to_wif: (a: number, b: number) => void;
|
|
209
75
|
export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
|
|
210
76
|
export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
|
|
77
|
+
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
78
|
+
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
79
|
+
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
80
|
+
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
81
|
+
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;
|
|
211
82
|
export const wasmtransaction_add_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
212
83
|
export const wasmtransaction_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
213
84
|
export const wasmtransaction_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
@@ -220,6 +91,7 @@ export const wasmtransaction_get_outputs_with_address: (a: number, b: number, c:
|
|
|
220
91
|
export const wasmtransaction_get_txid: (a: number, b: number) => void;
|
|
221
92
|
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
222
93
|
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
94
|
+
export const wasmutxonamespace_get_wasm_utxo_version: (a: number) => void;
|
|
223
95
|
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
224
96
|
export const wasmzcashtransaction_get_inputs: (a: number, b: number) => void;
|
|
225
97
|
export const wasmzcashtransaction_get_outputs: (a: number, b: number) => void;
|
|
@@ -298,6 +170,7 @@ export const zcashv6transaction_ironwoodValueBalance: (a: number) => bigint;
|
|
|
298
170
|
export const zcashv6transaction_toBytes: (a: number, b: number) => void;
|
|
299
171
|
export const zcashv6transaction_transparentSighash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
300
172
|
export const zcashv6transaction_txidBytes: (a: number, b: number) => void;
|
|
173
|
+
export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
301
174
|
export const wasmtransaction_input_count: (a: number) => number;
|
|
302
175
|
export const wasmtransaction_output_count: (a: number) => number;
|
|
303
176
|
export const wasmzcashtransaction_input_count: (a: number) => number;
|
|
@@ -310,7 +183,6 @@ export const wrappsbt_lock_time: (a: number) => number;
|
|
|
310
183
|
export const wrappsbt_version: (a: number) => number;
|
|
311
184
|
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
312
185
|
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
313
|
-
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
314
186
|
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
315
187
|
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
316
188
|
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
@@ -331,9 +203,139 @@ export const wrapminiscript_fromStringExt: (a: number, b: number, c: number, d:
|
|
|
331
203
|
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
332
204
|
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
333
205
|
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
206
|
+
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
207
|
+
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
208
|
+
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
209
|
+
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
210
|
+
export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
|
|
211
|
+
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;
|
|
212
|
+
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;
|
|
213
|
+
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, l: number, m: number) => void;
|
|
214
|
+
export const bitgopsbt_add_ironwood_outputs: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
215
|
+
export const bitgopsbt_add_ironwood_v6_signature: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
216
|
+
export const bitgopsbt_add_output: (a: number, b: number, c: number, d: number, e: bigint) => void;
|
|
217
|
+
export const bitgopsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
218
|
+
export const bitgopsbt_add_output_with_address: (a: number, b: number, c: number, d: number, e: bigint) => void;
|
|
219
|
+
export const bitgopsbt_add_output_with_address_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
220
|
+
export const bitgopsbt_add_paygo_attestation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
221
|
+
export const bitgopsbt_add_replay_protection_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
222
|
+
export const bitgopsbt_add_replay_protection_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: number) => void;
|
|
223
|
+
export const bitgopsbt_add_transparent_output: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => void;
|
|
224
|
+
export const bitgopsbt_add_wallet_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
|
|
225
|
+
export const bitgopsbt_add_wallet_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, m: number, n: number, o: number, p: number, q: number) => void;
|
|
226
|
+
export const bitgopsbt_add_wallet_output: (a: number, b: number, c: number, d: number, e: bigint, f: number) => void;
|
|
227
|
+
export const bitgopsbt_add_wallet_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number) => void;
|
|
228
|
+
export const bitgopsbt_assert_sighash_all_policy: (a: number, b: number) => void;
|
|
229
|
+
export const bitgopsbt_combine_inputs: (a: number, b: number, c: number, d: number) => void;
|
|
230
|
+
export const bitgopsbt_combine_ironwood_proof: (a: number, b: number, c: number, d: number) => void;
|
|
231
|
+
export const bitgopsbt_combine_musig2_nonces: (a: number, b: number, c: number) => void;
|
|
232
|
+
export const bitgopsbt_consensus_branch_id: (a: number) => number;
|
|
233
|
+
export const bitgopsbt_create_empty: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
234
|
+
export const bitgopsbt_create_empty_zcash: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
235
|
+
export const bitgopsbt_create_empty_zcash_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
236
|
+
export const bitgopsbt_create_empty_zcash_v6: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
237
|
+
export const bitgopsbt_create_empty_zcash_v6_at_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
238
|
+
export const bitgopsbt_delete_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
239
|
+
export const bitgopsbt_delete_kv: (a: number, b: number, c: number) => void;
|
|
240
|
+
export const bitgopsbt_delete_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
241
|
+
export const bitgopsbt_expiry_height: (a: number) => number;
|
|
242
|
+
export const bitgopsbt_extract_bitcoin_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
243
|
+
export const bitgopsbt_extract_dash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
244
|
+
export const bitgopsbt_extract_half_signed_legacy_tx: (a: number, b: number) => void;
|
|
245
|
+
export const bitgopsbt_extract_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
246
|
+
export const bitgopsbt_extract_zcash_transaction: (a: number, b: number, c: number, d: number) => void;
|
|
247
|
+
export const bitgopsbt_finalize_all_inputs: (a: number, b: number) => void;
|
|
248
|
+
export const bitgopsbt_from_bytes: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
249
|
+
export const bitgopsbt_from_half_signed_legacy_transaction: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
250
|
+
export const bitgopsbt_from_half_signed_legacy_transaction_dash: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
251
|
+
export const bitgopsbt_from_network_format: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
252
|
+
export const bitgopsbt_from_network_format_dash: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
253
|
+
export const bitgopsbt_from_network_format_zcash_with_block_height: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
254
|
+
export const bitgopsbt_from_network_format_zcash_with_branch_id: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
255
|
+
export const bitgopsbt_generate_musig2_nonces: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
256
|
+
export const bitgopsbt_get_global_xpubs: (a: number) => number;
|
|
257
|
+
export const bitgopsbt_get_input_key_values: (a: number, b: number, c: number) => void;
|
|
258
|
+
export const bitgopsbt_get_input_kv: (a: number, b: number, c: number, d: number) => void;
|
|
259
|
+
export const bitgopsbt_get_input_sighash_types: (a: number, b: number) => void;
|
|
260
|
+
export const bitgopsbt_get_inputs: (a: number, b: number) => void;
|
|
261
|
+
export const bitgopsbt_get_kv: (a: number, b: number, c: number) => void;
|
|
262
|
+
export const bitgopsbt_get_network_type: (a: number, b: number) => void;
|
|
263
|
+
export const bitgopsbt_get_output_kv: (a: number, b: number, c: number, d: number) => void;
|
|
264
|
+
export const bitgopsbt_get_outputs: (a: number, b: number) => void;
|
|
265
|
+
export const bitgopsbt_get_outputs_with_address: (a: number, b: number) => void;
|
|
266
|
+
export const bitgopsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
267
|
+
export const bitgopsbt_input_count: (a: number) => number;
|
|
268
|
+
export const bitgopsbt_ironwood_pczt_bytes: (a: number, b: number) => void;
|
|
269
|
+
export const bitgopsbt_ironwood_v6_transparent_sighash: (a: number, b: number, c: number) => void;
|
|
270
|
+
export const bitgopsbt_ironwood_v6_txid: (a: number, b: number) => void;
|
|
271
|
+
export const bitgopsbt_is_musig2_input: (a: number, b: number) => number;
|
|
272
|
+
export const bitgopsbt_lock_time: (a: number) => number;
|
|
273
|
+
export const bitgopsbt_network: (a: number, b: number) => void;
|
|
274
|
+
export const bitgopsbt_output_count: (a: number) => number;
|
|
275
|
+
export const bitgopsbt_parse_outputs_with_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
276
|
+
export const bitgopsbt_parse_transaction_with_wallet_keys: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
277
|
+
export const bitgopsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
278
|
+
export const bitgopsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
279
|
+
export const bitgopsbt_serialize: (a: number, b: number) => void;
|
|
280
|
+
export const bitgopsbt_set_input_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
281
|
+
export const bitgopsbt_set_ironwood_out_ciphertext: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
282
|
+
export const bitgopsbt_set_kv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
283
|
+
export const bitgopsbt_set_output_kv: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
284
|
+
export const bitgopsbt_sign_all_musig2_inputs: (a: number, b: number, c: number) => void;
|
|
285
|
+
export const bitgopsbt_sign_all_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
286
|
+
export const bitgopsbt_sign_all_wallet_inputs: (a: number, b: number, c: number) => void;
|
|
287
|
+
export const bitgopsbt_sign_ironwood_v6: (a: number, b: number, c: number, d: number) => void;
|
|
288
|
+
export const bitgopsbt_sign_musig2_input: (a: number, b: number, c: number, d: number) => void;
|
|
289
|
+
export const bitgopsbt_sign_single_input_with_privkey: (a: number, b: number, c: number, d: number) => void;
|
|
290
|
+
export const bitgopsbt_sign_single_input_with_xpriv: (a: number, b: number, c: number, d: number) => void;
|
|
291
|
+
export const bitgopsbt_sign_with_privkey: (a: number, b: number, c: number, d: number) => void;
|
|
292
|
+
export const bitgopsbt_sign_with_xpriv: (a: number, b: number, c: number, d: number) => void;
|
|
293
|
+
export const bitgopsbt_transparent_output_unified_address: (a: number, b: number, c: number) => void;
|
|
294
|
+
export const bitgopsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
295
|
+
export const bitgopsbt_verify_ironwood_v6_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
|
|
296
|
+
export const bitgopsbt_verify_ironwood_v6_signature_with_xpub: (a: number, b: number, c: number, d: number) => void;
|
|
297
|
+
export const bitgopsbt_verify_replay_protection_signature: (a: number, b: number, c: number, d: number) => void;
|
|
298
|
+
export const bitgopsbt_verify_signature_with_pub: (a: number, b: number, c: number, d: number) => void;
|
|
299
|
+
export const bitgopsbt_verify_signature_with_xpub: (a: number, b: number, c: number, d: number) => void;
|
|
300
|
+
export const bitgopsbt_version: (a: number) => number;
|
|
301
|
+
export const bitgopsbt_version_group_id: (a: number) => number;
|
|
302
|
+
export const fixedscriptwalletnamespace_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
303
|
+
export const fixedscriptwalletnamespace_address_with_network_str: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
304
|
+
export const fixedscriptwalletnamespace_chain_code_table: () => number;
|
|
305
|
+
export const fixedscriptwalletnamespace_create_op_return_script: (a: number, b: number, c: number) => void;
|
|
306
|
+
export const fixedscriptwalletnamespace_get_bitgo_key_subtypes: () => number;
|
|
307
|
+
export const fixedscriptwalletnamespace_output_script: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
308
|
+
export const fixedscriptwalletnamespace_output_script_with_network_str: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
309
|
+
export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
|
|
310
|
+
export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
311
|
+
export const fixedscriptwalletnamespace_to_wallet_keys: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
334
312
|
export const isInspectEnabled: () => number;
|
|
313
|
+
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
314
|
+
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
315
|
+
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
316
|
+
export const wasmdimensions_empty: () => number;
|
|
317
|
+
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
318
|
+
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number, d: number) => void;
|
|
319
|
+
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
320
|
+
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
321
|
+
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
322
|
+
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
323
|
+
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
324
|
+
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
325
|
+
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
326
|
+
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
327
|
+
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
328
|
+
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
329
|
+
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
330
|
+
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
331
|
+
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
332
|
+
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
333
|
+
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
335
334
|
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
336
335
|
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
336
|
+
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
337
|
+
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
338
|
+
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
337
339
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
338
340
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
339
341
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|