pub trait AsyncSignerLike: Send + Sync {
// Required methods
fn pubkey_bytes(&self) -> [u8; 32];
fn sign_message<'a>(&'a self, message: &'a [u8]) -> SigningFuture<'a>;
}Expand description
Asynchronous Ed25519 signer capability.
Implementations must not block the async executor while waiting for I/O.
Required Methods§
fn pubkey_bytes(&self) -> [u8; 32]
fn sign_message<'a>(&'a self, message: &'a [u8]) -> SigningFuture<'a>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".