spark_rust/wallet/internal_handlers/traits/authenticate.rs
1// crate
2use crate::error::SparkSdkError;
3use crate::signer::traits::SparkSigner;
4use crate::wallet::config::spark::Session;
5
6// external crates
7use tonic::async_trait;
8
9#[async_trait]
10pub(crate) trait AuthenticateInternalHandlers<S: SparkSigner + Send + Sync> {
11 async fn authenticate(&self) -> Result<Vec<Session>, SparkSdkError>;
12}