Trait safe_network::types::Signing [−][src]
pub trait Signing { 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