pub trait SignedActionHashedExt {
    // Required methods
    fn from_content_sync(signed_action: SignedAction) -> SignedActionHashed;
    fn sign<'life0, 'async_trait>(
        keystore: &'life0 MetaLairClient,
        action: ActionHashed
    ) -> Pin<Box<dyn Future<Output = LairResult<SignedActionHashed>> + Send + 'async_trait>>
       where 'life0: 'async_trait;
    fn validate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), KeystoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Extension trait to keep zome types minimal

Required Methods§

source

fn from_content_sync(signed_action: SignedAction) -> SignedActionHashed

Create a hash from data

source

fn sign<'life0, 'async_trait>( keystore: &'life0 MetaLairClient, action: ActionHashed ) -> Pin<Box<dyn Future<Output = LairResult<SignedActionHashed>> + Send + 'async_trait>>where 'life0: 'async_trait,

Sign some content

source

fn validate<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), KeystoreError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Validate the data

Implementors§