[][src]Type Definition libra_secure_storage::OnDiskStorage

type OnDiskStorage = OnDiskStorageInternal<RealTimeService>;

OnDiskStorage represents a key value store that is persisted to the local filesystem and is intended for single threads (or must be wrapped by a Arc<RwLock<>>). This provides no permission checks and simply offers a proof of concept to unblock building of applications without more complex data stores. Internally, it reads and writes all data to a file, which means that it must make copies of all key material which violates the Libra code base. It violates it because the anticipation is that data stores would securely handle key material. This should not be used in production.