@bitgo/wasm-utxo 3.0.0 → 3.1.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/bip322/index.d.ts +5 -0
- package/dist/cjs/js/bip322/index.js +8 -0
- package/dist/cjs/js/wasm/wasm_utxo.d.ts +5 -0
- package/dist/cjs/js/wasm/wasm_utxo.js +29 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm.d.ts +75 -74
- package/dist/esm/js/bip322/index.d.ts +5 -0
- package/dist/esm/js/bip322/index.js +7 -0
- package/dist/esm/js/wasm/wasm_utxo.d.ts +5 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.js +29 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm.d.ts +75 -74
- package/package.json +1 -1
|
@@ -106,6 +106,11 @@ export type VerifyBip322TxInputParams = VerifyBip322InputParams & {
|
|
|
106
106
|
* ```
|
|
107
107
|
*/
|
|
108
108
|
export declare function addBip322Input(psbt: BitGoPsbt, params: AddBip322InputParams): number;
|
|
109
|
+
/**
|
|
110
|
+
* Get the BIP322 message stored at a PSBT input index.
|
|
111
|
+
* Returns null if no message is stored.
|
|
112
|
+
*/
|
|
113
|
+
export declare function getBip322Message(psbt: BitGoPsbt, inputIndex: number): string | null;
|
|
109
114
|
/**
|
|
110
115
|
* Verify a single input of a BIP-0322 transaction proof
|
|
111
116
|
*
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
*/
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
exports.addBip322Input = addBip322Input;
|
|
39
|
+
exports.getBip322Message = getBip322Message;
|
|
39
40
|
exports.verifyBip322TxInput = verifyBip322TxInput;
|
|
40
41
|
exports.verifyBip322PsbtInput = verifyBip322PsbtInput;
|
|
41
42
|
exports.verifyBip322PsbtInputWithPubkeys = verifyBip322PsbtInputWithPubkeys;
|
|
@@ -75,6 +76,13 @@ function addBip322Input(psbt, params) {
|
|
|
75
76
|
const keys = RootWalletKeys_js_1.RootWalletKeys.from(params.rootWalletKeys);
|
|
76
77
|
return wasm_utxo_js_1.Bip322Namespace.add_bip322_input(psbt.wasm, params.message, params.scriptId.chain, params.scriptId.index, keys.wasm, params.signPath?.signer, params.signPath?.cosigner, params.tag);
|
|
77
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Get the BIP322 message stored at a PSBT input index.
|
|
81
|
+
* Returns null if no message is stored.
|
|
82
|
+
*/
|
|
83
|
+
function getBip322Message(psbt, inputIndex) {
|
|
84
|
+
return wasm_utxo_js_1.Bip322Namespace.get_bip322_message(psbt.wasm, inputIndex) ?? null;
|
|
85
|
+
}
|
|
78
86
|
/**
|
|
79
87
|
* Verify a single input of a BIP-0322 transaction proof
|
|
80
88
|
*
|
|
@@ -36,6 +36,11 @@ export class Bip322Namespace {
|
|
|
36
36
|
* The index of the added input
|
|
37
37
|
*/
|
|
38
38
|
static add_bip322_input(psbt: BitGoPsbt, message: string, chain: number, index: number, wallet_keys: WasmRootWalletKeys, signer?: string | null, cosigner?: string | null, tag?: string | null): number;
|
|
39
|
+
/**
|
|
40
|
+
* Get the BIP322 message stored at a PSBT input index.
|
|
41
|
+
* Returns null if no message is stored.
|
|
42
|
+
*/
|
|
43
|
+
static get_bip322_message(psbt: BitGoPsbt, input_index: number): string | undefined;
|
|
39
44
|
/**
|
|
40
45
|
* Verify a single input of a BIP-0322 PSBT proof
|
|
41
46
|
*
|
|
@@ -145,6 +145,35 @@ class Bip322Namespace {
|
|
|
145
145
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Get the BIP322 message stored at a PSBT input index.
|
|
150
|
+
* Returns null if no message is stored.
|
|
151
|
+
* @param {BitGoPsbt} psbt
|
|
152
|
+
* @param {number} input_index
|
|
153
|
+
* @returns {string | undefined}
|
|
154
|
+
*/
|
|
155
|
+
static get_bip322_message(psbt, input_index) {
|
|
156
|
+
try {
|
|
157
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
158
|
+
_assertClass(psbt, BitGoPsbt);
|
|
159
|
+
wasm.bip322namespace_get_bip322_message(retptr, psbt.__wbg_ptr, input_index);
|
|
160
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
161
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
162
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
163
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
164
|
+
if (r3) {
|
|
165
|
+
throw takeObject(r2);
|
|
166
|
+
}
|
|
167
|
+
let v1;
|
|
168
|
+
if (r0 !== 0) {
|
|
169
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
170
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
171
|
+
}
|
|
172
|
+
return v1;
|
|
173
|
+
} finally {
|
|
174
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
148
177
|
/**
|
|
149
178
|
* Verify a single input of a BIP-0322 PSBT proof
|
|
150
179
|
*
|
|
Binary file
|
|
@@ -1,79 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
|
|
6
|
-
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
7
|
-
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
8
|
-
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;
|
|
9
|
-
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
10
|
-
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
11
|
-
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
12
|
-
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
13
|
-
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
14
|
-
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
15
|
-
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
16
|
-
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;
|
|
17
|
-
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
18
|
-
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
19
|
-
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
20
|
-
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
21
|
-
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
22
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
23
|
-
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
24
|
-
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
25
|
-
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
26
|
-
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
27
|
-
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
28
|
-
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
29
|
-
export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
|
|
30
|
-
export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
|
|
31
|
-
export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
|
|
32
|
-
export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
|
|
33
|
-
export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
|
|
34
|
-
export const wasmecpair_private_key: (a: number) => number;
|
|
35
|
-
export const wasmecpair_public_key: (a: number) => number;
|
|
36
|
-
export const wasmecpair_to_wif: (a: number, b: number) => void;
|
|
37
|
-
export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
|
|
38
|
-
export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
|
|
39
|
-
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
40
|
-
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
41
|
-
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
42
|
-
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
43
|
-
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
44
|
-
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
45
|
-
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
46
|
-
export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
47
|
-
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
48
|
-
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
49
|
-
export const wrappsbt_clone: (a: number) => number;
|
|
50
|
-
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
51
|
-
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
52
|
-
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
53
|
-
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
54
|
-
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
55
|
-
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
56
|
-
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
57
|
-
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
58
|
-
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
59
|
-
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
60
|
-
export const wrappsbt_input_count: (a: number) => number;
|
|
61
|
-
export const wrappsbt_lock_time: (a: number) => number;
|
|
62
|
-
export const wrappsbt_new: (a: number, b: number) => number;
|
|
63
|
-
export const wrappsbt_output_count: (a: number) => number;
|
|
64
|
-
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
65
|
-
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
66
|
-
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
67
|
-
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
68
|
-
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
69
|
-
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
70
|
-
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
71
|
-
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
72
|
-
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
73
|
-
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
74
|
-
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
75
|
-
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
76
|
-
export const wrappsbt_version: (a: number) => number;
|
|
77
4
|
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
78
5
|
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
79
6
|
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
@@ -107,9 +34,11 @@ export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
|
107
34
|
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
108
35
|
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
109
36
|
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
37
|
+
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
110
38
|
export const __wbg_wasmbip32_free: (a: number, b: number) => void;
|
|
111
39
|
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
112
40
|
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;
|
|
41
|
+
export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
|
|
113
42
|
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;
|
|
114
43
|
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;
|
|
115
44
|
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;
|
|
@@ -178,6 +107,8 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
|
|
|
178
107
|
export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
|
|
179
108
|
export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
180
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;
|
|
181
112
|
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
182
113
|
export const wasmbip32_chain_code: (a: number) => number;
|
|
183
114
|
export const wasmbip32_depth: (a: number) => number;
|
|
@@ -217,12 +148,82 @@ export const wasmdimensions_has_segwit: (a: number) => number;
|
|
|
217
148
|
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
218
149
|
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
219
150
|
export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
151
|
+
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
220
152
|
export const isInspectEnabled: () => number;
|
|
221
153
|
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
222
154
|
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
223
155
|
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
224
156
|
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
225
|
-
export const
|
|
157
|
+
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
158
|
+
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
159
|
+
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
160
|
+
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
161
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
162
|
+
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
163
|
+
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
164
|
+
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
165
|
+
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
166
|
+
export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
|
|
167
|
+
export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
|
|
168
|
+
export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
|
|
169
|
+
export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
|
|
170
|
+
export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
|
|
171
|
+
export const wasmecpair_private_key: (a: number) => number;
|
|
172
|
+
export const wasmecpair_public_key: (a: number) => number;
|
|
173
|
+
export const wasmecpair_to_wif: (a: number, b: number) => void;
|
|
174
|
+
export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
|
|
175
|
+
export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
|
|
176
|
+
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
177
|
+
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
178
|
+
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
179
|
+
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
180
|
+
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
181
|
+
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
182
|
+
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
183
|
+
export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
184
|
+
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
185
|
+
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
186
|
+
export const wrappsbt_clone: (a: number) => number;
|
|
187
|
+
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
188
|
+
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
189
|
+
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
190
|
+
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
191
|
+
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
192
|
+
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
193
|
+
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
194
|
+
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
195
|
+
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
196
|
+
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
197
|
+
export const wrappsbt_input_count: (a: number) => number;
|
|
198
|
+
export const wrappsbt_lock_time: (a: number) => number;
|
|
199
|
+
export const wrappsbt_new: (a: number, b: number) => number;
|
|
200
|
+
export const wrappsbt_output_count: (a: number) => number;
|
|
201
|
+
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
202
|
+
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
203
|
+
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
204
|
+
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
205
|
+
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
206
|
+
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
207
|
+
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
208
|
+
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
209
|
+
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
210
|
+
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
211
|
+
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
212
|
+
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
213
|
+
export const wrappsbt_version: (a: number) => number;
|
|
214
|
+
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
215
|
+
export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
|
|
216
|
+
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
217
|
+
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
218
|
+
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;
|
|
219
|
+
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
220
|
+
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
221
|
+
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
222
|
+
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
223
|
+
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
224
|
+
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
225
|
+
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
226
|
+
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;
|
|
226
227
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
227
228
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
228
229
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
@@ -106,6 +106,11 @@ export type VerifyBip322TxInputParams = VerifyBip322InputParams & {
|
|
|
106
106
|
* ```
|
|
107
107
|
*/
|
|
108
108
|
export declare function addBip322Input(psbt: BitGoPsbt, params: AddBip322InputParams): number;
|
|
109
|
+
/**
|
|
110
|
+
* Get the BIP322 message stored at a PSBT input index.
|
|
111
|
+
* Returns null if no message is stored.
|
|
112
|
+
*/
|
|
113
|
+
export declare function getBip322Message(psbt: BitGoPsbt, inputIndex: number): string | null;
|
|
109
114
|
/**
|
|
110
115
|
* Verify a single input of a BIP-0322 transaction proof
|
|
111
116
|
*
|
|
@@ -68,6 +68,13 @@ export function addBip322Input(psbt, params) {
|
|
|
68
68
|
const keys = RootWalletKeys.from(params.rootWalletKeys);
|
|
69
69
|
return Bip322Namespace.add_bip322_input(psbt.wasm, params.message, params.scriptId.chain, params.scriptId.index, keys.wasm, params.signPath?.signer, params.signPath?.cosigner, params.tag);
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Get the BIP322 message stored at a PSBT input index.
|
|
73
|
+
* Returns null if no message is stored.
|
|
74
|
+
*/
|
|
75
|
+
export function getBip322Message(psbt, inputIndex) {
|
|
76
|
+
return Bip322Namespace.get_bip322_message(psbt.wasm, inputIndex) ?? null;
|
|
77
|
+
}
|
|
71
78
|
/**
|
|
72
79
|
* Verify a single input of a BIP-0322 transaction proof
|
|
73
80
|
*
|
|
@@ -36,6 +36,11 @@ export class Bip322Namespace {
|
|
|
36
36
|
* The index of the added input
|
|
37
37
|
*/
|
|
38
38
|
static add_bip322_input(psbt: BitGoPsbt, message: string, chain: number, index: number, wallet_keys: WasmRootWalletKeys, signer?: string | null, cosigner?: string | null, tag?: string | null): number;
|
|
39
|
+
/**
|
|
40
|
+
* Get the BIP322 message stored at a PSBT input index.
|
|
41
|
+
* Returns null if no message is stored.
|
|
42
|
+
*/
|
|
43
|
+
static get_bip322_message(psbt: BitGoPsbt, input_index: number): string | undefined;
|
|
39
44
|
/**
|
|
40
45
|
* Verify a single input of a BIP-0322 PSBT proof
|
|
41
46
|
*
|
|
@@ -142,6 +142,35 @@ export class Bip322Namespace {
|
|
|
142
142
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* Get the BIP322 message stored at a PSBT input index.
|
|
147
|
+
* Returns null if no message is stored.
|
|
148
|
+
* @param {BitGoPsbt} psbt
|
|
149
|
+
* @param {number} input_index
|
|
150
|
+
* @returns {string | undefined}
|
|
151
|
+
*/
|
|
152
|
+
static get_bip322_message(psbt, input_index) {
|
|
153
|
+
try {
|
|
154
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
155
|
+
_assertClass(psbt, BitGoPsbt);
|
|
156
|
+
wasm.bip322namespace_get_bip322_message(retptr, psbt.__wbg_ptr, input_index);
|
|
157
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
158
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
159
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
160
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
161
|
+
if (r3) {
|
|
162
|
+
throw takeObject(r2);
|
|
163
|
+
}
|
|
164
|
+
let v1;
|
|
165
|
+
if (r0 !== 0) {
|
|
166
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
167
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
168
|
+
}
|
|
169
|
+
return v1;
|
|
170
|
+
} finally {
|
|
171
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
145
174
|
/**
|
|
146
175
|
* Verify a single input of a BIP-0322 PSBT proof
|
|
147
176
|
*
|
|
Binary file
|
|
@@ -1,79 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
|
|
6
|
-
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
7
|
-
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
8
|
-
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;
|
|
9
|
-
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
10
|
-
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
11
|
-
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
12
|
-
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
13
|
-
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
14
|
-
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
15
|
-
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
16
|
-
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;
|
|
17
|
-
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
18
|
-
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
19
|
-
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
20
|
-
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
21
|
-
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
22
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
23
|
-
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
24
|
-
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
25
|
-
export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
|
|
26
|
-
export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
27
|
-
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
28
|
-
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
29
|
-
export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
|
|
30
|
-
export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
|
|
31
|
-
export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
|
|
32
|
-
export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
|
|
33
|
-
export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
|
|
34
|
-
export const wasmecpair_private_key: (a: number) => number;
|
|
35
|
-
export const wasmecpair_public_key: (a: number) => number;
|
|
36
|
-
export const wasmecpair_to_wif: (a: number, b: number) => void;
|
|
37
|
-
export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
|
|
38
|
-
export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
|
|
39
|
-
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
40
|
-
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
41
|
-
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
42
|
-
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
43
|
-
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
44
|
-
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
45
|
-
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
46
|
-
export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
47
|
-
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
48
|
-
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
49
|
-
export const wrappsbt_clone: (a: number) => number;
|
|
50
|
-
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
51
|
-
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
52
|
-
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
53
|
-
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
54
|
-
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
55
|
-
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
56
|
-
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
57
|
-
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
58
|
-
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
59
|
-
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
60
|
-
export const wrappsbt_input_count: (a: number) => number;
|
|
61
|
-
export const wrappsbt_lock_time: (a: number) => number;
|
|
62
|
-
export const wrappsbt_new: (a: number, b: number) => number;
|
|
63
|
-
export const wrappsbt_output_count: (a: number) => number;
|
|
64
|
-
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
65
|
-
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
66
|
-
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
67
|
-
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
68
|
-
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
69
|
-
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
70
|
-
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
71
|
-
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
72
|
-
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
73
|
-
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
74
|
-
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
75
|
-
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
76
|
-
export const wrappsbt_version: (a: number) => number;
|
|
77
4
|
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
78
5
|
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
79
6
|
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
@@ -107,9 +34,11 @@ export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
|
107
34
|
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
108
35
|
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
109
36
|
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
37
|
+
export const __wbg_messagenamespace_free: (a: number, b: number) => void;
|
|
110
38
|
export const __wbg_wasmbip32_free: (a: number, b: number) => void;
|
|
111
39
|
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
112
40
|
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;
|
|
41
|
+
export const bip322namespace_get_bip322_message: (a: number, b: number, c: number) => void;
|
|
113
42
|
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;
|
|
114
43
|
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;
|
|
115
44
|
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;
|
|
@@ -178,6 +107,8 @@ export const fixedscriptwalletnamespace_output_script_with_network_str: (a: numb
|
|
|
178
107
|
export const fixedscriptwalletnamespace_p2sh_p2pk_output_script: (a: number, b: number, c: number) => void;
|
|
179
108
|
export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
180
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;
|
|
181
112
|
export const parsePsbtRawToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
182
113
|
export const wasmbip32_chain_code: (a: number) => number;
|
|
183
114
|
export const wasmbip32_depth: (a: number) => number;
|
|
@@ -217,12 +148,82 @@ export const wasmdimensions_has_segwit: (a: number) => number;
|
|
|
217
148
|
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
218
149
|
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
219
150
|
export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
151
|
+
export const bitgopsbt_sign_wallet_input: (a: number, b: number, c: number, d: number) => void;
|
|
220
152
|
export const isInspectEnabled: () => number;
|
|
221
153
|
export const parsePsbtToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
222
154
|
export const parseTxToJson: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
223
155
|
export const bitgopsbt_sign_all_with_xpriv: (a: number, b: number, c: number) => void;
|
|
224
156
|
export const bitgopsbt_sign_replay_protection_inputs: (a: number, b: number, c: number) => void;
|
|
225
|
-
export const
|
|
157
|
+
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
158
|
+
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
159
|
+
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
160
|
+
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
161
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
162
|
+
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
163
|
+
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
164
|
+
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
165
|
+
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
166
|
+
export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
|
|
167
|
+
export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
|
|
168
|
+
export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
|
|
169
|
+
export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
|
|
170
|
+
export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
|
|
171
|
+
export const wasmecpair_private_key: (a: number) => number;
|
|
172
|
+
export const wasmecpair_public_key: (a: number) => number;
|
|
173
|
+
export const wasmecpair_to_wif: (a: number, b: number) => void;
|
|
174
|
+
export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
|
|
175
|
+
export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
|
|
176
|
+
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
177
|
+
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
178
|
+
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
179
|
+
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
180
|
+
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
181
|
+
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
182
|
+
export const wrappsbt_add_input: (a: number, b: number, c: number, d: number, e: number, f: bigint, g: number, h: number, i: number) => void;
|
|
183
|
+
export const wrappsbt_add_input_at_index: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: number, j: number) => void;
|
|
184
|
+
export const wrappsbt_add_output: (a: number, b: number, c: number, d: bigint) => number;
|
|
185
|
+
export const wrappsbt_add_output_at_index: (a: number, b: number, c: number, d: number, e: number, f: bigint) => void;
|
|
186
|
+
export const wrappsbt_clone: (a: number) => number;
|
|
187
|
+
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
188
|
+
export const wrappsbt_extract_transaction: (a: number, b: number) => void;
|
|
189
|
+
export const wrappsbt_finalize_mut: (a: number, b: number) => void;
|
|
190
|
+
export const wrappsbt_get_global_xpubs: (a: number) => number;
|
|
191
|
+
export const wrappsbt_get_inputs: (a: number, b: number) => void;
|
|
192
|
+
export const wrappsbt_get_outputs: (a: number, b: number) => void;
|
|
193
|
+
export const wrappsbt_get_outputs_with_address: (a: number, b: number, c: number, d: number) => void;
|
|
194
|
+
export const wrappsbt_get_partial_signatures: (a: number, b: number, c: number) => void;
|
|
195
|
+
export const wrappsbt_get_unsigned_tx: (a: number, b: number) => void;
|
|
196
|
+
export const wrappsbt_has_partial_signatures: (a: number, b: number, c: number) => void;
|
|
197
|
+
export const wrappsbt_input_count: (a: number) => number;
|
|
198
|
+
export const wrappsbt_lock_time: (a: number) => number;
|
|
199
|
+
export const wrappsbt_new: (a: number, b: number) => number;
|
|
200
|
+
export const wrappsbt_output_count: (a: number) => number;
|
|
201
|
+
export const wrappsbt_remove_input: (a: number, b: number, c: number) => void;
|
|
202
|
+
export const wrappsbt_remove_output: (a: number, b: number, c: number) => void;
|
|
203
|
+
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
204
|
+
export const wrappsbt_sign_all: (a: number, b: number, c: number) => void;
|
|
205
|
+
export const wrappsbt_sign_all_with_ecpair: (a: number, b: number, c: number) => void;
|
|
206
|
+
export const wrappsbt_sign_with_prv: (a: number, b: number, c: number, d: number) => void;
|
|
207
|
+
export const wrappsbt_sign_with_xprv: (a: number, b: number, c: number, d: number) => void;
|
|
208
|
+
export const wrappsbt_unsigned_tx_id: (a: number, b: number) => void;
|
|
209
|
+
export const wrappsbt_update_input_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
210
|
+
export const wrappsbt_update_output_with_descriptor: (a: number, b: number, c: number, d: number) => void;
|
|
211
|
+
export const wrappsbt_validate_signature_at_input: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
212
|
+
export const wrappsbt_verify_signature_with_key: (a: number, b: number, c: number, d: number) => void;
|
|
213
|
+
export const wrappsbt_version: (a: number) => number;
|
|
214
|
+
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
215
|
+
export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
|
|
216
|
+
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
217
|
+
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
218
|
+
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;
|
|
219
|
+
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
220
|
+
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
221
|
+
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
222
|
+
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
223
|
+
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
224
|
+
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
225
|
+
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
226
|
+
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;
|
|
226
227
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
227
228
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
228
229
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|