Trait rings_core::message::MessageVerificationExt
source · pub trait MessageVerificationExt {
// Required methods
fn verification_data(&self) -> Result<Vec<u8>>;
fn verification(&self) -> &MessageVerification;
// Provided methods
fn is_expired(&self) -> bool { ... }
fn verify(&self) -> bool { ... }
fn signer(&self) -> Did { ... }
}Expand description
This trait helps a struct with MessageVerification field to verify itself.
It also provides a signer method to let receiver know who sent the message.
Required Methods§
sourcefn verification_data(&self) -> Result<Vec<u8>>
fn verification_data(&self) -> Result<Vec<u8>>
Give the data to be verified.
sourcefn verification(&self) -> &MessageVerification
fn verification(&self) -> &MessageVerification
Give the verification field for verifying.
Provided Methods§
sourcefn is_expired(&self) -> bool
fn is_expired(&self) -> bool
Checks whether the message is expired.