crev_data::proof::content

Trait ContentExt

source
pub trait ContentExt: Content {
    // Provided methods
    fn serialize(&self) -> Result<String, Error> { ... }
    fn sign_by(&self, id: &UnlockedId) -> Result<Proof, Error> { ... }
    fn ensure_serializes_to_valid_proof(&self) -> Result<(), Error> { ... }
}

Provided Methods§

source

fn serialize(&self) -> Result<String, Error>

source

fn sign_by(&self, id: &UnlockedId) -> Result<Proof, Error>

source

fn ensure_serializes_to_valid_proof(&self) -> Result<(), Error>

Ensure the proof generated from this Content is going to deserialize

Implementors§

source§

impl<T> ContentExt for T
where T: Content,