pub trait Signing {
// Required methods
fn id(&self) -> OwnerType;
fn sign<T: Serialize>(&self, data: &T) -> Result<Signature>;
fn verify<T: Serialize>(&self, sig: &Signature, data: &T) -> bool;
}Expand description
Ability to sign and validate data/tokens, as well as specify the type of ownership of that data
Required Methods§
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.