xpi-ts 0.2.22 → 0.2.24
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/lib/bitcore/crypto/point.js +2 -2
- package/dist/cjs/lib/bitcore/index.js +162 -162
- package/dist/esm/lib/bitcore/crypto/point.js +2 -2
- package/dist/esm/lib/bitcore/index.js +42 -42
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/bitcore/address.d.ts +116 -0
- package/dist/types/lib/bitcore/address.d.ts.map +1 -1
- package/dist/types/lib/bitcore/block/block.d.ts +214 -0
- package/dist/types/lib/bitcore/block/block.d.ts.map +1 -1
- package/dist/types/lib/bitcore/block/blockheader.d.ts +220 -0
- package/dist/types/lib/bitcore/block/blockheader.d.ts.map +1 -1
- package/dist/types/lib/bitcore/block/merkleblock.d.ts +206 -0
- package/dist/types/lib/bitcore/block/merkleblock.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/bn.d.ts +224 -0
- package/dist/types/lib/bitcore/crypto/bn.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/ecdsa.d.ts +122 -0
- package/dist/types/lib/bitcore/crypto/ecdsa.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/hash.d.ts +56 -0
- package/dist/types/lib/bitcore/crypto/hash.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/index.d.ts +4 -0
- package/dist/types/lib/bitcore/crypto/index.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/musig2.d.ts +282 -0
- package/dist/types/lib/bitcore/crypto/musig2.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/point.d.ts +87 -0
- package/dist/types/lib/bitcore/crypto/point.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/random.d.ts +48 -0
- package/dist/types/lib/bitcore/crypto/random.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/schnorr.d.ts +203 -0
- package/dist/types/lib/bitcore/crypto/schnorr.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/signature.d.ts +452 -0
- package/dist/types/lib/bitcore/crypto/signature.d.ts.map +1 -1
- package/dist/types/lib/bitcore/crypto/sigtype.d.ts +46 -0
- package/dist/types/lib/bitcore/crypto/sigtype.d.ts.map +1 -1
- package/dist/types/lib/bitcore/encoding/base58.d.ts +68 -0
- package/dist/types/lib/bitcore/encoding/base58.d.ts.map +1 -1
- package/dist/types/lib/bitcore/encoding/base58check.d.ts +58 -0
- package/dist/types/lib/bitcore/encoding/base58check.d.ts.map +1 -1
- package/dist/types/lib/bitcore/encoding/bufferreader.d.ts +112 -0
- package/dist/types/lib/bitcore/encoding/bufferreader.d.ts.map +1 -1
- package/dist/types/lib/bitcore/encoding/bufferwriter.d.ts +144 -0
- package/dist/types/lib/bitcore/encoding/bufferwriter.d.ts.map +1 -1
- package/dist/types/lib/bitcore/encoding/varint.d.ts +86 -0
- package/dist/types/lib/bitcore/encoding/varint.d.ts.map +1 -1
- package/dist/types/lib/bitcore/errors.d.ts +4 -0
- package/dist/types/lib/bitcore/errors.d.ts.map +1 -1
- package/dist/types/lib/bitcore/hdprivatekey.d.ts +59 -0
- package/dist/types/lib/bitcore/hdprivatekey.d.ts.map +1 -1
- package/dist/types/lib/bitcore/hdpublickey.d.ts +145 -0
- package/dist/types/lib/bitcore/hdpublickey.d.ts.map +1 -1
- package/dist/types/lib/bitcore/index.d.ts +58 -54
- package/dist/types/lib/bitcore/index.d.ts.map +1 -1
- package/dist/types/lib/bitcore/message.d.ts +63 -0
- package/dist/types/lib/bitcore/message.d.ts.map +1 -1
- package/dist/types/lib/bitcore/mnemonic/errors.d.ts +4 -0
- package/dist/types/lib/bitcore/mnemonic/errors.d.ts.map +1 -1
- package/dist/types/lib/bitcore/mnemonic/index.d.ts +4 -0
- package/dist/types/lib/bitcore/mnemonic/index.d.ts.map +1 -1
- package/dist/types/lib/bitcore/mnemonic/mnemonic.d.ts +106 -0
- package/dist/types/lib/bitcore/mnemonic/mnemonic.d.ts.map +1 -1
- package/dist/types/lib/bitcore/mnemonic/pbkdf2.d.ts +13 -0
- package/dist/types/lib/bitcore/mnemonic/pbkdf2.d.ts.map +1 -1
- package/dist/types/lib/bitcore/mnemonic/words/english.d.ts +4 -0
- package/dist/types/lib/bitcore/mnemonic/words/english.d.ts.map +1 -1
- package/dist/types/lib/bitcore/mnemonic/words/french.d.ts +5 -0
- package/dist/types/lib/bitcore/mnemonic/words/french.d.ts.map +1 -1
- package/dist/types/lib/bitcore/mnemonic/words/index.d.ts +4 -0
- package/dist/types/lib/bitcore/mnemonic/words/index.d.ts.map +1 -1
- package/dist/types/lib/bitcore/musig2/index.d.ts +14 -0
- package/dist/types/lib/bitcore/musig2/index.d.ts.map +1 -1
- package/dist/types/lib/bitcore/musig2/session.d.ts +254 -0
- package/dist/types/lib/bitcore/musig2/session.d.ts.map +1 -1
- package/dist/types/lib/bitcore/musig2/signer.d.ts +212 -0
- package/dist/types/lib/bitcore/musig2/signer.d.ts.map +1 -1
- package/dist/types/lib/bitcore/networks.d.ts +17 -0
- package/dist/types/lib/bitcore/networks.d.ts.map +1 -1
- package/dist/types/lib/bitcore/opcode.d.ts +151 -0
- package/dist/types/lib/bitcore/opcode.d.ts.map +1 -1
- package/dist/types/lib/bitcore/privatekey.d.ts +80 -0
- package/dist/types/lib/bitcore/privatekey.d.ts.map +1 -1
- package/dist/types/lib/bitcore/publickey.d.ts +195 -0
- package/dist/types/lib/bitcore/publickey.d.ts.map +1 -1
- package/dist/types/lib/bitcore/script/chunk.d.ts +51 -0
- package/dist/types/lib/bitcore/script/chunk.d.ts.map +1 -1
- package/dist/types/lib/bitcore/script/interpreter/condition-stack.d.ts +60 -0
- package/dist/types/lib/bitcore/script/interpreter/condition-stack.d.ts.map +1 -1
- package/dist/types/lib/bitcore/script/interpreter/index.d.ts +23 -0
- package/dist/types/lib/bitcore/script/interpreter/index.d.ts.map +1 -1
- package/dist/types/lib/bitcore/script/interpreter/interpreter.d.ts +86 -0
- package/dist/types/lib/bitcore/script/interpreter/interpreter.d.ts.map +1 -1
- package/dist/types/lib/bitcore/script/interpreter/script-num.d.ts +115 -0
- package/dist/types/lib/bitcore/script/interpreter/script-num.d.ts.map +1 -1
- package/dist/types/lib/bitcore/script/interpreter/types.d.ts +119 -0
- package/dist/types/lib/bitcore/script/interpreter/types.d.ts.map +1 -1
- package/dist/types/lib/bitcore/script/taproot.d.ts +297 -0
- package/dist/types/lib/bitcore/script/taproot.d.ts.map +1 -1
- package/dist/types/lib/bitcore/script.d.ts +510 -0
- package/dist/types/lib/bitcore/script.d.ts.map +1 -1
- package/dist/types/lib/bitcore/taproot/musig2.d.ts +153 -0
- package/dist/types/lib/bitcore/taproot/musig2.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/input/multisig.d.ts +8 -0
- package/dist/types/lib/bitcore/transaction/input/multisig.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/input/multisigscripthash.d.ts +8 -0
- package/dist/types/lib/bitcore/transaction/input/multisigscripthash.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/input/publickey.d.ts +8 -0
- package/dist/types/lib/bitcore/transaction/input/publickey.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/input/publickeyhash.d.ts +14 -0
- package/dist/types/lib/bitcore/transaction/input/publickeyhash.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/input/taproot.d.ts +22 -0
- package/dist/types/lib/bitcore/transaction/input/taproot.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/input.d.ts +418 -0
- package/dist/types/lib/bitcore/transaction/input.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/outpoint.d.ts +110 -0
- package/dist/types/lib/bitcore/transaction/outpoint.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/output.d.ts +83 -0
- package/dist/types/lib/bitcore/transaction/output.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/sighash.d.ts +69 -0
- package/dist/types/lib/bitcore/transaction/sighash.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/signature.d.ts +98 -0
- package/dist/types/lib/bitcore/transaction/signature.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/transaction.d.ts +379 -0
- package/dist/types/lib/bitcore/transaction/transaction.d.ts.map +1 -1
- package/dist/types/lib/bitcore/transaction/unspentoutput.d.ts +61 -0
- package/dist/types/lib/bitcore/transaction/unspentoutput.d.ts.map +1 -1
- package/dist/types/lib/bitcore/unit.d.ts +140 -0
- package/dist/types/lib/bitcore/unit.d.ts.map +1 -1
- package/dist/types/lib/bitcore/uri.d.ts +34 -0
- package/dist/types/lib/bitcore/uri.d.ts.map +1 -1
- package/dist/types/lib/bitcore/util/base32.d.ts +55 -0
- package/dist/types/lib/bitcore/util/base32.d.ts.map +1 -1
- package/dist/types/lib/bitcore/util/bits.d.ts +76 -0
- package/dist/types/lib/bitcore/util/bits.d.ts.map +1 -1
- package/dist/types/lib/bitcore/util/buffer.d.ts +135 -0
- package/dist/types/lib/bitcore/util/buffer.d.ts.map +1 -1
- package/dist/types/lib/bitcore/util/convertBits.d.ts +15 -0
- package/dist/types/lib/bitcore/util/convertBits.d.ts.map +1 -1
- package/dist/types/lib/bitcore/util/js.d.ts +19 -0
- package/dist/types/lib/bitcore/util/js.d.ts.map +1 -1
- package/dist/types/lib/bitcore/util/merkle.d.ts +85 -0
- package/dist/types/lib/bitcore/util/merkle.d.ts.map +1 -1
- package/dist/types/lib/bitcore/util/preconditions.d.ts +29 -0
- package/dist/types/lib/bitcore/util/preconditions.d.ts.map +1 -1
- package/dist/types/lib/bitcore/util.d.ts +7 -0
- package/dist/types/lib/bitcore/util.d.ts.map +1 -1
- package/dist/types/lib/bitcore/xaddress.d.ts +117 -0
- package/dist/types/lib/bitcore/xaddress.d.ts.map +1 -1
- package/dist/types/lib/lokad.d.ts +292 -0
- package/dist/types/lib/lokad.d.ts.map +1 -1
- package/dist/types/lib/nft.d.ts +434 -0
- package/dist/types/lib/nft.d.ts.map +1 -1
- package/dist/types/lib/rank/api.d.ts +13 -0
- package/dist/types/lib/rank/api.d.ts.map +1 -1
- package/dist/types/lib/rank/index.d.ts +153 -0
- package/dist/types/lib/rank/index.d.ts.map +1 -1
- package/dist/types/lib/rank/opcode.d.ts +6 -2
- package/dist/types/lib/rank/opcode.d.ts.map +1 -1
- package/dist/types/lib/rank/script.d.ts +10 -0
- package/dist/types/lib/rank/script.d.ts.map +1 -1
- package/dist/types/lib/rank/transaction.d.ts +11 -0
- package/dist/types/lib/rank/transaction.d.ts.map +1 -1
- package/dist/types/lib/rpc.d.ts +176 -0
- package/dist/types/lib/rpc.d.ts.map +1 -1
- package/dist/types/utils/constants.d.ts +27 -0
- package/dist/types/utils/constants.d.ts.map +1 -1
- package/dist/types/utils/env.d.ts +15 -0
- package/dist/types/utils/env.d.ts.map +1 -1
- package/dist/types/utils/string.d.ts +57 -0
- package/dist/types/utils/string.d.ts.map +1 -1
- package/dist/types/utils/wallet.d.ts +43 -1
- package/dist/types/utils/wallet.d.ts.map +1 -1
- package/package.json +1 -1
- package/tsconfig.types.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../lib/rpc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../lib/rpc.ts"],"names":[],"mappings":"AAgCA;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAA;IACf,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAA;CACb;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,UAAU,EAAE,OAAO,CAAA;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;IACG,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKnD;;;;OAIG;IACG,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAKtD;;;;OAIG;IACG,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAKhD;;;;OAIG;IACG,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAK9D;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAKxC;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,WAAW,CAAC;CAI7C"}
|
|
@@ -1,17 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025 The Lotusia Stewardship
|
|
3
|
+
* Github: https://github.com/LotusiaStewardship
|
|
4
|
+
* License: MIT
|
|
5
|
+
*/
|
|
1
6
|
import type { ScriptChunkPlatformUTF8 } from '../lib/rank/index.js';
|
|
7
|
+
/**
|
|
8
|
+
* BIP44 constants
|
|
9
|
+
*/
|
|
2
10
|
export declare const BIP44_PURPOSE = 44;
|
|
3
11
|
export declare const BIP44_COIN_TYPE = 10605;
|
|
4
12
|
export declare const BIP44_ACCOUNT = 0;
|
|
13
|
+
/**
|
|
14
|
+
* Lotus constants
|
|
15
|
+
*/
|
|
16
|
+
/** Maximum relay size of an OP_RETURN payload, in bytes (OP_RETURN + OP_PUSHDATA1 + data) */
|
|
5
17
|
export declare const MAX_OP_RETURN_RELAY = 223;
|
|
18
|
+
/** Maximum data size of the OP_RETURN payload, in bytes (OP_PUSHDATA1 + data) */
|
|
6
19
|
export declare const MAX_OP_RETURN_DATA = 220;
|
|
20
|
+
/** Maximum number of OP_RETURN outputs allowed in a transaction by consensus */
|
|
7
21
|
export declare const MAX_OP_RETURN_OUTPUTS = 3;
|
|
22
|
+
/**
|
|
23
|
+
* RANK script configuration
|
|
24
|
+
*/
|
|
25
|
+
/** Minimum RANK burn value in sats */
|
|
8
26
|
export declare const RANK_OUTPUT_MIN_VALID_SATS = 1000000;
|
|
27
|
+
/** Minimum RNKC burn value in sats */
|
|
9
28
|
export declare const RNKC_MIN_FEE_RATE = 10000000;
|
|
29
|
+
/** Minimum RNKC comment length in bytes */
|
|
10
30
|
export declare const RNKC_MIN_DATA_LENGTH = 1;
|
|
31
|
+
/**
|
|
32
|
+
* Dashboard configuration
|
|
33
|
+
*/
|
|
34
|
+
/** Platform URL configuration */
|
|
11
35
|
export declare const PlatformURL: {
|
|
12
36
|
[key in ScriptChunkPlatformUTF8]?: {
|
|
37
|
+
/** Root URL for the platform */
|
|
13
38
|
root: string;
|
|
39
|
+
/** URL for the profile */
|
|
14
40
|
profile(profileId: string): string;
|
|
41
|
+
/** URL for the post */
|
|
15
42
|
post(profileId: string, postId: string): string;
|
|
16
43
|
};
|
|
17
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../utils/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../utils/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,aAAa,KAAK,CAAA;AAC/B,eAAO,MAAM,eAAe,QAAQ,CAAA;AACpC,eAAO,MAAM,aAAa,IAAI,CAAA;AAE9B;;GAEG;AACH,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB,MAAM,CAAA;AACtC,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,MAAM,CAAA;AACrC,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,IAAI,CAAA;AAEtC;;GAEG;AACH,sCAAsC;AACtC,eAAO,MAAM,0BAA0B,UAAY,CAAA;AACnD,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,WAAa,CAAA;AAC3C,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAErC;;GAEG;AACH,iCAAiC;AACjC,eAAO,MAAM,WAAW,EAAE;KACvB,GAAG,IAAI,uBAAuB,CAAC,CAAC,EAAE;QACjC,gCAAgC;QAChC,IAAI,EAAE,MAAM,CAAA;QACZ,0BAA0B;QAC1B,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;QAClC,uBAAuB;QACvB,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;KAChD;CAWF,CAAA"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025 The Lotusia Stewardship
|
|
3
|
+
* Github: https://github.com/LotusiaStewardship
|
|
4
|
+
* License: MIT
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Check if running in a browser environment
|
|
8
|
+
*
|
|
9
|
+
* @returns true if running in browser, false if running in Node.js
|
|
10
|
+
*/
|
|
1
11
|
export declare function isBrowser(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Check if running in Node.js environment
|
|
14
|
+
*
|
|
15
|
+
* @returns true if running in Node.js, false if running in browser
|
|
16
|
+
*/
|
|
2
17
|
export declare function isNode(): boolean;
|
|
3
18
|
//# sourceMappingURL=env.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../utils/env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../utils/env.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,OAAO,CAMhC"}
|
|
@@ -1,12 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025 The Lotusia Stewardship
|
|
3
|
+
* Github: https://github.com/LotusiaStewardship
|
|
4
|
+
* License: MIT
|
|
5
|
+
*/
|
|
1
6
|
import { Buffer } from 'buffer/';
|
|
7
|
+
/**
|
|
8
|
+
* Validate a sha256 hash
|
|
9
|
+
* @param str - The sha256 hash to validate
|
|
10
|
+
* @returns Whether the sha256 hash is valid
|
|
11
|
+
*/
|
|
2
12
|
export declare function isSha256(str: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Convert a number or UTF-8 string to a hex string
|
|
15
|
+
* @param data - The data to convert
|
|
16
|
+
* @returns The hex string
|
|
17
|
+
*/
|
|
3
18
|
export declare function toHex(data: number | string | Buffer): string;
|
|
19
|
+
/**
|
|
20
|
+
* Check if a string is hex-encoded, with optional `length` limit
|
|
21
|
+
* @param str The string to check
|
|
22
|
+
* @param length The length of the hex string to check. If not defined, checks the full string
|
|
23
|
+
* @returns `true` if the string is hex-encoded, `false` otherwise
|
|
24
|
+
*/
|
|
4
25
|
export declare function isHex(str: string, length?: number): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Check if a string is base64 encoded
|
|
28
|
+
* @param str The string to check
|
|
29
|
+
* @returns `true` if the string is base64 encoded, `false` otherwise
|
|
30
|
+
*/
|
|
5
31
|
export declare function isBase64(str: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Decode a base64-encoded string
|
|
34
|
+
* @param str The base64 encoded string to decode
|
|
35
|
+
* @returns The decoded string
|
|
36
|
+
*/
|
|
6
37
|
export declare function decodeBase64(str: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* Encode a UTF-8 string to a base64-encoded string. Optionally provide a different
|
|
40
|
+
* encoding scheme for the input string
|
|
41
|
+
* @param str The string to encode
|
|
42
|
+
* @returns The base64 encoded string
|
|
43
|
+
*/
|
|
7
44
|
export declare function encodeBase64(str: string, encoding?: BufferEncoding): string;
|
|
45
|
+
/**
|
|
46
|
+
* Truncate a sha256 hash to 16 + 6 characters
|
|
47
|
+
* @param sha256 - The sha256 hash to truncate
|
|
48
|
+
* @returns The truncated sha256 hash
|
|
49
|
+
*/
|
|
8
50
|
export declare function truncateSha256(sha256: string): string;
|
|
51
|
+
/**
|
|
52
|
+
* Truncate a transaction id to 16 + 6 characters
|
|
53
|
+
* @param txid - The transaction id to truncate
|
|
54
|
+
* @returns The truncated transaction id
|
|
55
|
+
*/
|
|
9
56
|
export declare function truncateTxid(txid: string): string;
|
|
57
|
+
/**
|
|
58
|
+
* Truncate an address to 17 + 6 characters
|
|
59
|
+
* @param address - The address to truncate
|
|
60
|
+
* @returns The truncated address
|
|
61
|
+
*/
|
|
10
62
|
export declare function truncateAddress(address: string): string;
|
|
63
|
+
/**
|
|
64
|
+
* Truncate a block hash to 1 + 16 characters
|
|
65
|
+
* @param blockHash - The block hash to truncate
|
|
66
|
+
* @returns The truncated block hash
|
|
67
|
+
*/
|
|
11
68
|
export declare function truncateBlockHash(blockHash: string): string;
|
|
12
69
|
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../utils/string.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../utils/string.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,WAEnC;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,UAYnD;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAG3D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,UAKvC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,cAAuB,UAK1E;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,UAE5C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAExC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,UAE9C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,UAElD"}
|
|
@@ -1,15 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025 The Lotusia Stewardship
|
|
3
|
+
* Github: https://github.com/LotusiaStewardship
|
|
4
|
+
* License: MIT
|
|
5
|
+
*/
|
|
1
6
|
import { Address, Script, ScriptType, Mnemonic, Network } from '../lib/bitcore/index.js';
|
|
7
|
+
/**
|
|
8
|
+
* Represents a cryptocurrency wallet with all necessary cryptographic components.
|
|
9
|
+
*/
|
|
2
10
|
export interface Wallet {
|
|
11
|
+
/** The hierarchical deterministic private key in string format. */
|
|
3
12
|
hdPrivateKey?: string;
|
|
13
|
+
/** The wallet's private key in WIF (Wallet Import Format). */
|
|
4
14
|
privateKey?: string;
|
|
15
|
+
/** The wallet's public key in hexadecimal format. */
|
|
5
16
|
publicKey?: string;
|
|
17
|
+
/** The wallet's address object. */
|
|
6
18
|
address: Address;
|
|
19
|
+
/** The script associated with the wallet's address. */
|
|
7
20
|
script: Script;
|
|
21
|
+
/** The script data in hexadecimal format. */
|
|
8
22
|
scriptPayload: string;
|
|
23
|
+
/** The type of script (e.g., pubkeyhash, scripthash, taproot). */
|
|
9
24
|
scriptType: ScriptType;
|
|
10
25
|
}
|
|
26
|
+
/** A wallet with all properties of the `Wallet` interface plus keys */
|
|
11
27
|
export type WalletWithKeys = Required<Wallet>;
|
|
12
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Creates a cryptocurrency wallet with the specified configuration.
|
|
30
|
+
*
|
|
31
|
+
* @param {Object} options - Configuration options for wallet creation
|
|
32
|
+
* @param {Mnemonic | string} [options.mnemonic] - BIP39 mnemonic phrase. If not provided, a new one is generated.
|
|
33
|
+
* @param {string} [options.path] - BIP44 derivation path. Defaults to `m/44'/{BIP44_COIN_TYPE}'/0'/0/0`
|
|
34
|
+
* @param {Network} [options.network=Networks.mainnet] - The network to use (mainnet, testnet, regtest)
|
|
35
|
+
* @param {ScriptType} [options.scriptType='p2pkh'] - The script type for the wallet address (p2pkh, p2tr-commitment, etc.)
|
|
36
|
+
*
|
|
37
|
+
* @returns {Wallet | WalletWithKeys} A wallet object containing address, script, and optionally cryptographic keys.
|
|
38
|
+
* When a mnemonic is provided, returns a WalletWithKeys with all key material.
|
|
39
|
+
* Otherwise returns a Wallet with minimal key information.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* // Create a wallet with a new mnemonic
|
|
43
|
+
* const wallet = createWallet({ network: Networks.testnet })
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* // Create a Taproot wallet from an existing mnemonic
|
|
47
|
+
* const wallet = createWallet({
|
|
48
|
+
* mnemonic: 'abandon abandon abandon...',
|
|
49
|
+
* scriptType: 'p2tr-commitment',
|
|
50
|
+
* network: Networks.mainnet
|
|
51
|
+
* })
|
|
52
|
+
*/
|
|
53
|
+
export declare function createWallet({ mnemonic, path, network, // Default to mainnet
|
|
54
|
+
scriptType, }: {
|
|
13
55
|
mnemonic?: Mnemonic | string;
|
|
14
56
|
path?: string;
|
|
15
57
|
network?: Network;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../utils/wallet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../utils/wallet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,OAAO,EAEP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,OAAO,EAER,MAAM,yBAAyB,CAAA;AAEhC;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mCAAmC;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAA;IACd,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAA;IACrB,kEAAkE;IAClE,UAAU,EAAE,UAAU,CAAA;CACvB;AAED,uEAAuE;AACvE,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAA;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,IAAI,EACJ,OAA0B,EAAE,qBAAqB;AACjD,UAAoB,GACrB,EAAE;IACD,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,GAAG,MAAM,GAAG,cAAc,CAiC1B"}
|
package/package.json
CHANGED