WebhookPublicKeyAlgorithm

Trait WebhookPublicKeyAlgorithm 

Source
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§

Source

fn verify( public_key: &Bytes, message: &[u8], signature: &[u8], ) -> Result<(), String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl WebhookPublicKeyAlgorithm for Ed25519

Available on crate feature ed25519 only.
Source§

impl WebhookPublicKeyAlgorithm for EcdsaP256Asn1

Available on crate feature p256 only.