enum KeyAlgorithm { rsa, ecdsa, ed25519 } // The API to handle without storing the private key in memory. //The implementation will use platform-specific secure storage and signing capabilities. abstract class KeyHandle { KeyAlgorithm get alg; Future> sign(List data); Future> getPublicKey(); } abstract class KeyManager { Future get(); Future create(); }