use std::sync::{Arc, Mutex}; use k256::ecdsa::SigningKey; use tonic::{Request, Response, Result as TonicResult, Status}; use crate::{ attestor::Attestor, proto::{clearing_server::Clearing, RunClearingRequest, RunClearingResponse}, }; #[derive(Clone, Debug)] pub struct MtcsService { sk: Arc>>, attestor: A, } impl MtcsService where A: Attestor, { pub fn new(sk: Arc>>, attestor: A) -> Self { Self { sk, attestor } } } #[tonic::async_trait] impl Clearing for MtcsService where A: Attestor + Send + Sync + 'static, { async fn run( &self, _request: Request, ) -> TonicResult> { todo!() } }