Trait bonsaidb_local::vault::AnyVaultKeyStorage
source · pub trait AnyVaultKeyStorage: Send + Sync + Debug + 'static {
// Required methods
fn vault_key_for(
&self,
storage_id: StorageId
) -> Result<Option<KeyPair>, Error>;
fn set_vault_key_for(
&self,
storage_id: StorageId,
key: KeyPair
) -> Result<(), Error>;
}
Expand description
A VaultKeyStorage
trait that wraps the Error type before returning. This
type is used to allow the Vault to operate without any generic parameters.
This trait is auto-implemented for all VaultKeyStorage
implementors.