createEncryptedProtoDataStore
fun <T : Any> createEncryptedProtoDataStore(storage: Storage<T>, migrations: List<DataMigration<T>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<T>? = null, registry: StoreRegistry? = null): DataStore<T>
Creates a DataStore over a caller-supplied storage (Okio, IndexedDB, etc.).
Callers must ensure CryptoRuntime is Ready before reading/writing encrypted stores (REQ-STO-05).
fun <T : Any> createEncryptedProtoDataStore(cipher: Cipher, kSerializer: KSerializer<T>, defaultValue: T, locator: StoreLocator, options: EncryptedStoreOptions = EncryptedStoreOptions(), migrations: List<DataMigration<T>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<T>? = null, registry: StoreRegistry? = null): DataStore<T>
Canonical encrypted typed factory. Prefer StoreLocator.Platform from commonMain (Okio on file targets, IndexedDB on JS/Wasm).
fun <T : Any> createEncryptedProtoDataStore(cipher: Cipher, kSerializer: KSerializer<T>, defaultValue: T, producePath: () -> Path, options: EncryptedStoreOptions = EncryptedStoreOptions(), migrations: List<DataMigration<T>> = emptyList(), corruptionHandler: ReplaceFileCorruptionHandler<T>? = null, registry: StoreRegistry? = null): DataStore<T>
Okio typed path factory with AEAD. Prefer StoreLocator.File / StoreLocator.Platform from shared code.