Trait sn_data_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; }

Ability to sign and validate data/tokens, as well as specify the type of ownership of that data

Required methods

fn id(&self) -> OwnerType[src]

fn sign<T: Serialize>(&self, data: &T) -> Result<Signature>[src]

fn verify<T: Serialize>(&self, sig: &Signature, data: &T) -> bool[src]

Loading content...

Implementors

impl Signing for Keypair[src]

Loading content...