pub trait DataSignerTrait: Send + Sync {
// Required methods
fn sign_data<'life0, 'async_trait>(
&'life0 self,
request: SignDataRequest,
) -> Pin<Box<dyn Future<Output = Result<SignDataResponse, SignerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn sign_typed_data<'life0, 'async_trait>(
&'life0 self,
request: SignTypedDataRequest,
) -> Pin<Box<dyn Future<Output = Result<SignDataResponse, SignerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn sign_data<'life0, 'async_trait>(
&'life0 self,
request: SignDataRequest,
) -> Pin<Box<dyn Future<Output = Result<SignDataResponse, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign_data<'life0, 'async_trait>(
&'life0 self,
request: SignDataRequest,
) -> Pin<Box<dyn Future<Output = Result<SignDataResponse, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Signs arbitrary message data
Sourcefn sign_typed_data<'life0, 'async_trait>(
&'life0 self,
request: SignTypedDataRequest,
) -> Pin<Box<dyn Future<Output = Result<SignDataResponse, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign_typed_data<'life0, 'async_trait>(
&'life0 self,
request: SignTypedDataRequest,
) -> Pin<Box<dyn Future<Output = Result<SignDataResponse, SignerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Signs EIP-712 typed data