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;
fn fetch_recovery_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fetch_recovery_slice_hash<'life0, 'async_trait>(
&'life0 self,
start: u64,
end: u64,
) -> Pin<Box<dyn Future<Output = Hash> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fetch_recovery_slice<'life0, 'async_trait>(
&'life0 self,
peer: PeerId,
start: u64,
end: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<RecoveryItem>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fetch_blind_nonce_outpoints<'life0, 'async_trait>(
&'life0 self,
blind_nonces: Vec<BlindNonce>,
) -> Pin<Box<dyn Future<Output = Result<Vec<OutPoint>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}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,
Sourcefn fetch_recovery_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_recovery_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the total number of recovery items stored on the federation.
Sourcefn fetch_recovery_slice_hash<'life0, 'async_trait>(
&'life0 self,
start: u64,
end: u64,
) -> Pin<Box<dyn Future<Output = Hash> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_recovery_slice_hash<'life0, 'async_trait>(
&'life0 self,
start: u64,
end: u64,
) -> Pin<Box<dyn Future<Output = Hash> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the consensus hash of recovery items in the range [start, end).
Sourcefn fetch_recovery_slice<'life0, 'async_trait>(
&'life0 self,
peer: PeerId,
start: u64,
end: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<RecoveryItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_recovery_slice<'life0, 'async_trait>(
&'life0 self,
peer: PeerId,
start: u64,
end: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<RecoveryItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetches recovery items in the range [start, end) from a specific peer.