Trait Signer
solana_sdk::signature
pub trait Signer { fn try_pubkey(&self) -> Result<Pubkey, SignerError>; fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>; fn pubkey(&self) -> Pubkey { ... } fn sign_message(&self, message: &[u8]) -> Signature { ... } }
fn try_pubkey(&self) -> Result<Pubkey, SignerError>
fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>
fn pubkey(&self) -> Pubkey
fn sign_message(&self, message: &[u8]) -> Signature
impl Debug for dyn Signer
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more
impl PartialEq<dyn Signer + 'static> for dyn Signer
fn eq(&self, other: &dyn Signer) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
self
other
==
[+] Expand attributes#[must_use]pub fn ne(&self, other: &Rhs) -> bool
This method tests for !=.
!=
impl Signer for Keypair
Return the public key for the given keypair
impl Signer for NullSigner
fn try_sign_message(&self, _message: &[u8]) -> Result<Signature, SignerError>
impl Signer for Presigner
impl Signer for RemoteKeypair