Trait did_method_plc::operation::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§