diff --git a/xmtp_id/src/associations/mod.rs b/xmtp_id/src/associations/mod.rs index b1b0af985..2f2680761 100644 --- a/xmtp_id/src/associations/mod.rs +++ b/xmtp_id/src/associations/mod.rs @@ -3,7 +3,6 @@ pub mod builder; mod hashes; mod member; mod signature; -mod signer; mod state; #[cfg(test)] mod test_utils; diff --git a/xmtp_id/src/associations/signer.rs b/xmtp_id/src/associations/signer.rs deleted file mode 100644 index b606bc5fc..000000000 --- a/xmtp_id/src/associations/signer.rs +++ /dev/null @@ -1,35 +0,0 @@ -use thiserror::Error; - -use super::{MemberIdentifier, Signature, SignatureKind}; - -#[derive(Error, Debug)] -pub enum SignerError { - #[error("Signature error {0}")] - Generic(String), -} - -#[async_trait::async_trait] -pub trait Signer: SignerClone { - fn signer_identity(&self) -> MemberIdentifier; - fn signature_kind(&self) -> SignatureKind; - fn sign(&self, text: &str) -> Result, SignerError>; -} - -pub trait SignerClone { - fn clone_box(&self) -> Box; -} - -impl SignerClone for T -where - T: 'static + Signer + Clone, -{ - fn clone_box(&self) -> Box { - Box::new(self.clone()) - } -} - -impl Clone for Box { - fn clone(&self) -> Box { - self.clone_box() - } -}