ValidationApi

Trait ValidationApi 

Source
pub trait ValidationApi:
    Send
    + Sync
    + 'static {
    // Required methods
    fn validate_group_messages<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ValidateGroupMessagesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ValidateGroupMessagesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_association_state<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetAssociationStateRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetAssociationStateResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn validate_inbox_id_key_packages<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ValidateKeyPackagesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ValidateInboxIdKeyPackagesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn verify_smart_contract_wallet_signatures<'life0, 'async_trait>(
        &'life0 self,
        request: Request<VerifySmartContractWalletSignaturesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<VerifySmartContractWalletSignaturesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with ValidationApiServer.

Required Methods§

Source

fn validate_group_messages<'life0, 'async_trait>( &'life0 self, request: Request<ValidateGroupMessagesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ValidateGroupMessagesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Validates and parses a group message and returns relevant details

Source

fn get_association_state<'life0, 'async_trait>( &'life0 self, request: Request<GetAssociationStateRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetAssociationStateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the final association state for a batch of identity updates

Source

fn validate_inbox_id_key_packages<'life0, 'async_trait>( &'life0 self, request: Request<ValidateKeyPackagesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ValidateInboxIdKeyPackagesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Validates InboxID key packages and returns credential information for them, without checking whether an InboxId <> InstallationPublicKey pair is really valid.

Source

fn verify_smart_contract_wallet_signatures<'life0, 'async_trait>( &'life0 self, request: Request<VerifySmartContractWalletSignaturesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<VerifySmartContractWalletSignaturesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Verifies smart contracts This request is proxied from the node, so we’ll reuse those messages.

Implementors§