Package-level declarations

Types

Link copied to clipboard
@Serializable
enum AlgorithmId : Enum<AlgorithmId>

Algorithm identifiers for multi-algorithm support. Public for use in progress tracking (MpcProtocolState.algorithmId).

Link copied to clipboard
class BackupDecryptionException(message: String = "Failed to decrypt backup - incorrect PIN or password", cause: Throwable? = null) : Exception

Exception thrown when backup decryption fails (wrong PIN/password).

Link copied to clipboard
class BackupException(message: String, cause: Throwable? = null) : Exception

Exception thrown when backup operations fail.

Link copied to clipboard
@Serializable
data class BackupInfo(val bundleId: String, val formatVersion: Int, val createdAt: Long, val updatedAt: Long, val wrappers: List<WrapperInfo>, val algorithms: List<String>)

Information about an existing backup. Flutter-facing DTO - exposed via code generation.

Link copied to clipboard
class BackupIntegrityException(message: String = "Backup integrity check failed") : Exception

Exception thrown when backup integrity check fails (tampered checksum or data).

Link copied to clipboard
class BackupNotFoundException(message: String = "No backup found") : Exception

Exception thrown when no backup exists.

Link copied to clipboard
@Serializable
data class BackupOptions(val wrappers: List<WrapperConfig>, val storageLocations: List<StorageLocation> = listOf(StorageLocation.CLOUD))

Options for creating a backup - specifies which wrappers to use. Exposed to Flutter via @FlutterMethod.

Link copied to clipboard
@Serializable
data class BackupResult(val bundleId: String, val seq: Int, val wrapperCount: Int)

Result of creating or updating a backup.

Link copied to clipboard

Flutter submodule for backup and restore operations.

Link copied to clipboard
class BackupServiceModuleAndroid(binaryMessenger: BinaryMessenger, parentModule: BlockchainKitSdkAndroid) : MethodChannel, MethodChannel.MethodCallHandler
Link copied to clipboard

Interface for backup providers that support file import/export.

Link copied to clipboard
@Serializable
data class FlutterUnlockStrategy(val type: String, val credentialId: String? = null, val recoveryId: String? = null, val kekId: String? = null, val pin: String? = null, val password: String? = null)

Flutter-facing unlock strategy. This is what Flutter sends - we convert to internal UnlockStrategy.

Link copied to clipboard
@Serializable
data class FlutterWrapperConfig(val type: String, val credentialId: String? = null, val pin: String? = null, val password: String? = null)

Flutter-facing wrapper configuration. This is what Flutter sends - we convert to internal WrapperConfig.

Link copied to clipboard
@Serializable
data class JwkPublicKey(val kty: String = "EC", val crv: String = "P-256", val alg: String = "ES256", val x: String, val y: String)

JWK (JSON Web Key) format for EC public keys.

Link copied to clipboard
@Serializable
data class PasskeyCredentialInfo(val id: String, val type: String = "public-key", val userHandle: String? = null, val publicKey: JwkPublicKey? = null, val signCount: Int = 0, val transports: List<String>? = null, val createdAt: String? = null, val lastUsedAt: String? = null)

Standard passkey credential information for backup metadata.

Link copied to clipboard
@Serializable
enum StorageLocation : Enum<StorageLocation>

Where to store the backup.

Link copied to clipboard
actual class SystemBackupStatus(context: PlatformContext)

Android implementation of SystemBackupStatus.

expect class SystemBackupStatus(context: PlatformContext)

Platform-specific system backup status checking.

Link copied to clipboard

Interface for modular wallet backup storage providers.

Link copied to clipboard
@Serializable
data class WalletRestoreResult(val groupId: String, val walletType: WalletType, val displayName: String, val restoredAt: BigInteger)

Result of a wallet restore operation.

Link copied to clipboard
@Serializable
enum WalletType : Enum<WalletType>

Type of MPC wallet.

Link copied to clipboard
@Serializable
sealed class WrapperConfig

Configuration for a single wrapper (recovery method).

Link copied to clipboard
@Serializable
data class WrapperInfo(val wrapId: String, val type: String, val credentialId: String? = null, val expiresAt: Long? = null)

Information about a single wrapper in a backup.

Functions

Link copied to clipboard

Extension function to convert PasskeyDetails to PasskeyCredentialInfo.