Skip to main content

xmtp_api_backend/endpoints/backend/
verify_smart_contract_wallet_signatures.rs

1use prost::{Message, bytes::Bytes};
2use std::borrow::Cow;
3use xmtp_proto::{
4    api::{BodyError, Endpoint},
5    backend_v1,
6};
7
8#[derive(Clone, Debug)]
9pub struct VerifySmartContractWalletSignatures(
10    pub backend_v1::VerifySmartContractWalletSignaturesRequest,
11);
12
13impl Endpoint for VerifySmartContractWalletSignatures {
14    type Output = backend_v1::VerifySmartContractWalletSignaturesResponse;
15    fn grpc_endpoint(&self) -> Cow<'static, str> {
16        "/xmtp.backend.v1.IdentityService/VerifySmartContractWalletSignatures".into()
17    }
18    fn body(&self) -> Result<Bytes, BodyError> {
19        Ok(self.0.encode_to_vec().into())
20    }
21}