pub trait SignatureVerifier {
// Required method
fn verify(&self, spki_der: &[u8], message: &[u8], signature: &[u8]) -> bool;
}Expand description
The signature-verification capability a caller injects (SPEC §3.4.3).
dig-pex is deliberately sans-IO and carries no signature crypto of its own: it defines the field
and the canonical bytes, and the embedding node or relay supplies the primitive matching the key
type in use (ECDSA P-256, as dig-tls issues today). The peer_id-to-key binding is not
delegated — PaymentClaim::verify recomputes SHA-256(SPKI) == peer_id itself, so a
permissive verifier can never be talked into naming the wrong payee.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".