@bitgo/wasm-utxo 1.12.0 → 1.13.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/wasm/wasm_utxo.d.ts +11 -14
- package/dist/cjs/js/wasm/wasm_utxo.js +252 -298
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm.d.ts +53 -53
- package/dist/esm/js/wasm/wasm_utxo.d.ts +11 -14
- package/dist/esm/js/wasm/wasm_utxo_bg.js +257 -293
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm.d.ts +53 -53
- package/package.json +1 -1
|
Binary file
|
|
@@ -1,38 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
6
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
7
|
-
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
8
|
-
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
9
|
-
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
10
|
-
export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
11
|
-
export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
|
|
12
|
-
export const wrapdescriptor_hasWildcard: (a: number) => number;
|
|
13
|
-
export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
|
|
14
|
-
export const wrapdescriptor_node: (a: number, b: number) => void;
|
|
15
|
-
export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
|
|
16
|
-
export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
|
|
17
|
-
export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
18
|
-
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
19
|
-
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
20
|
-
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
21
|
-
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
22
|
-
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
23
|
-
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
24
|
-
export const wrappsbt_clone: (a: number) => number;
|
|
25
|
-
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
26
|
-
export const wrappsbt_finalize: (a: number, b: number) => void;
|
|
27
|
-
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
28
|
-
export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
|
|
29
|
-
export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
|
|
30
|
-
export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
31
|
-
export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
32
4
|
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
33
5
|
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
34
6
|
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
35
7
|
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
8
|
+
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
9
|
+
export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
|
|
10
|
+
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
11
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
36
12
|
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
37
13
|
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
38
14
|
export const bitgopsbt_add_paygo_attestation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
@@ -55,10 +31,35 @@ export const fixedscriptwalletnamespace_address: (a: number, b: number, c: numbe
|
|
|
55
31
|
export const fixedscriptwalletnamespace_output_script: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
56
32
|
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
57
33
|
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
34
|
+
export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
|
|
35
|
+
export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
|
|
36
|
+
export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
|
|
37
|
+
export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
|
|
38
|
+
export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
|
|
39
|
+
export const wasmecpair_private_key: (a: number) => number;
|
|
40
|
+
export const wasmecpair_public_key: (a: number) => number;
|
|
41
|
+
export const wasmecpair_to_wif: (a: number, b: number) => void;
|
|
42
|
+
export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
|
|
43
|
+
export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
|
|
44
|
+
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
45
|
+
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
46
|
+
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
47
|
+
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
48
|
+
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
49
|
+
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
50
|
+
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
51
|
+
export const wasmrootwalletkeys_with_derivation_prefixes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
52
|
+
export const wrappsbt_clone: (a: number) => number;
|
|
53
|
+
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
54
|
+
export const wrappsbt_finalize: (a: number, b: number) => void;
|
|
55
|
+
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
56
|
+
export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
|
|
57
|
+
export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
|
|
58
|
+
export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
59
|
+
export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
58
60
|
export const __wbg_wasmbip32_free: (a: number, b: number) => void;
|
|
59
|
-
export const
|
|
60
|
-
export const
|
|
61
|
-
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
61
|
+
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
62
|
+
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
62
63
|
export const wasmbip32_chain_code: (a: number) => number;
|
|
63
64
|
export const wasmbip32_depth: (a: number) => number;
|
|
64
65
|
export const wasmbip32_derive: (a: number, b: number, c: number) => void;
|
|
@@ -79,31 +80,30 @@ export const wasmbip32_private_key: (a: number) => number;
|
|
|
79
80
|
export const wasmbip32_public_key: (a: number) => number;
|
|
80
81
|
export const wasmbip32_to_base58: (a: number, b: number) => void;
|
|
81
82
|
export const wasmbip32_to_wif: (a: number, b: number) => void;
|
|
82
|
-
export const
|
|
83
|
-
export const
|
|
84
|
-
export const
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
87
|
-
export const
|
|
88
|
-
export const
|
|
89
|
-
export const
|
|
90
|
-
export const
|
|
91
|
-
export const
|
|
92
|
-
export const
|
|
93
|
-
export const
|
|
94
|
-
export const
|
|
95
|
-
export const
|
|
96
|
-
export const
|
|
97
|
-
export const
|
|
98
|
-
export const
|
|
99
|
-
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;
|
|
83
|
+
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
84
|
+
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
85
|
+
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
86
|
+
export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
87
|
+
export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
|
|
88
|
+
export const wrapdescriptor_hasWildcard: (a: number) => number;
|
|
89
|
+
export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
|
|
90
|
+
export const wrapdescriptor_node: (a: number, b: number) => void;
|
|
91
|
+
export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
|
|
92
|
+
export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
|
|
93
|
+
export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
94
|
+
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
95
|
+
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
96
|
+
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
97
|
+
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
98
|
+
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
99
|
+
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
100
100
|
export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
101
101
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
102
102
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
103
103
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
104
104
|
export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
105
|
-
export const
|
|
106
|
-
export const
|
|
107
|
-
export const
|
|
105
|
+
export const __wbindgen_export: (a: number, b: number) => number;
|
|
106
|
+
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
107
|
+
export const __wbindgen_export3: (a: number) => void;
|
|
108
108
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
109
|
-
export const
|
|
109
|
+
export const __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
|
|
3
4
|
export class AddressNamespace {
|
|
4
5
|
private constructor();
|
|
5
6
|
free(): void;
|
|
@@ -7,6 +8,7 @@ export class AddressNamespace {
|
|
|
7
8
|
static to_output_script_with_coin(address: string, coin: string): Uint8Array;
|
|
8
9
|
static from_output_script_with_coin(script: Uint8Array, coin: string, format?: string | null): string;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
export class BitGoPsbt {
|
|
11
13
|
private constructor();
|
|
12
14
|
free(): void;
|
|
@@ -219,6 +221,7 @@ export class BitGoPsbt {
|
|
|
219
221
|
*/
|
|
220
222
|
serialize(): Uint8Array;
|
|
221
223
|
}
|
|
224
|
+
|
|
222
225
|
export class FixedScriptWalletNamespace {
|
|
223
226
|
private constructor();
|
|
224
227
|
free(): void;
|
|
@@ -226,6 +229,7 @@ export class FixedScriptWalletNamespace {
|
|
|
226
229
|
static output_script(keys: WasmRootWalletKeys, chain: number, index: number, network: any): Uint8Array;
|
|
227
230
|
static address(keys: WasmRootWalletKeys, chain: number, index: number, network: any, address_format?: string | null): string;
|
|
228
231
|
}
|
|
232
|
+
|
|
229
233
|
export class UtxolibCompatNamespace {
|
|
230
234
|
private constructor();
|
|
231
235
|
free(): void;
|
|
@@ -249,10 +253,7 @@ export class UtxolibCompatNamespace {
|
|
|
249
253
|
*/
|
|
250
254
|
static from_output_script(script: Uint8Array, network: any, format?: string | null): string;
|
|
251
255
|
}
|
|
252
|
-
|
|
253
|
-
* WASM wrapper for BIP32 extended keys (Xpub/Xpriv)
|
|
254
|
-
* Implements the BIP32Interface TypeScript interface
|
|
255
|
-
*/
|
|
256
|
+
|
|
256
257
|
export class WasmBIP32 {
|
|
257
258
|
private constructor();
|
|
258
259
|
free(): void;
|
|
@@ -345,9 +346,7 @@ export class WasmBIP32 {
|
|
|
345
346
|
*/
|
|
346
347
|
readonly index: number;
|
|
347
348
|
}
|
|
348
|
-
|
|
349
|
-
* WASM wrapper for elliptic curve key pairs (always uses compressed keys)
|
|
350
|
-
*/
|
|
349
|
+
|
|
351
350
|
export class WasmECPair {
|
|
352
351
|
private constructor();
|
|
353
352
|
free(): void;
|
|
@@ -393,9 +392,7 @@ export class WasmECPair {
|
|
|
393
392
|
*/
|
|
394
393
|
readonly private_key: Uint8Array | undefined;
|
|
395
394
|
}
|
|
396
|
-
|
|
397
|
-
* WASM wrapper for ReplayProtection
|
|
398
|
-
*/
|
|
395
|
+
|
|
399
396
|
export class WasmReplayProtection {
|
|
400
397
|
private constructor();
|
|
401
398
|
free(): void;
|
|
@@ -413,10 +410,7 @@ export class WasmReplayProtection {
|
|
|
413
410
|
*/
|
|
414
411
|
static from_output_scripts(output_scripts: Uint8Array[]): WasmReplayProtection;
|
|
415
412
|
}
|
|
416
|
-
|
|
417
|
-
* WASM wrapper for RootWalletKeys
|
|
418
|
-
* Represents a set of three extended public keys with their derivation prefixes
|
|
419
|
-
*/
|
|
413
|
+
|
|
420
414
|
export class WasmRootWalletKeys {
|
|
421
415
|
free(): void;
|
|
422
416
|
[Symbol.dispose](): void;
|
|
@@ -455,6 +449,7 @@ export class WasmRootWalletKeys {
|
|
|
455
449
|
*/
|
|
456
450
|
bitgo_key(): WasmBIP32;
|
|
457
451
|
}
|
|
452
|
+
|
|
458
453
|
export class WrapDescriptor {
|
|
459
454
|
private constructor();
|
|
460
455
|
free(): void;
|
|
@@ -469,6 +464,7 @@ export class WrapDescriptor {
|
|
|
469
464
|
descType(): any;
|
|
470
465
|
toString(): string;
|
|
471
466
|
}
|
|
467
|
+
|
|
472
468
|
export class WrapMiniscript {
|
|
473
469
|
private constructor();
|
|
474
470
|
free(): void;
|
|
@@ -478,6 +474,7 @@ export class WrapMiniscript {
|
|
|
478
474
|
encode(): Uint8Array;
|
|
479
475
|
toString(): string;
|
|
480
476
|
}
|
|
477
|
+
|
|
481
478
|
export class WrapPsbt {
|
|
482
479
|
private constructor();
|
|
483
480
|
free(): void;
|