fedimint_mint_client::api

Trait MintFederationApi

Source
pub trait MintFederationApi {
    // Required methods
    fn check_blind_nonce_used<'life0, 'async_trait>(
        &'life0 self,
        blind_nonce: BlindNonce,
    ) -> Pin<Box<dyn Future<Output = FederationResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn check_note_spent<'life0, 'async_trait>(
        &'life0 self,
        nonce: Nonce,
    ) -> Pin<Box<dyn Future<Output = FederationResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn check_blind_nonce_used<'life0, 'async_trait>( &'life0 self, blind_nonce: BlindNonce, ) -> Pin<Box<dyn Future<Output = FederationResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if an e-cash note was already issued for the given blind nonce.

Source

fn check_note_spent<'life0, 'async_trait>( &'life0 self, nonce: Nonce, ) -> Pin<Box<dyn Future<Output = FederationResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if an e-cash note was already spent.

Implementors§