pub trait ConversationSignerExt {
    // Required method
    fn sign_xmtp_message<'life0, 'life1, 'async_trait, M>(
        &'life0 self,
        conversation: &'life1 Conversation<M>,
        conversation_id: [u8; 32],
        payload: Bytes,
        identity: Address
    ) -> Pin<Box<dyn Future<Output = Result<Signature, ExtSignerError<M>>> + Send + 'async_trait>>
       where M: 'async_trait + Middleware,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Signer for data that is externally signed to be processed by the Conversation Contract.

Required Methods§

source

fn sign_xmtp_message<'life0, 'life1, 'async_trait, M>( &'life0 self, conversation: &'life1 Conversation<M>, conversation_id: [u8; 32], payload: Bytes, identity: Address ) -> Pin<Box<dyn Future<Output = Result<Signature, ExtSignerError<M>>> + Send + 'async_trait>>
where M: 'async_trait + Middleware, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Sign hash of the data for Conversation::send_message_signed

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConversationSignerExt for LocalWallet

source§

fn sign_xmtp_message<'life0, 'life1, 'async_trait, M>( &'life0 self, conversation: &'life1 Conversation<M>, conversation_id: [u8; 32], payload: Bytes, identity: Address ) -> Pin<Box<dyn Future<Output = Result<Signature, ExtSignerError<M>>> + Send + 'async_trait>>
where M: 'async_trait + Middleware, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§