Struct ockam_key_exchange_x3dh::Initiator
source · pub struct Initiator<V: X3dhVault> { /* private fields */ }
Expand description
The initiator of X3DH receives a prekey bundle and computes the shared secret to communicate the first message to the responder
Trait Implementations§
source§impl<V: X3dhVault> KeyExchanger for Initiator<V>
impl<V: X3dhVault> KeyExchanger for Initiator<V>
source§fn name<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn name<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Return key exchange unique name.
source§fn generate_request<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_payload: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn generate_request<'life0, 'life1, 'async_trait>( &'life0 mut self, _payload: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Generate request that should be sent to the other party.
source§fn handle_response<'life0, 'life1, 'async_trait>(
&'life0 mut self,
response: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_response<'life0, 'life1, 'async_trait>( &'life0 mut self, response: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Handle response from other party and return payload.