Trait sda_protocol::helpers::Sign
[−]
[src]
pub trait Sign { fn canonical(&self) -> SdaResult<Vec<u8>>; }
Abstract trait for objects that may be signed.
Required Methods
fn canonical(&self) -> SdaResult<Vec<u8>>
Generate a canonical representation of the object.
This will be the main object under consideration during signing and verification, and as such it determines which fields are actually signed.
Implementors
impl<T: Serialize> Sign for T