Trait holochain::prelude::SignedActionHashedExt
source · pub trait SignedActionHashedExt {
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§
sourcefn from_content_sync(signed_action: SignedAction) -> SignedHashed<Action>
fn from_content_sync(signed_action: SignedAction) -> SignedHashed<Action>
Create a hash from data
sourcefn 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 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