import '../security/secret_store.dart'; /// Your own display name and short "about", persisted locally (keystore-backed, /// no plaintext at rest). The network copy is a published NIP-01 kind:0 event; /// this local copy prefills the editor and works offline. class ProfileStore { ProfileStore(this._store); final SecretStore _store; static const _nameKey = 'tane.social.profile.name'; static const _aboutKey = 'tane.social.profile.about'; Future name() async => (await _store.read(_nameKey)) ?? ''; Future about() async => (await _store.read(_aboutKey)) ?? ''; Future save({required String name, required String about}) async { await _store.write(_nameKey, name.trim()); await _store.write(_aboutKey, about.trim()); } }