Trait bonsaidb::local::vault::VaultKeyStorage[][src]

pub trait VaultKeyStorage: 'static + Send + Sync + Debug {
    type Error: Display;
    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.

Associated Types

The error type that the functions return.

Required methods

Store a key. Each server id should have unique storage.

Retrieve all previously stored vault key for a given storage id.

Implementors