Trait holochain_client::AgentSigner

source ·
pub trait AgentSigner {
    // Required methods
    fn sign<'life0, 'life1, 'async_trait>(
        &'life0 self,
        cell_id: &'life1 CellId,
        provenance: AgentPubKey,
        data_to_sign: Arc<[u8]>
    ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_provenance(&self, cell_id: &CellId) -> Option<AgentPubKey>;
    fn get_cap_secret(&self, cell_id: &CellId) -> Option<CapSecret>;
}

Required Methods§

source

fn sign<'life0, 'life1, 'async_trait>( &'life0 self, cell_id: &'life1 CellId, provenance: AgentPubKey, data_to_sign: Arc<[u8]> ) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Sign the given data with the public key found in the agent id of the provenance.

source

fn get_provenance(&self, cell_id: &CellId) -> Option<AgentPubKey>

source

fn get_cap_secret(&self, cell_id: &CellId) -> Option<CapSecret>

Get the capability secret for the given cell_id if it exists.

Implementors§