Skip to main content

MintAuthTransaction

Trait MintAuthTransaction 

Source
pub trait MintAuthTransaction<Error>: DbTransactionFinalizer<Err = Error> {
    // Required methods
    fn set_active_keyset<'life0, 'async_trait>(
        &'life0 mut self,
        id: Id,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn add_keyset_info<'life0, 'async_trait>(
        &'life0 mut self,
        keyset: MintKeySetInfo,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn add_proof<'life0, 'async_trait>(
        &'life0 mut self,
        proof: AuthProof,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_proof_state<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        y: &'life1 PublicKey,
        proofs_state: State,
    ) -> Pin<Box<dyn Future<Output = Result<Option<State>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn add_blind_signatures<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        blinded_messages: &'life1 [PublicKey],
        blind_signatures: &'life2 [BlindSignature],
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn add_protected_endpoints<'life0, 'async_trait>(
        &'life0 mut self,
        protected_endpoints: HashMap<ProtectedEndpoint, AuthRequired>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn remove_protected_endpoints<'life0, 'async_trait>(
        &'life0 mut self,
        protected_endpoints: Vec<ProtectedEndpoint>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Mint Database transaction

Required Methods§

Source

fn set_active_keyset<'life0, 'async_trait>( &'life0 mut self, id: Id, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add Active Keyset

Source

fn add_keyset_info<'life0, 'async_trait>( &'life0 mut self, keyset: MintKeySetInfo, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn add_proof<'life0, 'async_trait>( &'life0 mut self, proof: AuthProof, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add spent AuthProof

Source

fn update_proof_state<'life0, 'life1, 'async_trait>( &'life0 mut self, y: &'life1 PublicKey, proofs_state: State, ) -> Pin<Box<dyn Future<Output = Result<Option<State>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update AuthProofs state

Source

fn add_blind_signatures<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, blinded_messages: &'life1 [PublicKey], blind_signatures: &'life2 [BlindSignature], ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn add_protected_endpoints<'life0, 'async_trait>( &'life0 mut self, protected_endpoints: HashMap<ProtectedEndpoint, AuthRequired>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add protected endpoints

Source

fn remove_protected_endpoints<'life0, 'async_trait>( &'life0 mut self, protected_endpoints: Vec<ProtectedEndpoint>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Removed Protected endpoints

Implementors§