Trait holochain_types::record::SignedActionHashedExt
source · [−]pub trait SignedActionHashedExt {
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
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Extension trait to keep zome types minimal
Required Methods
sourcefn from_content_sync(signed_action: SignedAction) -> SignedActionHashed
fn from_content_sync(signed_action: SignedAction) -> SignedActionHashed
Create a hash from data
sourcefn sign<'life0, 'async_trait>(
keystore: &'life0 MetaLairClient,
action: ActionHashed
) -> Pin<Box<dyn Future<Output = LairResult<SignedActionHashed>> + Send + 'async_trait>>where
'life0: 'async_trait,
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