@qntx/spark 0.2.0 → 0.2.1
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/index.d.mts +8 -0
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -68,6 +68,14 @@ export declare function encodeTokenIdentifier(tokenIdentifier: Uint8Array, netwo
|
|
|
68
68
|
*/
|
|
69
69
|
export declare function decodeTokenIdentifier(text: string): SparkTokenIdentifierData;
|
|
70
70
|
//#endregion
|
|
71
|
+
//#region src/core/uuid.d.ts
|
|
72
|
+
/**
|
|
73
|
+
* UUIDv7 (RFC 9562 §5.7): 48-bit millisecond timestamp, then 74 random bits with the version (0111)
|
|
74
|
+
* and variant (10) fields applied. Randomness and the clock are injected so the function stays
|
|
75
|
+
* platform-neutral and deterministic under test.
|
|
76
|
+
*/
|
|
77
|
+
export declare function uuidv7(random: (length: number) => Uint8Array, now?: () => number): string;
|
|
78
|
+
//#endregion
|
|
71
79
|
//#region src/invoice/create.d.ts
|
|
72
80
|
type InvoiceOptions = {
|
|
73
81
|
readonly signer: SparkSigner;
|
package/dist/index.mjs
CHANGED
|
@@ -7328,4 +7328,4 @@ function createMemorySparkStore() {
|
|
|
7328
7328
|
};
|
|
7329
7329
|
}
|
|
7330
7330
|
//#endregion
|
|
7331
|
-
export { EPHEMERAL_ANCHOR_SCRIPT, MIN_STATIC_REFUND_FEE_SATS, SparkCryptoError, SparkError, SparkInputError, SparkRequestError, SparkTokenBroadcastError, addressToScript, buildCpfpChild, createMemorySparkStore, createSatsInvoice, createSparkClient, createTokensInvoice, decodeBolt11, decodeSparkAddress, decodeTokenIdentifier, encodeSparkAddress, encodeTokenIdentifier, exitTransactions, isExpired, parseSparkInvoice, sparkNetworkConfig, verifySparkAddressSignature };
|
|
7331
|
+
export { EPHEMERAL_ANCHOR_SCRIPT, MIN_STATIC_REFUND_FEE_SATS, SparkCryptoError, SparkError, SparkInputError, SparkRequestError, SparkTokenBroadcastError, addressToScript, buildCpfpChild, createMemorySparkStore, createSatsInvoice, createSparkClient, createTokensInvoice, decodeBolt11, decodeSparkAddress, decodeTokenIdentifier, encodeSparkAddress, encodeTokenIdentifier, exitTransactions, isExpired, parseSparkInvoice, sparkNetworkConfig, uuidv7, verifySparkAddressSignature };
|