spark_rust/wallet/internal_handlers/traits/
deposit.rs

1use crate::error::SparkSdkError;
2use crate::signer::traits::SparkSigner;
3use crate::wallet::internal_handlers::implementations::deposit::Address;
4use bitcoin::secp256k1::PublicKey;
5use tonic::async_trait;
6
7#[async_trait]
8pub(crate) trait DepositInternalHandlers<S: SparkSigner + Send + Sync> {
9    async fn validate_deposit_address(
10        &self,
11        address: &Address,
12        user_pubkey: &PublicKey,
13    ) -> Result<(), SparkSdkError>;
14}