@bitgo/wasm-utxo 1.22.0 → 1.24.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/Dimensions.d.ts +35 -0
- package/dist/cjs/js/fixedScriptWallet/Dimensions.js +41 -5
- package/dist/cjs/js/fixedScriptWallet/chains.d.ts +56 -0
- package/dist/cjs/js/fixedScriptWallet/chains.js +125 -0
- package/dist/cjs/js/fixedScriptWallet/index.d.ts +1 -0
- package/dist/cjs/js/fixedScriptWallet/index.js +4 -1
- package/dist/cjs/js/index.d.ts +2 -0
- package/dist/cjs/js/index.js +2 -1
- package/dist/cjs/js/inscriptions.d.ts +84 -0
- package/dist/cjs/js/inscriptions.js +82 -0
- package/dist/cjs/js/wasm/wasm_utxo.d.ts +80 -2
- package/dist/cjs/js/wasm/wasm_utxo.js +204 -8
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/cjs/js/wasm/wasm_utxo_bg.wasm.d.ts +51 -41
- package/dist/esm/js/fixedScriptWallet/Dimensions.d.ts +35 -0
- package/dist/esm/js/fixedScriptWallet/Dimensions.js +41 -5
- package/dist/esm/js/fixedScriptWallet/chains.d.ts +56 -0
- package/dist/esm/js/fixedScriptWallet/chains.js +122 -0
- package/dist/esm/js/fixedScriptWallet/index.d.ts +1 -0
- package/dist/esm/js/fixedScriptWallet/index.js +1 -0
- package/dist/esm/js/index.d.ts +2 -0
- package/dist/esm/js/index.js +1 -0
- package/dist/esm/js/inscriptions.d.ts +84 -0
- package/dist/esm/js/inscriptions.js +78 -0
- package/dist/esm/js/wasm/wasm_utxo.d.ts +80 -2
- package/dist/esm/js/wasm/wasm_utxo_bg.js +203 -8
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/esm/js/wasm/wasm_utxo_bg.wasm.d.ts +51 -41
- package/package.json +1 -1
|
@@ -205,6 +205,10 @@ const FixedScriptWalletNamespaceFinalization = (typeof FinalizationRegistry ===
|
|
|
205
205
|
? { register: () => {}, unregister: () => {} }
|
|
206
206
|
: new FinalizationRegistry(ptr => wasm.__wbg_fixedscriptwalletnamespace_free(ptr >>> 0, 1));
|
|
207
207
|
|
|
208
|
+
const InscriptionsNamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
209
|
+
? { register: () => {}, unregister: () => {} }
|
|
210
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_inscriptionsnamespace_free(ptr >>> 0, 1));
|
|
211
|
+
|
|
208
212
|
const UtxolibCompatNamespaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
209
213
|
? { register: () => {}, unregister: () => {} }
|
|
210
214
|
: new FinalizationRegistry(ptr => wasm.__wbg_utxolibcompatnamespace_free(ptr >>> 0, 1));
|
|
@@ -1525,6 +1529,19 @@ export class FixedScriptWalletNamespace {
|
|
|
1525
1529
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1526
1530
|
}
|
|
1527
1531
|
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Get all chain code metadata for building TypeScript lookup tables
|
|
1534
|
+
*
|
|
1535
|
+
* Returns an array of [chainCode, scriptType, scope] tuples where:
|
|
1536
|
+
* - chainCode: u32 (0, 1, 10, 11, 20, 21, 30, 31, 40, 41)
|
|
1537
|
+
* - scriptType: string ("p2sh", "p2shP2wsh", "p2wsh", "p2trLegacy", "p2trMusig2")
|
|
1538
|
+
* - scope: string ("external" or "internal")
|
|
1539
|
+
* @returns {any}
|
|
1540
|
+
*/
|
|
1541
|
+
static chain_code_table() {
|
|
1542
|
+
const ret = wasm.fixedscriptwalletnamespace_chain_code_table();
|
|
1543
|
+
return takeObject(ret);
|
|
1544
|
+
}
|
|
1528
1545
|
/**
|
|
1529
1546
|
* Check if a network supports a given fixed-script wallet script type
|
|
1530
1547
|
*
|
|
@@ -1600,6 +1617,108 @@ export class FixedScriptWalletNamespace {
|
|
|
1600
1617
|
}
|
|
1601
1618
|
if (Symbol.dispose) FixedScriptWalletNamespace.prototype[Symbol.dispose] = FixedScriptWalletNamespace.prototype.free;
|
|
1602
1619
|
|
|
1620
|
+
/**
|
|
1621
|
+
* Namespace for inscription-related functions
|
|
1622
|
+
*/
|
|
1623
|
+
export class InscriptionsNamespace {
|
|
1624
|
+
__destroy_into_raw() {
|
|
1625
|
+
const ptr = this.__wbg_ptr;
|
|
1626
|
+
this.__wbg_ptr = 0;
|
|
1627
|
+
InscriptionsNamespaceFinalization.unregister(this);
|
|
1628
|
+
return ptr;
|
|
1629
|
+
}
|
|
1630
|
+
free() {
|
|
1631
|
+
const ptr = this.__destroy_into_raw();
|
|
1632
|
+
wasm.__wbg_inscriptionsnamespace_free(ptr, 0);
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* Sign a reveal transaction
|
|
1636
|
+
*
|
|
1637
|
+
* # Arguments
|
|
1638
|
+
* * `private_key` - The private key (32 bytes)
|
|
1639
|
+
* * `tap_leaf_script` - The tap leaf script object from `create_inscription_reveal_data`
|
|
1640
|
+
* * `commit_tx` - The commit transaction
|
|
1641
|
+
* * `commit_output_script` - The commit output script (P2TR)
|
|
1642
|
+
* * `recipient_output_script` - Where to send the inscription (output script)
|
|
1643
|
+
* * `output_value_sats` - Value in satoshis for the inscription output
|
|
1644
|
+
*
|
|
1645
|
+
* # Returns
|
|
1646
|
+
* The signed PSBT as bytes
|
|
1647
|
+
* @param {Uint8Array} private_key
|
|
1648
|
+
* @param {any} tap_leaf_script
|
|
1649
|
+
* @param {WasmTransaction} commit_tx
|
|
1650
|
+
* @param {Uint8Array} commit_output_script
|
|
1651
|
+
* @param {Uint8Array} recipient_output_script
|
|
1652
|
+
* @param {bigint} output_value_sats
|
|
1653
|
+
* @returns {Uint8Array}
|
|
1654
|
+
*/
|
|
1655
|
+
static sign_reveal_transaction(private_key, tap_leaf_script, commit_tx, commit_output_script, recipient_output_script, output_value_sats) {
|
|
1656
|
+
try {
|
|
1657
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1658
|
+
const ptr0 = passArray8ToWasm0(private_key, wasm.__wbindgen_export);
|
|
1659
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1660
|
+
_assertClass(commit_tx, WasmTransaction);
|
|
1661
|
+
const ptr1 = passArray8ToWasm0(commit_output_script, wasm.__wbindgen_export);
|
|
1662
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1663
|
+
const ptr2 = passArray8ToWasm0(recipient_output_script, wasm.__wbindgen_export);
|
|
1664
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1665
|
+
wasm.inscriptionsnamespace_sign_reveal_transaction(retptr, ptr0, len0, addHeapObject(tap_leaf_script), commit_tx.__wbg_ptr, ptr1, len1, ptr2, len2, output_value_sats);
|
|
1666
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1667
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1668
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1669
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1670
|
+
if (r3) {
|
|
1671
|
+
throw takeObject(r2);
|
|
1672
|
+
}
|
|
1673
|
+
var v4 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1674
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
1675
|
+
return v4;
|
|
1676
|
+
} finally {
|
|
1677
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
* Create inscription reveal data including the commit output script and tap leaf script
|
|
1682
|
+
*
|
|
1683
|
+
* # Arguments
|
|
1684
|
+
* * `x_only_pubkey` - The x-only public key (32 bytes)
|
|
1685
|
+
* * `content_type` - MIME type of the inscription (e.g., "text/plain", "image/png")
|
|
1686
|
+
* * `inscription_data` - The inscription data bytes
|
|
1687
|
+
*
|
|
1688
|
+
* # Returns
|
|
1689
|
+
* An object containing:
|
|
1690
|
+
* - `output_script`: The commit output script (P2TR, network-agnostic)
|
|
1691
|
+
* - `reveal_transaction_vsize`: Estimated vsize of the reveal transaction
|
|
1692
|
+
* - `tap_leaf_script`: Object with `leaf_version`, `script`, and `control_block`
|
|
1693
|
+
* @param {Uint8Array} x_only_pubkey
|
|
1694
|
+
* @param {string} content_type
|
|
1695
|
+
* @param {Uint8Array} inscription_data
|
|
1696
|
+
* @returns {any}
|
|
1697
|
+
*/
|
|
1698
|
+
static create_inscription_reveal_data(x_only_pubkey, content_type, inscription_data) {
|
|
1699
|
+
try {
|
|
1700
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1701
|
+
const ptr0 = passArray8ToWasm0(x_only_pubkey, wasm.__wbindgen_export);
|
|
1702
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1703
|
+
const ptr1 = passStringToWasm0(content_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1704
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1705
|
+
const ptr2 = passArray8ToWasm0(inscription_data, wasm.__wbindgen_export);
|
|
1706
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1707
|
+
wasm.inscriptionsnamespace_create_inscription_reveal_data(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
1708
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1709
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1710
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1711
|
+
if (r2) {
|
|
1712
|
+
throw takeObject(r1);
|
|
1713
|
+
}
|
|
1714
|
+
return takeObject(r0);
|
|
1715
|
+
} finally {
|
|
1716
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
if (Symbol.dispose) InscriptionsNamespace.prototype[Symbol.dispose] = InscriptionsNamespace.prototype.free;
|
|
1721
|
+
|
|
1603
1722
|
export class UtxolibCompatNamespace {
|
|
1604
1723
|
__destroy_into_raw() {
|
|
1605
1724
|
const ptr = this.__wbg_ptr;
|
|
@@ -2185,15 +2304,48 @@ export class WasmDimensions {
|
|
|
2185
2304
|
return ret !== 0;
|
|
2186
2305
|
}
|
|
2187
2306
|
/**
|
|
2188
|
-
*
|
|
2189
|
-
*
|
|
2190
|
-
*
|
|
2307
|
+
* Get input virtual size (min or max)
|
|
2308
|
+
*
|
|
2309
|
+
* # Arguments
|
|
2310
|
+
* * `size` - "min" or "max", defaults to "max"
|
|
2311
|
+
* @param {string | null} [size]
|
|
2312
|
+
* @returns {number}
|
|
2191
2313
|
*/
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
const ret = wasm.
|
|
2196
|
-
return
|
|
2314
|
+
get_input_vsize(size) {
|
|
2315
|
+
var ptr0 = isLikeNone(size) ? 0 : passStringToWasm0(size, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2316
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2317
|
+
const ret = wasm.wasmdimensions_get_input_vsize(this.__wbg_ptr, ptr0, len0);
|
|
2318
|
+
return ret >>> 0;
|
|
2319
|
+
}
|
|
2320
|
+
/**
|
|
2321
|
+
* Get input weight only (min or max)
|
|
2322
|
+
*
|
|
2323
|
+
* # Arguments
|
|
2324
|
+
* * `size` - "min" or "max", defaults to "max"
|
|
2325
|
+
* @param {string | null} [size]
|
|
2326
|
+
* @returns {number}
|
|
2327
|
+
*/
|
|
2328
|
+
get_input_weight(size) {
|
|
2329
|
+
var ptr0 = isLikeNone(size) ? 0 : passStringToWasm0(size, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2330
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2331
|
+
const ret = wasm.wasmdimensions_get_input_weight(this.__wbg_ptr, ptr0, len0);
|
|
2332
|
+
return ret >>> 0;
|
|
2333
|
+
}
|
|
2334
|
+
/**
|
|
2335
|
+
* Get output virtual size
|
|
2336
|
+
* @returns {number}
|
|
2337
|
+
*/
|
|
2338
|
+
get_output_vsize() {
|
|
2339
|
+
const ret = wasm.wasmdimensions_get_output_vsize(this.__wbg_ptr);
|
|
2340
|
+
return ret >>> 0;
|
|
2341
|
+
}
|
|
2342
|
+
/**
|
|
2343
|
+
* Get output weight
|
|
2344
|
+
* @returns {number}
|
|
2345
|
+
*/
|
|
2346
|
+
get_output_weight() {
|
|
2347
|
+
const ret = wasm.wasmdimensions_get_output_weight(this.__wbg_ptr);
|
|
2348
|
+
return ret >>> 0;
|
|
2197
2349
|
}
|
|
2198
2350
|
/**
|
|
2199
2351
|
* Create dimensions for a single input from script type string
|
|
@@ -2221,6 +2373,40 @@ export class WasmDimensions {
|
|
|
2221
2373
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2222
2374
|
}
|
|
2223
2375
|
}
|
|
2376
|
+
/**
|
|
2377
|
+
* Create dimensions for a single output from script type string
|
|
2378
|
+
*
|
|
2379
|
+
* # Arguments
|
|
2380
|
+
* * `script_type` - One of: "p2sh", "p2shP2wsh", "p2wsh", "p2tr"/"p2trLegacy", "p2trMusig2"
|
|
2381
|
+
* @param {string} script_type
|
|
2382
|
+
* @returns {WasmDimensions}
|
|
2383
|
+
*/
|
|
2384
|
+
static from_output_script_type(script_type) {
|
|
2385
|
+
try {
|
|
2386
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2387
|
+
const ptr0 = passStringToWasm0(script_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2388
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2389
|
+
wasm.wasmdimensions_from_output_script_type(retptr, ptr0, len0);
|
|
2390
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2391
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2392
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2393
|
+
if (r2) {
|
|
2394
|
+
throw takeObject(r1);
|
|
2395
|
+
}
|
|
2396
|
+
return WasmDimensions.__wrap(r0);
|
|
2397
|
+
} finally {
|
|
2398
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
/**
|
|
2402
|
+
* Create dimensions for a single output from script length
|
|
2403
|
+
* @param {number} length
|
|
2404
|
+
* @returns {WasmDimensions}
|
|
2405
|
+
*/
|
|
2406
|
+
static from_output_script_length(length) {
|
|
2407
|
+
const ret = wasm.wasmdimensions_from_output_script_length(length);
|
|
2408
|
+
return WasmDimensions.__wrap(ret);
|
|
2409
|
+
}
|
|
2224
2410
|
/**
|
|
2225
2411
|
* Combine with another Dimensions instance
|
|
2226
2412
|
* @param {WasmDimensions} other
|
|
@@ -2239,6 +2425,15 @@ export class WasmDimensions {
|
|
|
2239
2425
|
const ret = wasm.wasmdimensions_empty();
|
|
2240
2426
|
return WasmDimensions.__wrap(ret);
|
|
2241
2427
|
}
|
|
2428
|
+
/**
|
|
2429
|
+
* Multiply dimensions by a scalar
|
|
2430
|
+
* @param {number} n
|
|
2431
|
+
* @returns {WasmDimensions}
|
|
2432
|
+
*/
|
|
2433
|
+
times(n) {
|
|
2434
|
+
const ret = wasm.wasmdimensions_times(this.__wbg_ptr, n);
|
|
2435
|
+
return WasmDimensions.__wrap(ret);
|
|
2436
|
+
}
|
|
2242
2437
|
/**
|
|
2243
2438
|
* Create dimensions from a BitGoPsbt
|
|
2244
2439
|
*
|
|
Binary file
|
|
@@ -1,52 +1,15 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
6
|
-
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
7
|
-
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
8
|
-
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
9
|
-
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
10
|
-
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
11
|
-
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
12
|
-
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
13
|
-
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
14
|
-
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
15
|
-
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
16
|
-
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
17
|
-
export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
18
|
-
export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
|
|
19
|
-
export const wrapdescriptor_hasWildcard: (a: number) => number;
|
|
20
|
-
export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
|
|
21
|
-
export const wrapdescriptor_node: (a: number, b: number) => void;
|
|
22
|
-
export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
|
|
23
|
-
export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
|
|
24
|
-
export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
25
|
-
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
26
|
-
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
27
|
-
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
28
|
-
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
29
|
-
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
30
|
-
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
31
|
-
export const wrappsbt_clone: (a: number) => number;
|
|
32
|
-
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
33
|
-
export const wrappsbt_finalize: (a: number, b: number) => void;
|
|
34
|
-
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
35
|
-
export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
|
|
36
|
-
export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
|
|
37
|
-
export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
38
|
-
export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
39
4
|
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
40
5
|
export const __wbg_bip322namespace_free: (a: number, b: number) => void;
|
|
41
6
|
export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
|
|
42
7
|
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
43
8
|
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
44
9
|
export const __wbg_wasmbip32_free: (a: number, b: number) => void;
|
|
45
|
-
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
46
10
|
export const __wbg_wasmdimensions_free: (a: number, b: number) => void;
|
|
47
11
|
export const __wbg_wasmecpair_free: (a: number, b: number) => void;
|
|
48
12
|
export const __wbg_wasmreplayprotection_free: (a: number, b: number) => void;
|
|
49
|
-
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
50
13
|
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
51
14
|
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
52
15
|
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;
|
|
@@ -84,6 +47,7 @@ export const bitgopsbt_verify_signature_with_xpub: (a: number, b: number, c: num
|
|
|
84
47
|
export const bitgopsbt_version: (a: number) => number;
|
|
85
48
|
export const bitgopsbt_version_group_id: (a: number) => number;
|
|
86
49
|
export const fixedscriptwalletnamespace_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
50
|
+
export const fixedscriptwalletnamespace_chain_code_table: () => number;
|
|
87
51
|
export const fixedscriptwalletnamespace_output_script: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
88
52
|
export const fixedscriptwalletnamespace_supports_script_type: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
89
53
|
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
@@ -108,17 +72,21 @@ export const wasmbip32_private_key: (a: number) => number;
|
|
|
108
72
|
export const wasmbip32_public_key: (a: number) => number;
|
|
109
73
|
export const wasmbip32_to_base58: (a: number, b: number) => void;
|
|
110
74
|
export const wasmbip32_to_wif: (a: number, b: number) => void;
|
|
111
|
-
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
112
|
-
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
113
75
|
export const wasmdimensions_empty: () => number;
|
|
114
76
|
export const wasmdimensions_from_input: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
115
77
|
export const wasmdimensions_from_input_script_type: (a: number, b: number, c: number) => void;
|
|
116
|
-
export const
|
|
78
|
+
export const wasmdimensions_from_output_script_length: (a: number) => number;
|
|
79
|
+
export const wasmdimensions_from_output_script_type: (a: number, b: number, c: number) => void;
|
|
117
80
|
export const wasmdimensions_from_psbt: (a: number, b: number) => void;
|
|
81
|
+
export const wasmdimensions_get_input_vsize: (a: number, b: number, c: number) => number;
|
|
82
|
+
export const wasmdimensions_get_input_weight: (a: number, b: number, c: number) => number;
|
|
83
|
+
export const wasmdimensions_get_output_vsize: (a: number) => number;
|
|
84
|
+
export const wasmdimensions_get_output_weight: (a: number) => number;
|
|
118
85
|
export const wasmdimensions_get_vsize: (a: number, b: number, c: number) => number;
|
|
119
86
|
export const wasmdimensions_get_weight: (a: number, b: number, c: number) => number;
|
|
120
87
|
export const wasmdimensions_has_segwit: (a: number) => number;
|
|
121
88
|
export const wasmdimensions_plus: (a: number, b: number) => number;
|
|
89
|
+
export const wasmdimensions_times: (a: number, b: number) => number;
|
|
122
90
|
export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
|
|
123
91
|
export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
|
|
124
92
|
export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
|
|
@@ -132,12 +100,54 @@ export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
|
|
|
132
100
|
export const wasmreplayprotection_from_addresses: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
133
101
|
export const wasmreplayprotection_from_output_scripts: (a: number, b: number) => number;
|
|
134
102
|
export const wasmreplayprotection_from_public_keys: (a: number, b: number, c: number) => void;
|
|
103
|
+
export const wasmbip32_from_bip32_properties: (a: number, b: number) => void;
|
|
104
|
+
export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
|
|
105
|
+
export const __wbg_wasmdashtransaction_free: (a: number, b: number) => void;
|
|
106
|
+
export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
|
|
107
|
+
export const __wbg_wasmtransaction_free: (a: number, b: number) => void;
|
|
108
|
+
export const __wbg_wasmzcashtransaction_free: (a: number, b: number) => void;
|
|
109
|
+
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
110
|
+
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
111
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
112
|
+
export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
113
|
+
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;
|
|
114
|
+
export const wasmdashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
115
|
+
export const wasmdashtransaction_to_bytes: (a: number, b: number) => void;
|
|
135
116
|
export const wasmrootwalletkeys_backup_key: (a: number) => number;
|
|
136
117
|
export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
|
|
137
118
|
export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
|
|
138
119
|
export const wasmrootwalletkeys_user_key: (a: number) => number;
|
|
139
120
|
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;
|
|
140
|
-
export const
|
|
121
|
+
export const wasmtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
122
|
+
export const wasmtransaction_get_vsize: (a: number) => number;
|
|
123
|
+
export const wasmtransaction_to_bytes: (a: number, b: number) => void;
|
|
124
|
+
export const wasmzcashtransaction_from_bytes: (a: number, b: number, c: number) => void;
|
|
125
|
+
export const wasmzcashtransaction_to_bytes: (a: number, b: number) => void;
|
|
126
|
+
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
127
|
+
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
128
|
+
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
129
|
+
export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
130
|
+
export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
|
|
131
|
+
export const wrapdescriptor_hasWildcard: (a: number) => number;
|
|
132
|
+
export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
|
|
133
|
+
export const wrapdescriptor_node: (a: number, b: number) => void;
|
|
134
|
+
export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
|
|
135
|
+
export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
|
|
136
|
+
export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
137
|
+
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
138
|
+
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
139
|
+
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
140
|
+
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
141
|
+
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
142
|
+
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
143
|
+
export const wrappsbt_clone: (a: number) => number;
|
|
144
|
+
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
145
|
+
export const wrappsbt_finalize: (a: number, b: number) => void;
|
|
146
|
+
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
147
|
+
export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
|
|
148
|
+
export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
|
|
149
|
+
export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
150
|
+
export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
141
151
|
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
142
152
|
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
143
153
|
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|