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§
Required Methods§
Sourcefn 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_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
Sourcefn 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_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