SecurityKeyBackupStore

Encrypted per-node storage for security (public/private) key backups.

Platform implementations should use secure storage (e.g., EncryptedSharedPreferences on Android), keyed by node number, mirroring iOS's per-node Keychain entries ("PrivateKeyNode").

Functions

Link copied to clipboard
abstract fun delete(nodeNum: Int)

Clears the stored key backup for the given node number.

Link copied to clipboard
abstract fun get(nodeNum: Int): StoredSecurityKeys?

Retrieves the stored key backup for the given node number, or null if none is stored.

Link copied to clipboard
abstract fun save(nodeNum: Int, publicKeyBase64: String, privateKeyBase64: String, timestamp: Long)

Saves (overwriting any existing) key backup for the given node number.