ProofsDatabase

Trait ProofsDatabase 

Source
pub trait ProofsDatabase {
    type Err: Into<Error> + From<Error>;

    // Required methods
    fn get_proofs_by_ys<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ys: &'life1 [PublicKey],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<Proof>>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_proof_ys_by_quote_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        quote_id: &'life1 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PublicKey>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_proofs_states<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ys: &'life1 [PublicKey],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<State>>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_proofs_by_keyset_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        keyset_id: &'life1 Id,
    ) -> Pin<Box<dyn Future<Output = Result<(Proofs, Vec<Option<State>>), Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Mint Proof Database trait

Required Associated Types§

Source

type Err: Into<Error> + From<Error>

Mint Proof Database Error

Required Methods§

Source

fn get_proofs_by_ys<'life0, 'life1, 'async_trait>( &'life0 self, ys: &'life1 [PublicKey], ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<Proof>>, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get Proofs by ys

Source

fn get_proof_ys_by_quote_id<'life0, 'life1, 'async_trait>( &'life0 self, quote_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<PublicKey>, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get ys by quote id

Source

fn get_proofs_states<'life0, 'life1, 'async_trait>( &'life0 self, ys: &'life1 [PublicKey], ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<State>>, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get Proofs state

Source

fn get_proofs_by_keyset_id<'life0, 'life1, 'async_trait>( &'life0 self, keyset_id: &'life1 Id, ) -> Pin<Box<dyn Future<Output = Result<(Proofs, Vec<Option<State>>), Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get Proofs by state

Implementors§