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§
Sourcefn 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 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
Sourcefn 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_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,
Add MintKeySetInfo
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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_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,
Add BlindSignature
Sourcefn 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 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
Sourcefn 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,
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