pub trait WebhookPublicKeyAlgorithm {
// Required method
fn verify(
public_key: &Bytes,
message: &[u8],
signature: &[u8],
) -> Result<(), String>;
}Available on crate feature
public-key only.Expand description
Trait for algorithms to use for asymmetric key verification
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl WebhookPublicKeyAlgorithm for Ed25519
Available on crate feature
ed25519 only.impl WebhookPublicKeyAlgorithm for EcdsaP256Asn1
Available on crate feature
p256 only.