PrefsDustBackupDigestStore

SharedPreferences-backed DustBackupDigestStore. Holds the SHA-256 of the last checkpoint successfully uploaded per address, so DustCloudBackupCoordinator skips the network round-trip when nothing changed. The digest is not secret (it's a hash of an already-encrypted-at-rest checkpoint), so plain prefs is fine.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
open override fun clear()

Drop all recorded digests (#246) — used when the cloud blob is deleted so a later re-enable re-uploads instead of the hash-guard skipping an "already-uploaded" checkpoint.

Link copied to clipboard
open override fun get(address: String): String?
Link copied to clipboard
open override fun put(address: String, digest: String)