Secure Key Storage
Component Detail
Infrastructure
medium complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Platform abstraction over iOS Keychain and Android Keystore for securely persisting the peer mentor's private encryption key. Ensures the private key never leaves the secure enclave and is inaccessible to other apps or unauthorized processes.
secure-key-storage
Responsibilities
- Write private key bytes to iOS Keychain with kSecAttrAccessibleAfterFirstUnlock
- Write private key bytes to Android Keystore with biometric or device-credential binding
- Read private key for decryption operations
- Delete keypair on account logout or device deregistration
Interfaces
storePrivateKey(key: Uint8List): Future<void>
retrievePrivateKey(): Future<Uint8List?>
deletePrivateKey(): Future<void>
hasPrivateKey(): Future<bool>