Trait hotshot_fakeapi::fake_solver::FakeSolverApi

source ·
pub trait FakeSolverApi<TYPES: NodeType> {
    // Required methods
    fn get_auction_results_non_permissioned<'life0, 'async_trait>(
        &'life0 self,
        _view_number: u64,
    ) -> Pin<Box<dyn Future<Output = Result<TestAuctionResult, ServerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_auction_results_permissioned<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _view_number: u64,
        _signature: &'life1 <TYPES::SignatureKey as SignatureKey>::PureAssembledSignatureType,
    ) -> Pin<Box<dyn Future<Output = Result<TestAuctionResult, ServerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

The FakeSolverApi is a mock API which mimics the API contract of the solver and returns custom types that are relevant to HotShot.

Required Methods§

source

fn get_auction_results_non_permissioned<'life0, 'async_trait>( &'life0 self, _view_number: u64, ) -> Pin<Box<dyn Future<Output = Result<TestAuctionResult, ServerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the auction results without checking the signature.

source

fn get_auction_results_permissioned<'life0, 'life1, 'async_trait>( &'life0 self, _view_number: u64, _signature: &'life1 <TYPES::SignatureKey as SignatureKey>::PureAssembledSignatureType, ) -> Pin<Box<dyn Future<Output = Result<TestAuctionResult, ServerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the auction results with a valid signature.

Implementors§