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

Extension trait to keep zome types minimal

Required Methods§

source

fn from_content_sync(signed_action: SignedAction) -> SignedHashed<Action>

Create a hash from data

source

fn sign<'life0, 'async_trait>( keystore: &'life0 MetaLairClient, action: HoloHashed<Action> ) -> Pin<Box<dyn Future<Output = Result<SignedHashed<Action>, OneErr>> + Send + 'async_trait, Global>>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, Global>>where 'life0: 'async_trait, Self: 'async_trait,

Validate the data

Implementors§