SignaturesDatabase

Trait SignaturesDatabase 

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

    // Required methods
    fn get_blind_signatures<'life0, 'life1, 'async_trait>(
        &'life0 self,
        blinded_messages: &'life1 [PublicKey],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<BlindSignature>>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_blind_signatures_for_keyset<'life0, 'life1, 'async_trait>(
        &'life0 self,
        keyset_id: &'life1 Id,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<BlindSignature>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_blind_signatures_for_quote<'life0, 'life1, 'async_trait>(
        &'life0 self,
        quote_id: &'life1 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<BlindSignature>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Mint Signatures Database trait

Required Associated Types§

Source

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

Mint Signature Database Error

Required Methods§

Source

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

Source

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

Get BlindSignatures for keyset_id

Source

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

Get BlindSignatures for quote

Implementors§