ProofRpcServer

Trait ProofRpcServer 

Source
pub trait ProofRpcServer:
    Sized
    + Send
    + Sync
    + 'static {
    // Required methods
    fn health<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn checkpoint_proof<'life0, 'async_trait>(
        &'life0 self,
        blober: PubkeyFromStr,
        slot: u64,
        customer_elf: CustomerElf,
    ) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_proof_request_status<'life0, 'async_trait>(
        &'life0 self,
        request_id: String,
    ) -> Pin<Box<dyn Future<Output = RpcResult<RequestStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description

Server trait implementation for the ProofRpc RPC API.

Required Methods§

Source

fn health<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = RpcResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check the health of the RPC server. Returns an error if the server is not healthy.

Source

fn checkpoint_proof<'life0, 'async_trait>( &'life0 self, blober: PubkeyFromStr, slot: u64, customer_elf: CustomerElf, ) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Request building a succinct ZK Groth16 proof for a given blober and slot. (Custom per client)

Source

fn get_proof_request_status<'life0, 'async_trait>( &'life0 self, request_id: String, ) -> Pin<Box<dyn Future<Output = RpcResult<RequestStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a proof request status by its ID. Returns an error if the request does not exist or if there was a database or RPC failure.

Provided Methods§

Source

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§