@unicitylabs/sphere-sdk 0.7.1-dev.2 → 0.7.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/README.md +63 -77
- package/dist/core/index.cjs +771 -118
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +187 -6
- package/dist/core/index.d.ts +187 -6
- package/dist/core/index.js +770 -118
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +11 -0
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +11 -0
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +11 -0
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.d.cts +10 -1
- package/dist/impl/nodejs/index.d.ts +10 -1
- package/dist/impl/nodejs/index.js +11 -0
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +899 -118
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +258 -1
- package/dist/index.d.ts +258 -1
- package/dist/index.js +881 -118
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -4623,6 +4623,42 @@ declare class PaymentsModule {
|
|
|
4623
4623
|
* @returns MintNametagResult with success status and token if successful
|
|
4624
4624
|
*/
|
|
4625
4625
|
mintNametag(nametag: string): Promise<MintNametagResult>;
|
|
4626
|
+
/**
|
|
4627
|
+
* Mint a fungible token directly to this wallet (genesis mint).
|
|
4628
|
+
*
|
|
4629
|
+
* Useful for test setups that need to seed a wallet with specific token
|
|
4630
|
+
* balances WITHOUT depending on the testnet faucet HTTP service. The
|
|
4631
|
+
* resulting token has the canonical CoinId bytes (passed in `coinIdHex`)
|
|
4632
|
+
* — when those bytes match a registered symbol in the TokenRegistry,
|
|
4633
|
+
* the token shows up under the symbol's name (e.g. "UCT"). There is no
|
|
4634
|
+
* cryptographic restriction on which key may issue a given CoinId; the
|
|
4635
|
+
* aggregator records the mint regardless of issuer identity.
|
|
4636
|
+
*
|
|
4637
|
+
* The flow:
|
|
4638
|
+
* 1. Generate a random TokenId.
|
|
4639
|
+
* 2. Build TokenCoinData with [(coinId, amount)].
|
|
4640
|
+
* 3. Build MintTransactionData with recipient = self (UnmaskedPredicate
|
|
4641
|
+
* from this wallet's signing service).
|
|
4642
|
+
* 4. Submit MintCommitment to the aggregator.
|
|
4643
|
+
* 5. Wait for the inclusion proof.
|
|
4644
|
+
* 6. Construct an SDK Token via Token.mint().
|
|
4645
|
+
* 7. Convert to wallet Token format and call addToken().
|
|
4646
|
+
*
|
|
4647
|
+
* @param coinIdHex - 64-char lowercase hex CoinId. Must match the bytes
|
|
4648
|
+
* used by the registered symbol if you want the wallet to recognize
|
|
4649
|
+
* the token as that symbol (e.g. UCT's coinId from the public registry).
|
|
4650
|
+
* @param amount - Amount in smallest units (multiply by 10^decimals
|
|
4651
|
+
* when converting from human values).
|
|
4652
|
+
* @returns Result with the resulting wallet Token and its on-chain id.
|
|
4653
|
+
*/
|
|
4654
|
+
mintFungibleToken(coinIdHex: string, amount: bigint): Promise<{
|
|
4655
|
+
success: true;
|
|
4656
|
+
token: Token;
|
|
4657
|
+
tokenId: string;
|
|
4658
|
+
} | {
|
|
4659
|
+
success: false;
|
|
4660
|
+
error: string;
|
|
4661
|
+
}>;
|
|
4626
4662
|
/**
|
|
4627
4663
|
* Check if a nametag is available for minting
|
|
4628
4664
|
* @param nametag - The nametag to check (e.g., "alice" or "@alice")
|
|
@@ -5115,6 +5151,24 @@ declare class AccountingModule {
|
|
|
5115
5151
|
private dirtyLedgerEntries;
|
|
5116
5152
|
/** Count of unknown (not in invoiceTermsCache) invoice IDs in the ledger. */
|
|
5117
5153
|
private unknownLedgerCount;
|
|
5154
|
+
/**
|
|
5155
|
+
* Per-unknown-invoice first-seen timestamp for TTL eviction.
|
|
5156
|
+
*
|
|
5157
|
+
* W1 (steelman round-4): without TTL, an attacker who can deliver 500
|
|
5158
|
+
* inbound transfers with synthesized memo invoiceIds permanently exhausts
|
|
5159
|
+
* the unknown-ledger cap, after which legitimate orphan transfers (out-of-
|
|
5160
|
+
* order delivery for real swaps) are silently dropped at the cap-check.
|
|
5161
|
+
*
|
|
5162
|
+
* Round-5 perf: gated by `unknownLedgerNextSweepMs` to amortize the
|
|
5163
|
+
* sweep cost. The naive every-call sweep is O(N) where N=cap=500;
|
|
5164
|
+
* combined with the per-token cleanup loop inside the sweep it became
|
|
5165
|
+
* O(N×M) on every transfer under flood. Now we sweep at most every
|
|
5166
|
+
* `UNKNOWN_LEDGER_SWEEP_INTERVAL_MS` (60s) UNLESS the cap is currently
|
|
5167
|
+
* full, in which case we sweep on each call (the only path that can
|
|
5168
|
+
* actually drop a legitimate orphan).
|
|
5169
|
+
*/
|
|
5170
|
+
private unknownLedgerFirstSeen;
|
|
5171
|
+
private unknownLedgerNextSweepMs;
|
|
5118
5172
|
/** W17: Tracks whether tokenScanState has been mutated since last flush. */
|
|
5119
5173
|
private tokenScanDirty;
|
|
5120
5174
|
/** W2 fix: Serialization guard for _flushDirtyLedgerEntries. */
|
|
@@ -5299,6 +5353,21 @@ declare class AccountingModule {
|
|
|
5299
5353
|
* @throws {SphereError} `NOT_INITIALIZED` — module not initialized.
|
|
5300
5354
|
*/
|
|
5301
5355
|
getInvoice(invoiceId: string): InvoiceRef | null;
|
|
5356
|
+
/**
|
|
5357
|
+
* Return the set of token IDs that are currently linked to the given
|
|
5358
|
+
* invoice. Populated by both the on-chain `_processTokenTransactions`
|
|
5359
|
+
* path (tokens with `inv:` references) and the transport-memo orphan
|
|
5360
|
+
* buffering path in `_handleIncomingTransfer`.
|
|
5361
|
+
*
|
|
5362
|
+
* Used by callers that want to scope per-invoice operations (e.g.
|
|
5363
|
+
* SwapModule.verifyPayout's L3 validation) to only the tokens that
|
|
5364
|
+
* cover this invoice — avoiding false negatives when the wallet
|
|
5365
|
+
* contains unrelated tokens of the same currency in unconfirmed or
|
|
5366
|
+
* spent state.
|
|
5367
|
+
*
|
|
5368
|
+
* Returns an empty set if no tokens are currently linked.
|
|
5369
|
+
*/
|
|
5370
|
+
getTokenIdsForInvoice(invoiceId: string): Set<string>;
|
|
5302
5371
|
/**
|
|
5303
5372
|
* Explicitly close an invoice. Only target parties may close (§8.3).
|
|
5304
5373
|
*
|
|
@@ -5646,6 +5715,35 @@ declare class AccountingModule {
|
|
|
5646
5715
|
* await and the null assignment, so we loop until the field is null.
|
|
5647
5716
|
*/
|
|
5648
5717
|
private _drainFlushPromise;
|
|
5718
|
+
/**
|
|
5719
|
+
* Synchronously persist any pending provisional ledger entry for `invoiceId`
|
|
5720
|
+
* before returning to the caller. Used by `payInvoice` and
|
|
5721
|
+
* `returnInvoicePayment` to make the in-memory provisional entry durable
|
|
5722
|
+
* inside the same per-invoice gate that wrote it, closing the
|
|
5723
|
+
* crash-mid-conclude race that produces over-coverage on receivers.
|
|
5724
|
+
*
|
|
5725
|
+
* Implementation:
|
|
5726
|
+
* 1. Schedule a flush via the existing `_flushPromise` chain (so
|
|
5727
|
+
* concurrent `_handleTokenChange` callers waiting on the chain
|
|
5728
|
+
* observe ours as part of the sequence).
|
|
5729
|
+
* 2. Await OUR flush directly — NOT `_drainFlushPromise()`, which would
|
|
5730
|
+
* spin while concurrent token changes keep extending the chain and
|
|
5731
|
+
* hold the per-invoice gate for an unbounded number of additional
|
|
5732
|
+
* flushes. We only need OUR provisional entry durable.
|
|
5733
|
+
* 3. `_flushDirtyLedgerEntries` swallows per-invoice `storage.set`
|
|
5734
|
+
* rejections internally (sets a local `step1Failed` flag), leaving
|
|
5735
|
+
* the dirty entry on the set without re-throwing. So we post-check
|
|
5736
|
+
* `dirtyLedgerEntries.has(invoiceId)` and throw a `STORAGE_ERROR`
|
|
5737
|
+
* `SphereError` if our entry is still dirty — propagating to the
|
|
5738
|
+
* caller so they learn about the durability failure rather than
|
|
5739
|
+
* receiving a silent "success" return that lies on disk.
|
|
5740
|
+
*
|
|
5741
|
+
* @param invoiceId The invoice whose provisional entry must be durable.
|
|
5742
|
+
* @param callContext Used in the error message so the caller is named
|
|
5743
|
+
* ('payInvoice' / 'returnInvoicePayment') without
|
|
5744
|
+
* forcing a stack-trace inspection.
|
|
5745
|
+
*/
|
|
5746
|
+
private _persistProvisionalAndVerify;
|
|
5649
5747
|
/**
|
|
5650
5748
|
* Handle an incoming transfer event from PaymentsModule (§6.2).
|
|
5651
5749
|
*
|
|
@@ -7179,6 +7277,23 @@ interface LegacyFileImportOptions {
|
|
|
7179
7277
|
onDecryptProgress?: DecryptionProgressCallback;
|
|
7180
7278
|
}
|
|
7181
7279
|
|
|
7280
|
+
/**
|
|
7281
|
+
* Compute the Unicity L3 DIRECT:// address that corresponds to a given
|
|
7282
|
+
* compressed secp256k1 public key.
|
|
7283
|
+
*
|
|
7284
|
+
* Deterministic — the underlying primitive `UnmaskedPredicateReference.create`
|
|
7285
|
+
* only uses the public key, so the private key is never needed. This lets
|
|
7286
|
+
* a backend trust only one thing from the client (the chain pubkey, whose
|
|
7287
|
+
* ownership the client proves via signature) and derive everything else
|
|
7288
|
+
* locally. Closes the entire class of "client claims an identifier the
|
|
7289
|
+
* server can't verify" bugs at the API level.
|
|
7290
|
+
*
|
|
7291
|
+
* @param chainPubkey 33-byte compressed secp256k1 pubkey, hex-encoded
|
|
7292
|
+
* (66 chars, leading 02 or 03).
|
|
7293
|
+
* @throws if chainPubkey doesn't match the compressed-secp256k1 format.
|
|
7294
|
+
*/
|
|
7295
|
+
declare function computeDirectAddressFromChainPubkey(chainPubkey: string): Promise<string>;
|
|
7296
|
+
|
|
7182
7297
|
declare function isValidNametag(nametag: string): boolean;
|
|
7183
7298
|
|
|
7184
7299
|
/** Steps reported by the onProgress callback during wallet init/create/load/import */
|
|
@@ -7420,6 +7535,7 @@ interface SphereInitResult {
|
|
|
7420
7535
|
/** Generated mnemonic (only if autoGenerate was used) */
|
|
7421
7536
|
generatedMnemonic?: string;
|
|
7422
7537
|
}
|
|
7538
|
+
|
|
7423
7539
|
declare class Sphere {
|
|
7424
7540
|
private static instance;
|
|
7425
7541
|
private _initialized;
|
|
@@ -8221,6 +8337,81 @@ declare const initSphere: typeof Sphere.init;
|
|
|
8221
8337
|
declare const getSphere: typeof Sphere.getInstance;
|
|
8222
8338
|
declare const sphereExists: typeof Sphere.exists;
|
|
8223
8339
|
|
|
8340
|
+
/**
|
|
8341
|
+
* Encryption utilities for SDK2
|
|
8342
|
+
*
|
|
8343
|
+
* Provides AES-256 encryption for sensitive wallet data.
|
|
8344
|
+
* Uses crypto-js for cross-platform compatibility.
|
|
8345
|
+
*/
|
|
8346
|
+
interface EncryptedData {
|
|
8347
|
+
/** Encrypted ciphertext (base64) */
|
|
8348
|
+
ciphertext: string;
|
|
8349
|
+
/** Initialization vector (hex) */
|
|
8350
|
+
iv: string;
|
|
8351
|
+
/** Salt used for key derivation (hex) */
|
|
8352
|
+
salt: string;
|
|
8353
|
+
/** Algorithm identifier */
|
|
8354
|
+
algorithm: 'aes-256-cbc';
|
|
8355
|
+
/** Key derivation function */
|
|
8356
|
+
kdf: 'pbkdf2';
|
|
8357
|
+
/** Number of PBKDF2 iterations */
|
|
8358
|
+
iterations: number;
|
|
8359
|
+
}
|
|
8360
|
+
interface EncryptionOptions {
|
|
8361
|
+
/** Number of PBKDF2 iterations (default: 100000) */
|
|
8362
|
+
iterations?: number;
|
|
8363
|
+
}
|
|
8364
|
+
/**
|
|
8365
|
+
* Encrypt data with AES-256-CBC
|
|
8366
|
+
* @param plaintext - Data to encrypt (string or object)
|
|
8367
|
+
* @param password - Encryption password
|
|
8368
|
+
* @param options - Encryption options
|
|
8369
|
+
*/
|
|
8370
|
+
declare function encrypt$1(plaintext: string | object, password: string, options?: EncryptionOptions): EncryptedData;
|
|
8371
|
+
/**
|
|
8372
|
+
* Decrypt AES-256-CBC encrypted data
|
|
8373
|
+
* @param encryptedData - Encrypted data object
|
|
8374
|
+
* @param password - Decryption password
|
|
8375
|
+
*/
|
|
8376
|
+
declare function decrypt$1(encryptedData: EncryptedData, password: string): string;
|
|
8377
|
+
/**
|
|
8378
|
+
* Decrypt and parse JSON data
|
|
8379
|
+
* @param encryptedData - Encrypted data object
|
|
8380
|
+
* @param password - Decryption password
|
|
8381
|
+
*/
|
|
8382
|
+
declare function decryptJson<T = unknown>(encryptedData: EncryptedData, password: string): T;
|
|
8383
|
+
/**
|
|
8384
|
+
* Simple encryption using CryptoJS built-in password-based encryption
|
|
8385
|
+
* Suitable for localStorage where we don't need full EncryptedData metadata
|
|
8386
|
+
* @param plaintext - Data to encrypt
|
|
8387
|
+
* @param password - Encryption password
|
|
8388
|
+
*/
|
|
8389
|
+
declare function encryptSimple(plaintext: string, password: string): string;
|
|
8390
|
+
/**
|
|
8391
|
+
* Simple decryption
|
|
8392
|
+
* @param ciphertext - Encrypted string
|
|
8393
|
+
* @param password - Decryption password
|
|
8394
|
+
*/
|
|
8395
|
+
declare function decryptSimple(ciphertext: string, password: string): string;
|
|
8396
|
+
/**
|
|
8397
|
+
* Decrypt data encrypted with PBKDF2-derived key (legacy JSON wallet format).
|
|
8398
|
+
* Compatible with webwallet's encryptWithPassword/decryptWithPassword.
|
|
8399
|
+
*/
|
|
8400
|
+
declare function decryptWithSalt(ciphertext: string, password: string, salt: string): string | null;
|
|
8401
|
+
/**
|
|
8402
|
+
* Encrypt mnemonic phrase for storage
|
|
8403
|
+
* Uses simple AES encryption compatible with existing wallet format
|
|
8404
|
+
* @param mnemonic - BIP39 mnemonic phrase
|
|
8405
|
+
* @param password - Encryption password
|
|
8406
|
+
*/
|
|
8407
|
+
declare function encryptMnemonic(mnemonic: string, password: string): string;
|
|
8408
|
+
/**
|
|
8409
|
+
* Decrypt mnemonic phrase from storage
|
|
8410
|
+
* @param encryptedMnemonic - Encrypted mnemonic string
|
|
8411
|
+
* @param password - Decryption password
|
|
8412
|
+
*/
|
|
8413
|
+
declare function decryptMnemonic(encryptedMnemonic: string, password: string): string;
|
|
8414
|
+
|
|
8224
8415
|
/**
|
|
8225
8416
|
* Convert human-readable amount to smallest unit (bigint)
|
|
8226
8417
|
*
|
|
@@ -9822,6 +10013,51 @@ declare function getCoinIdBySymbol(symbol: string): string | undefined;
|
|
|
9822
10013
|
* @returns Coin ID or undefined
|
|
9823
10014
|
*/
|
|
9824
10015
|
declare function getCoinIdByName(name: string): string | undefined;
|
|
10016
|
+
/**
|
|
10017
|
+
* Normalize a coin identifier to its canonical hash coinId.
|
|
10018
|
+
*
|
|
10019
|
+
* Accepts both symbolic names ("BTC", "ETH") and hash coinIds (64-char hex).
|
|
10020
|
+
* If the input is a short symbol, resolves it via the TokenRegistry.
|
|
10021
|
+
* Returns the input unchanged if it's already a hash coinId or unknown.
|
|
10022
|
+
*
|
|
10023
|
+
* @public
|
|
10024
|
+
*
|
|
10025
|
+
* @remarks
|
|
10026
|
+
* Heuristic: inputs matching `length <= 20 && /^[A-Za-z0-9]+$/` are treated
|
|
10027
|
+
* as symbolic names and looked up in the registry. Long inputs, hyphenated
|
|
10028
|
+
* inputs ("TOKEN-123"), or dotted inputs ("BTC.CASH") pass through unchanged.
|
|
10029
|
+
*
|
|
10030
|
+
* **Stability:** This function depends on `TokenRegistry` content. Adding a
|
|
10031
|
+
* new symbol that shadows a previously-unknown short alphanumeric coinId
|
|
10032
|
+
* changes normalization semantics retroactively. Consumers building stable
|
|
10033
|
+
* keys against this output should be aware that registry growth is a
|
|
10034
|
+
* non-breaking change *for unknown inputs* but a breaking change *for inputs
|
|
10035
|
+
* that newly resolve*.
|
|
10036
|
+
*
|
|
10037
|
+
* @param coinId - A symbolic name or hash coinId.
|
|
10038
|
+
* @returns The canonical hash coinId, or the original string if not resolvable.
|
|
10039
|
+
*/
|
|
10040
|
+
declare function normalizeCoinId(coinId: string): string;
|
|
10041
|
+
/**
|
|
10042
|
+
* Compare two coin identifiers for equality, normalizing both sides.
|
|
10043
|
+
*
|
|
10044
|
+
* Handles mixed-format comparisons: "BTC" vs hash coinId, or two hash coinIds.
|
|
10045
|
+
* Both values are normalized to hash coinIds via the TokenRegistry before comparison.
|
|
10046
|
+
*
|
|
10047
|
+
* @public
|
|
10048
|
+
*
|
|
10049
|
+
* @remarks
|
|
10050
|
+
* Reflexive byte-equality short-circuit comes first; otherwise both sides
|
|
10051
|
+
* are normalized via {@link normalizeCoinId} and compared. Inherits the
|
|
10052
|
+
* registry-dependence caveat from `normalizeCoinId`. Two distinct symbols
|
|
10053
|
+
* that both fail to resolve will compare unequal even if they're semantic
|
|
10054
|
+
* aliases — register them as aliases in `TokenRegistry` for matching.
|
|
10055
|
+
*
|
|
10056
|
+
* @param a - First coin identifier (symbol or hash coinId).
|
|
10057
|
+
* @param b - Second coin identifier (symbol or hash coinId).
|
|
10058
|
+
* @returns true if both resolve to the same canonical coinId.
|
|
10059
|
+
*/
|
|
10060
|
+
declare function coinIdsMatch(a: string, b: string): boolean;
|
|
9825
10061
|
|
|
9826
10062
|
/**
|
|
9827
10063
|
* Standard address parsing, validation, and normalization for Unicity addresses.
|
|
@@ -9889,4 +10125,25 @@ declare function normalizeAddress(address: string): string;
|
|
|
9889
10125
|
*/
|
|
9890
10126
|
declare function addressesMatch(a: string, b: string): boolean;
|
|
9891
10127
|
|
|
9892
|
-
|
|
10128
|
+
type AuthVerificationErrorCode = 'SIGNATURE_INVALID' | 'PUBKEY_MALFORMED';
|
|
10129
|
+
declare class AuthVerificationError extends Error {
|
|
10130
|
+
readonly code: AuthVerificationErrorCode;
|
|
10131
|
+
constructor(message: string, code: AuthVerificationErrorCode);
|
|
10132
|
+
}
|
|
10133
|
+
interface SphereAuthInput {
|
|
10134
|
+
/** The exact text that was presented to the wallet for signing. */
|
|
10135
|
+
readonly challenge: string;
|
|
10136
|
+
/** Hex signature returned by the wallet's sign_message intent. */
|
|
10137
|
+
readonly signature: string;
|
|
10138
|
+
/** Compressed secp256k1 pubkey (66-char hex) the client claims to own. */
|
|
10139
|
+
readonly chainPubkey: string;
|
|
10140
|
+
}
|
|
10141
|
+
interface SphereAuthResult {
|
|
10142
|
+
/** Pubkey, proven via signature. */
|
|
10143
|
+
readonly chainPubkey: string;
|
|
10144
|
+
/** Unicity L3 DIRECT:// address, derived from chainPubkey (never claimed). */
|
|
10145
|
+
readonly directAddress: string;
|
|
10146
|
+
}
|
|
10147
|
+
declare function verifySphereAuth(input: SphereAuthInput): Promise<SphereAuthResult>;
|
|
10148
|
+
|
|
10149
|
+
export { type AddressInfo, type AddressMode, type AddressType, type AggregatorClient, type AggregatorEvent, type AggregatorEventCallback, type AggregatorEventType, type AggregatorProvider, type AggregatorProviderConfig, type Asset, AuthVerificationError, type AuthVerificationErrorCode, type BackgroundProgressStatus, type BaseProvider, type BroadcastHandler, type BroadcastMessage, type BuildSplitBundleResult, type CMasterKeyData, COIN_TYPES, type CheckNetworkHealthOptions, CoinGeckoPriceProvider, type CombinedTransferBundleV6, CommunicationsModule, type CommunicationsModuleConfig, type CommunicationsModuleDependencies, type ComposingIndicator, type ConversationPage, type CreateGroupOptions, type CreateInvoiceRequest, DEFAULT_AGGREGATOR_TIMEOUT, DEFAULT_AGGREGATOR_URL, DEFAULT_DERIVATION_PATH, DEFAULT_ELECTRUM_URL, DEFAULT_GROUP_RELAYS, DEFAULT_IPFS_BOOTSTRAP_PEERS, DEFAULT_IPFS_GATEWAYS, DEFAULT_MARKET_API_URL, DEFAULT_NOSTR_RELAYS, DEV_AGGREGATOR_URL, type DecryptionProgressCallback, type DerivationMode, type DirectMessage, type DirectTokenEntry, type DiscoverAddressProgress, type DiscoverAddressesOptions, type DiscoverAddressesResult, type DiscoveredAddress, type EncryptedData, type ExtendedValidationResult, type FullIdentity, type GetConversationPageOptions, type GetInvoicesOptions, type GetSwapsFilter, GroupChatModule, type GroupChatModuleConfig, type GroupChatModuleDependencies, type GroupData, type GroupMemberData, type GroupMessageData, GroupRole, GroupVisibility, type HealthCheckFn, type Identity, type IdentityConfig, type InclusionProof, type IncomingBroadcast, type IncomingMessage, type IncomingPaymentRequest, type IncomingTokenTransfer, type IncomingTransfer, type InitProgress, type InitProgressCallback, type InitProgressStep, type InstantSplitBundle, type InstantSplitBundleV4, type InstantSplitBundleV5, type InstantSplitOptions, type InstantSplitProcessResult, type InstantSplitResult, type InstantSplitV5RecoveryMetadata, type IntentStatus, type IntentType, type InvalidatedNametagEntry, type InvoiceRequestedAsset, index as L1, type L1Balance, L1PaymentsModule, type L1PaymentsModuleConfig, type L1PaymentsModuleDependencies, type L1SendRequest, type L1SendResult, type L1Transaction, type L1Utxo, LIMITS, type LegacyFileImportOptions, type LegacyFileInfo, type LegacyFileParseResult, type LegacyFileParsedData, type LegacyFileType, type LoadResult, type LogHandler, type LogLevel, type LoggerConfig, type LoggingConfig, type ManifestAuxiliary, type ManifestFields, type ManifestSignatures, type MarketIntent, MarketModule, type MarketModuleConfig, type MarketModuleDependencies, type MessageHandler, type MintOutboxEntry, type MintParams, type MintResult, NETWORKS, NIP29_KINDS, NOSTR_EVENT_KINDS, type NametagBindingProof, type NametagData, type NetworkHealthResult, type NetworkType, type OracleEvent, type OracleEventCallback, type OracleEventType, type OracleProvider, type OutboxEntry, type OutgoingPaymentRequest, type ParsedAddress, type ParsedStorageData, type PayInvoiceParams, type PaymentRequest, type PaymentRequestHandler, type PaymentRequestResponse, type PaymentRequestResponseHandler, type PaymentRequestResponseType, type PaymentRequestResult, type PaymentRequestStatus, type PaymentSession, type PaymentSessionDirection, type PaymentSessionError, type PaymentSessionErrorCode, type PaymentSessionStatus, PaymentsModule, type PaymentsModuleConfig, type PaymentsModuleDependencies, type PeerInfo, type PendingV5Finalization, type PostIntentRequest, type PostIntentResult, type PricePlatform, type PriceProvider, type PriceProviderConfig, type ProviderMetadata, type ProviderRole, type ProviderStatus, type ProviderStatusInfo, type ReceiveOptions, type ReceiveResult, type RegistryNetwork, type ReturnPaymentParams, SIGN_MESSAGE_PREFIX, STORAGE_KEYS, STORAGE_KEYS_ADDRESS, STORAGE_KEYS_GLOBAL, STORAGE_PREFIX, type SaveResult, type ScanAddressProgress, type ScanAddressesOptions, type ScanAddressesResult, type ScannedAddressResult, type SearchFilters, type SearchIntentResult, type SearchOptions, type SearchResult, type ServiceHealthResult, type SpentTokenInfo, type SpentTokenResult, Sphere, type SphereAuthInput, type SphereAuthResult, type SphereConfig, type SphereCreateOptions, SphereError, type SphereErrorCode, type SphereEventHandler, type SphereEventMap, type SphereEventType, type SphereImportOptions, type SphereInitOptions, type SphereInitResult, type SphereLoadOptions, type SphereStatus, type SplitPaymentSession, type SplitRecoveryResult, type StorageEvent, type StorageEventCallback, type StorageEventType, type StorageProvider, type StorageProviderConfig, type SubmitResult, type SwapDeal, type SwapManifest, SwapModule, type SwapModuleConfig, type SwapProgress, type SwapProposalResult, type SwapRef, type SwapRole, type SyncResult, TEST_AGGREGATOR_URL, TEST_ELECTRUM_URL, TEST_NOSTR_RELAYS, TIMEOUTS, type Token, type TokenDefinition, type TokenIcon, type TokenPrice, TokenRegistry, type TokenState, type TokenStatus, type TokenStorageProvider, type TokenTransferDetail, type TokenTransferHandler, type TokenTransferPayload, type ValidationResult as TokenValidationResult, TokenValidator, type TombstoneEntry, type TrackedAddress, type TrackedAddressEntry, type TransactionHistoryEntry, type TransferCommitment, type TransferMode, type TransferRequest, type TransferResult, type TransferStatus, type TransportEvent, type TransportEventCallback, type TransportEventType, type TransportProvider, type TransportProviderConfig, type TrustBaseLoader, type TxfAuthenticator, type TxfGenesis, type TxfGenesisData, type TxfInclusionProof, type TxfIntegrity, type TxfInvalidEntry, type TxfMerkleStep, type TxfMerkleTreePath, type TxfMeta, type TxfOutboxEntry, type TxfSentEntry, type TxfState, type TxfStorageData, type TxfStorageDataBase, type TxfToken, type TxfTombstone, type TxfTransaction, type UnconfirmedResolutionResult, type V5FinalizationStage, type ValidationAction, type ValidationIssue, type ValidationResult$1 as ValidationResult, type WaitOptions, type WalletDatInfo, type WalletInfo, type WalletJSON$1 as WalletJSON, type WalletJSONExportOptions$1 as WalletJSONExportOptions, type WalletSource, addressesMatch, archivedKeyFromTokenId, base58Decode, base58Encode, buildManifest, buildTxfStorageData, bytesToHex, checkNetworkHealth, coinIdsMatch, computeDirectAddressFromChainPubkey, computeSwapId, countCommittedTransactions, createAddress, createCommunicationsModule, createGroupChatModule, createKeyPair, createL1PaymentsModule, createMarketModule, createNametagBinding, createPaymentSession, createPaymentSessionError, createPaymentsModule, createPriceProvider, createSphere, createSplitPaymentSession, createSwapModule, createTokenValidator, decodeBech32, decrypt$1 as decrypt, decryptCMasterKey, decryptJson, decryptMnemonic, decryptPrivateKey, decryptSimple, decryptTextFormatKey, decryptWallet, decryptWithSalt, deriveAddressInfo, deriveChildKey$1 as deriveChildKey, deriveKeyAtPath$1 as deriveKeyAtPath, doubleSha256, encodeBech32, encrypt$1 as encrypt, encryptMnemonic, encryptSimple, encryptWallet, extractFromText, findPattern, forkedKeyFromTokenIdAndState, formatAmount, generateAddressFromMasterKey, generateMasterKey, generateMnemonic, generatePrivateKey, getAddressHrp, getAddressId, getAddressStorageKey, getCoinIdByName, getCoinIdBySymbol, getCurrentStateHash, getPublicKey, getSphere, getTokenDecimals, getTokenDefinition, getTokenIconUrl, getTokenId, getTokenName, getTokenSymbol, hasMissingNewStateHash, hasUncommittedTransactions, hasValidTxfData, hash160, hashSignMessage, hexToBytes, hexToWIF, identityFromMnemonicSync, initSphere, isArchivedKey, isCombinedTransferBundleV6, isForkedKey, isInstantSplitBundle, isInstantSplitBundleV4, isInstantSplitBundleV5, isKnownToken, isPaymentSessionTerminal, isPaymentSessionTimedOut, isSQLiteDatabase, isSphereError, isTextWalletEncrypted, isTokenKey, isValidAddress, isValidBech32, isValidDirectAddress, isValidNametag, isValidPrivateKey, isValidTokenId, isWalletDatEncrypted, isWalletTextFormat, keyFromTokenId, loadSphere, logger, mnemonicToSeedSync, normalizeAddress, normalizeCoinId, normalizeSdkTokenToStorage, objectToTxf, parseAddress, parseAndDecryptWalletDat, parseAndDecryptWalletText, parseForkedKey, parseTxfStorageData, parseWalletDat, parseWalletText, randomBytes, randomHex, randomUUID, ripemd160, sha256, signMessage, signSwapManifest, sleep, sphereExists, toHumanReadable, toSmallestUnit, tokenIdFromArchivedKey, tokenIdFromKey, tokenToTxf, txfToToken, validateManifest, validateMnemonic, verifyManifestIntegrity, verifyNametagBinding, verifySignedMessage, verifySphereAuth, verifySwapSignature };
|