pub trait SignerProxyInterface: Send + Sync {
type SignHashResponseFut: Future<Output = Result<SignerSignHashResult, Error>> + Send;
type SignHashWithPrivateKeyResponseFut: Future<Output = Result<SignerSignHashWithPrivateKeyResult, Error>> + Send;
// Required methods
fn sign_hash(&self, hash: &[u8]) -> Self::SignHashResponseFut;
fn sign_hash_with_private_key(
&self,
hash: &[u8],
wrapped_private_key: &[u8],
) -> Self::SignHashWithPrivateKeyResponseFut;
}Required Associated Types§
type SignHashResponseFut: Future<Output = Result<SignerSignHashResult, Error>> + Send
type SignHashWithPrivateKeyResponseFut: Future<Output = Result<SignerSignHashWithPrivateKeyResult, Error>> + Send
Required Methods§
fn sign_hash(&self, hash: &[u8]) -> Self::SignHashResponseFut
fn sign_hash_with_private_key( &self, hash: &[u8], wrapped_private_key: &[u8], ) -> Self::SignHashWithPrivateKeyResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".