Trait SignedOperation

Source
pub trait SignedOperation {
    // Required methods
    fn to_json(&self) -> String;
    fn to_cid(&self) -> Result<String, PLCError>;
    fn to_did(&self) -> Result<String, PLCError>;
    fn verify_sig(
        &self,
        rotation_keys: Option<Vec<String>>,
    ) -> Result<(bool, Option<String>), PLCError>;
}

Required Methods§

Source

fn to_json(&self) -> String

Source

fn to_cid(&self) -> Result<String, PLCError>

Source

fn to_did(&self) -> Result<String, PLCError>

Source

fn verify_sig( &self, rotation_keys: Option<Vec<String>>, ) -> Result<(bool, Option<String>), PLCError>

Implementors§