Package-level declarations

Types

Link copied to clipboard

Full cross-device dust backup — adds the upload side to DustCloudBackupSource. One implementation serves both views: DustSyncManager consumes only fetch, MidnightWallet also drives upload.

Link copied to clipboard
fun interface DustCloudBackupSource

Optional cross-device source of a dust checkpoint (e.g. Google Drive). The concrete implementation lives in sdk:wallet-runtime (it needs Drive + the backup crypto); core:indexer and this module stay transport-agnostic.

Link copied to clipboard
class DustSyncManager(dustRepository: DustRepository, nodeRpcClient: NodeRpcClient, walletAddress: String, dustSeed: ByteArray, cloudBackupSource: DustCloudBackupSource? = null)

Dust state manager — keeps a single in-memory DustLocalState for the session.

Link copied to clipboard
@RequiresOptIn(level = RequiresOptIn.Level.WARNING, message = "This API is experimental and may change in future releases. Opt in with @OptIn(ExperimentalKuiraApi::class) to acknowledge.")
annotation class ExperimentalKuiraApi

Marks an API as experimental — subject to breaking changes between releases without going through the standard deprecation cycle declared in STABILITY.md.

Link copied to clipboard

Thrown when a balance can't proceed because the wallet has no spendable dust — specifically, every dust UTXO in the synced state is one the wallet already spent but whose spend the indexer's event stream hasn't reflected yet (so it's correctly excluded to avoid node error 115).

Link copied to clipboard

Top-level entry point for the Midnight Android SDK.

Link copied to clipboard

Embedded wallet that handles transaction balancing and submission on-device.

Link copied to clipboard
data class RestoredDustCheckpoint(val stateBytes: ByteArray, val lastEventId: Long)

A restored dust checkpoint: enough to seed DustSyncManager so the next sync is a fast delta instead of a genesis replay.

Link copied to clipboard
data class WalletBalance(val unshieldedNight: BigInteger, val shieldedNight: BigInteger, val dust: BigInteger, val dustRegistered: Boolean)

Snapshot of a wallet's full balance state across both pools.