@bitgo/wasm-utxo 4.9.0 → 4.10.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.
@@ -1,4 +1,4 @@
1
- export declare const coinNames: readonly ["btc", "tbtc", "tbtc4", "tbtcsig", "tbtcbgsig", "bch", "tbch", "bcha", "tbcha", "btg", "tbtg", "bsv", "tbsv", "dash", "tdash", "doge", "tdoge", "ltc", "tltc", "zec", "tzec"];
1
+ export declare const coinNames: readonly ["btc", "tbtc", "tbtc4", "tbtcsig", "tbtcbgsig", "tbtcreg", "bch", "tbch", "bcha", "tbcha", "btg", "tbtg", "bsv", "tbsv", "dash", "tdash", "doge", "tdoge", "ltc", "tltc", "zec", "tzec"];
2
2
  export type CoinName = (typeof coinNames)[number];
3
3
  export declare function getMainnet(name: CoinName): CoinName;
4
4
  export declare function isMainnet(name: CoinName): boolean;
@@ -13,6 +13,7 @@ exports.coinNames = [
13
13
  "tbtc4",
14
14
  "tbtcsig",
15
15
  "tbtcbgsig",
16
+ "tbtcreg",
16
17
  "bch",
17
18
  "tbch",
18
19
  "bcha",
@@ -36,6 +37,7 @@ function getMainnet(name) {
36
37
  case "tbtc4":
37
38
  case "tbtcsig":
38
39
  case "tbtcbgsig":
40
+ case "tbtcreg":
39
41
  return "btc";
40
42
  case "tbch":
41
43
  return "bch";
@@ -79,6 +81,8 @@ function toCoinName(name) {
79
81
  return "tbtcsig";
80
82
  case "bitcoinBitGoSignet":
81
83
  return "tbtcbgsig";
84
+ case "bitcoinRegtest":
85
+ return "tbtcreg";
82
86
  case "bitcoincash":
83
87
  return "bch";
84
88
  case "bitcoincashTestnet":
@@ -1,5 +1,5 @@
1
1
  import type { AddressFormat } from "./address.js";
2
- export type UtxolibName = "bitcoin" | "testnet" | "bitcoinTestnet4" | "bitcoinPublicSignet" | "bitcoinBitGoSignet" | "bitcoincash" | "bitcoincashTestnet" | "ecash" | "ecashTest" | "bitcoingold" | "bitcoingoldTestnet" | "bitcoinsv" | "bitcoinsvTestnet" | "dash" | "dashTest" | "dogecoin" | "dogecoinTest" | "litecoin" | "litecoinTest" | "zcash" | "zcashTest";
2
+ export type UtxolibName = "bitcoin" | "testnet" | "bitcoinTestnet4" | "bitcoinPublicSignet" | "bitcoinBitGoSignet" | "bitcoinRegtest" | "bitcoincash" | "bitcoincashTestnet" | "ecash" | "ecashTest" | "bitcoingold" | "bitcoingoldTestnet" | "bitcoinsv" | "bitcoinsvTestnet" | "dash" | "dashTest" | "dogecoin" | "dogecoinTest" | "litecoin" | "litecoinTest" | "zcash" | "zcashTest";
3
3
  export type UtxolibNetwork = {
4
4
  pubKeyHash: number;
5
5
  scriptHash: number;
Binary file
@@ -3,6 +3,49 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
5
5
  export const wasmutxonamespace_get_wasm_utxo_version: (a: 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 wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
9
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
10
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
11
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
12
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
13
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
14
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
15
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
16
+ export const wrapdescriptor_node: (a: number, b: number) => void;
17
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
18
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
19
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
20
+ export const wrapminiscript_encode: (a: number, b: number) => void;
21
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
22
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
23
+ export const wrapminiscript_node: (a: number, b: number) => void;
24
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
25
+ export const wrapminiscript_toString: (a: number, b: number) => void;
26
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
27
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
28
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
29
+ export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
30
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
31
+ 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;
32
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
33
+ export const messagenamespace_verify_message: (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 wasmrootwalletkeys_backup_key: (a: number) => number;
45
+ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
46
+ export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
47
+ export const wasmrootwalletkeys_user_key: (a: number) => number;
48
+ 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;
6
49
  export const __wbg_bip322namespace_free: (a: number, b: number) => void;
7
50
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
8
51
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
@@ -230,49 +273,6 @@ export const wasmzcashtransaction_lock_time: (a: number) => number;
230
273
  export const wasmzcashtransaction_version: (a: number) => number;
231
274
  export const wrappsbt_lock_time: (a: number) => number;
232
275
  export const wrappsbt_version: (a: number) => number;
233
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
234
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
235
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
236
- export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
237
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
238
- 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;
239
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
240
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
241
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
242
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
243
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
244
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
245
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
246
- export const wasmecpair_private_key: (a: number) => number;
247
- export const wasmecpair_public_key: (a: number) => number;
248
- export const wasmecpair_to_wif: (a: number, b: number) => void;
249
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
250
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
251
- export const wasmrootwalletkeys_backup_key: (a: number) => number;
252
- export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
253
- export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
254
- export const wasmrootwalletkeys_user_key: (a: number) => number;
255
- 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;
256
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
257
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
258
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
259
- export const wrapdescriptor_descType: (a: number, b: number) => void;
260
- export const wrapdescriptor_encode: (a: number, b: number) => void;
261
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
262
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
263
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
264
- export const wrapdescriptor_hasWildcard: (a: number) => number;
265
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
266
- export const wrapdescriptor_node: (a: number, b: number) => void;
267
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
268
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
269
- export const wrapdescriptor_toString: (a: number, b: number) => void;
270
- export const wrapminiscript_encode: (a: number, b: number) => void;
271
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
272
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
273
- export const wrapminiscript_node: (a: number, b: number) => void;
274
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
275
- export const wrapminiscript_toString: (a: number, b: number) => void;
276
276
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
277
277
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
278
278
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
@@ -1,4 +1,4 @@
1
- export declare const coinNames: readonly ["btc", "tbtc", "tbtc4", "tbtcsig", "tbtcbgsig", "bch", "tbch", "bcha", "tbcha", "btg", "tbtg", "bsv", "tbsv", "dash", "tdash", "doge", "tdoge", "ltc", "tltc", "zec", "tzec"];
1
+ export declare const coinNames: readonly ["btc", "tbtc", "tbtc4", "tbtcsig", "tbtcbgsig", "tbtcreg", "bch", "tbch", "bcha", "tbcha", "btg", "tbtg", "bsv", "tbsv", "dash", "tdash", "doge", "tdoge", "ltc", "tltc", "zec", "tzec"];
2
2
  export type CoinName = (typeof coinNames)[number];
3
3
  export declare function getMainnet(name: CoinName): CoinName;
4
4
  export declare function isMainnet(name: CoinName): boolean;
@@ -5,6 +5,7 @@ export const coinNames = [
5
5
  "tbtc4",
6
6
  "tbtcsig",
7
7
  "tbtcbgsig",
8
+ "tbtcreg",
8
9
  "bch",
9
10
  "tbch",
10
11
  "bcha",
@@ -28,6 +29,7 @@ export function getMainnet(name) {
28
29
  case "tbtc4":
29
30
  case "tbtcsig":
30
31
  case "tbtcbgsig":
32
+ case "tbtcreg":
31
33
  return "btc";
32
34
  case "tbch":
33
35
  return "bch";
@@ -71,6 +73,8 @@ export function toCoinName(name) {
71
73
  return "tbtcsig";
72
74
  case "bitcoinBitGoSignet":
73
75
  return "tbtcbgsig";
76
+ case "bitcoinRegtest":
77
+ return "tbtcreg";
74
78
  case "bitcoincash":
75
79
  return "bch";
76
80
  case "bitcoincashTestnet":
@@ -1,5 +1,5 @@
1
1
  import type { AddressFormat } from "./address.js";
2
- export type UtxolibName = "bitcoin" | "testnet" | "bitcoinTestnet4" | "bitcoinPublicSignet" | "bitcoinBitGoSignet" | "bitcoincash" | "bitcoincashTestnet" | "ecash" | "ecashTest" | "bitcoingold" | "bitcoingoldTestnet" | "bitcoinsv" | "bitcoinsvTestnet" | "dash" | "dashTest" | "dogecoin" | "dogecoinTest" | "litecoin" | "litecoinTest" | "zcash" | "zcashTest";
2
+ export type UtxolibName = "bitcoin" | "testnet" | "bitcoinTestnet4" | "bitcoinPublicSignet" | "bitcoinBitGoSignet" | "bitcoinRegtest" | "bitcoincash" | "bitcoincashTestnet" | "ecash" | "ecashTest" | "bitcoingold" | "bitcoingoldTestnet" | "bitcoinsv" | "bitcoinsvTestnet" | "dash" | "dashTest" | "dogecoin" | "dogecoinTest" | "litecoin" | "litecoinTest" | "zcash" | "zcashTest";
3
3
  export type UtxolibNetwork = {
4
4
  pubKeyHash: number;
5
5
  scriptHash: number;
Binary file
@@ -3,6 +3,49 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_wasmutxonamespace_free: (a: number, b: number) => void;
5
5
  export const wasmutxonamespace_get_wasm_utxo_version: (a: 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 wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
9
+ export const wrapdescriptor_descType: (a: number, b: number) => void;
10
+ export const wrapdescriptor_encode: (a: number, b: number) => void;
11
+ export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
12
+ export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
13
+ export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
14
+ export const wrapdescriptor_hasWildcard: (a: number) => number;
15
+ export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
16
+ export const wrapdescriptor_node: (a: number, b: number) => void;
17
+ export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
18
+ export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
19
+ export const wrapdescriptor_toString: (a: number, b: number) => void;
20
+ export const wrapminiscript_encode: (a: number, b: number) => void;
21
+ export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
22
+ export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
23
+ export const wrapminiscript_node: (a: number, b: number) => void;
24
+ export const wrapminiscript_toAsmString: (a: number, b: number) => void;
25
+ export const wrapminiscript_toString: (a: number, b: number) => void;
26
+ export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
27
+ export const __wbg_messagenamespace_free: (a: number, b: number) => void;
28
+ export const __wbg_wasmecpair_free: (a: number, b: number) => void;
29
+ export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
30
+ export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
31
+ 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;
32
+ export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
33
+ export const messagenamespace_verify_message: (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 wasmrootwalletkeys_backup_key: (a: number) => number;
45
+ export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
46
+ export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
47
+ export const wasmrootwalletkeys_user_key: (a: number) => number;
48
+ 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;
6
49
  export const __wbg_bip322namespace_free: (a: number, b: number) => void;
7
50
  export const __wbg_bitgopsbt_free: (a: number, b: number) => void;
8
51
  export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
@@ -230,49 +273,6 @@ export const wasmzcashtransaction_lock_time: (a: number) => number;
230
273
  export const wasmzcashtransaction_version: (a: number) => number;
231
274
  export const wrappsbt_lock_time: (a: number) => number;
232
275
  export const wrappsbt_version: (a: number) => number;
233
- export const __wbg_inscriptionsnamespace_free: (a: number, b: number) => void;
234
- export const __wbg_messagenamespace_free: (a: number, b: number) => void;
235
- export const __wbg_wasmecpair_free: (a: number, b: number) => void;
236
- export const __wbg_wasmrootwalletkeys_free: (a: number, b: number) => void;
237
- export const inscriptionsnamespace_create_inscription_reveal_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
238
- 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;
239
- export const messagenamespace_sign_message: (a: number, b: number, c: number, d: number) => void;
240
- export const messagenamespace_verify_message: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
241
- export const wasmecpair_from_private_key: (a: number, b: number, c: number) => void;
242
- export const wasmecpair_from_public_key: (a: number, b: number, c: number) => void;
243
- export const wasmecpair_from_wif: (a: number, b: number, c: number) => void;
244
- export const wasmecpair_from_wif_mainnet: (a: number, b: number, c: number) => void;
245
- export const wasmecpair_from_wif_testnet: (a: number, b: number, c: number) => void;
246
- export const wasmecpair_private_key: (a: number) => number;
247
- export const wasmecpair_public_key: (a: number) => number;
248
- export const wasmecpair_to_wif: (a: number, b: number) => void;
249
- export const wasmecpair_to_wif_mainnet: (a: number, b: number) => void;
250
- export const wasmecpair_to_wif_testnet: (a: number, b: number) => void;
251
- export const wasmrootwalletkeys_backup_key: (a: number) => number;
252
- export const wasmrootwalletkeys_bitgo_key: (a: number) => number;
253
- export const wasmrootwalletkeys_new: (a: number, b: number, c: number, d: number) => void;
254
- export const wasmrootwalletkeys_user_key: (a: number) => number;
255
- 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;
256
- export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
257
- export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
258
- export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
259
- export const wrapdescriptor_descType: (a: number, b: number) => void;
260
- export const wrapdescriptor_encode: (a: number, b: number) => void;
261
- export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
262
- export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
263
- export const wrapdescriptor_fromStringExt: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
264
- export const wrapdescriptor_hasWildcard: (a: number) => number;
265
- export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
266
- export const wrapdescriptor_node: (a: number, b: number) => void;
267
- export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
268
- export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
269
- export const wrapdescriptor_toString: (a: number, b: number) => void;
270
- export const wrapminiscript_encode: (a: number, b: number) => void;
271
- export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
272
- export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
273
- export const wrapminiscript_node: (a: number, b: number) => void;
274
- export const wrapminiscript_toAsmString: (a: number, b: number) => void;
275
- export const wrapminiscript_toString: (a: number, b: number) => void;
276
276
  export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
277
277
  export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
278
278
  export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitgo/wasm-utxo",
3
3
  "description": "WebAssembly wrapper for rust-bitcoin (beta)",
4
- "version": "4.9.0",
4
+ "version": "4.10.0",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",