pub trait SignedPayload: Payload {
type PublicKey;
// Required method
fn verify(&self) -> Option<Self::PublicKey>;
}
Expand description
Extension of Payload
for types that include a signature.
Implementers verify the signature and, when successful, return the signer’s public key. This trait is mainly intended for internal use and does not constitute a stable public API.