pub trait VaultKeyStorage: Send + Sync + Debug + 'static {
    type Error: Display;

    fn set_vault_key_for(
        storage_id: StorageId,
        key: KeyPair
    ) -> Result<(), Self::Error>; fn vault_key_for(
        storage_id: StorageId
    ) -> Result<Option<KeyPair>, Self::Error>; }
Expand description

Stores encrypted keys for a vault.

Required 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.