Skip to main content

FederateProofProvider

Trait FederateProofProvider 

Source
pub trait FederateProofProvider: Send + Sync {
    // Required method
    fn proof_for<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        envelope: &'life1 RequestEnvelope,
        capnp_body: &'life2 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Builds a holder proof after all forwarded recipients exist. capnp_body is the application body before browser carrier framing, matching what dispatch recovers and verifies. This is opt-in per client.

Required Methods§

Source

fn proof_for<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, envelope: &'life1 RequestEnvelope, capnp_body: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§