Trait bonsaidb::local::vault::VaultKeyStorage
pub trait VaultKeyStorage: Send + Sync + Debug + 'static {
type Error: Display;
// Required methods
fn set_vault_key_for(
&self,
storage_id: StorageId,
key: KeyPair
) -> Result<(), Self::Error>;
fn vault_key_for(
&self,
storage_id: StorageId
) -> Result<Option<KeyPair>, Self::Error>;
}
Expand description
Stores encrypted keys for a vault.