import { secretStore } from './secretStore'; // During the migration window the orchestrator probes SecureStore for legacy // per-device private keys. We keep this read-only — never write — so a future // reset can safely wipe the new chatapp.userpriv.* slot without affecting // pre-existing legacy entries. export function legacyDeviceKey(userId: string, deviceId: string): Promise { return secretStore.getSecret('chatapp.priv.' + userId + '.' + deviceId); }