pub trait SolanaSignTrait: Sync + Send {
// Required methods
fn pubkey(&self) -> Result<Address, SignerError>;
fn sign<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Signature, SignerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Trait defining Solana-specific signing operations
This trait extends the basic signing functionality with methods specific to the Solana blockchain, including public key retrieval and message signing.
Required Methods§
Sourcefn pubkey(&self) -> Result<Address, SignerError>
fn pubkey(&self) -> Result<Address, SignerError>
Returns the public key of the Solana signer as an Address