pub trait ContractSignatureVerifier: Send + Sync {
// Required method
fn is_valid_signature<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
chain_id: &'life1 str,
address: &'life2 str,
message_hash: [u8; 32],
signature: &'life3 [u8],
) -> Pin<Box<dyn Future<Output = Result<bool, ContractVerifierError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
Verifies an EIP-1271 isValidSignature(bytes32, bytes) call against a
smart-contract wallet. Backed by the #759 EvmChain port when it lands;
until then a venture wires its own implementation (e.g. an eth_call
adapter) or the test-only StaticContractVerifier.
Required Methods§
Sourcefn is_valid_signature<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
chain_id: &'life1 str,
address: &'life2 str,
message_hash: [u8; 32],
signature: &'life3 [u8],
) -> Pin<Box<dyn Future<Output = Result<bool, ContractVerifierError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn is_valid_signature<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
chain_id: &'life1 str,
address: &'life2 str,
message_hash: [u8; 32],
signature: &'life3 [u8],
) -> Pin<Box<dyn Future<Output = Result<bool, ContractVerifierError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Whether the contract at address (on chain_id) approves signature
for message_hash.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".