pub trait LCV1StateRelayServerDataSource {
// Required methods
fn get_latest_signature_bundle(
&self,
) -> Result<LCV1StateSignaturesBundle, ServerError>;
fn post_signature<'life0, 'async_trait>(
&'life0 mut self,
req: LCV1StateSignatureRequestBody,
) -> Pin<Box<dyn Future<Output = Result<(), ServerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn get_latest_signature_bundle(
&self,
) -> Result<LCV1StateSignaturesBundle, ServerError>
fn get_latest_signature_bundle( &self, ) -> Result<LCV1StateSignaturesBundle, ServerError>
Get the latest available signatures bundle.
§Errors
Errors if there’s no available signatures bundle.
Sourcefn post_signature<'life0, 'async_trait>(
&'life0 mut self,
req: LCV1StateSignatureRequestBody,
) -> Pin<Box<dyn Future<Output = Result<(), ServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn post_signature<'life0, 'async_trait>(
&'life0 mut self,
req: LCV1StateSignatureRequestBody,
) -> Pin<Box<dyn Future<Output = Result<(), ServerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Post a signature to the relay server
§Errors
Errors if the signature is invalid, already posted, or no longer needed.