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§
sourcefn 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 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.
fn get_provenance(&self, cell_id: &CellId) -> Option<AgentPubKey>
sourcefn get_cap_secret(&self, cell_id: &CellId) -> Option<CapSecret>
fn get_cap_secret(&self, cell_id: &CellId) -> Option<CapSecret>
Get the capability secret for the given cell_id
if it exists.