pub trait KmsProvider: Send + Sync {
// Required methods
fn sign(&self, key_id: &str, data: &[u8]) -> Result<Vec<u8>, FnError>;
fn verify(
&self,
key_id: &str,
data: &[u8],
signature: &[u8],
) -> Result<bool, FnError>;
}Expand description
A signing / verification service backing the uni.kms.* host functions.
Implementations are expected to enforce nothing about which key ids are
permissible — that attenuation is checked against the plugin’s granted
crate::Capability::Kms before this trait is called.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".