#[non_exhaustive]pub enum VerifyingKeyMaterial {
X509Certificate(Vec<u8>),
EcdsaP256PublicKey(Vec<u8>),
}Expand description
Caller-supplied asymmetric verification material (spec.md §7).
Providers that verify against a configured public key or certificate
(currently SendGrid and PayPal) take their key material here
rather than in a Secret, because unlike the shared
symmetric schemes the signing key is never a private value this crate
holds — it is the provider’s own public key. This crate never fetches
key material over the network (spec.md §1); the caller supplies bytes
already vetted (allow-listed certificate URL, checked key, etc.).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
X509Certificate(Vec<u8>)
DER- or PEM-encoded X.509 certificate (PayPal scheme). Only the embedded public key is used; this crate performs no chain validation, so callers needing chain/pin enforcement supply an already-validated certificate.
EcdsaP256PublicKey(Vec<u8>)
DER bytes of an ECDSA P-256 SubjectPublicKeyInfo public key (SendGrid
scheme), decoded by the caller from the provider’s published base64
form (the dashboard “Verification Key”).