Trait solana_sdk::signature::Signer[][src]

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 { ... } }

Required methods

fn try_pubkey(&self) -> Result<Pubkey, SignerError>[src]

fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>[src]

Loading content...

Provided methods

fn pubkey(&self) -> Pubkey[src]

fn sign_message(&self, message: &[u8]) -> Signature[src]

Loading content...

Trait Implementations

impl Debug for dyn Signer[src]

impl PartialEq<dyn Signer + 'static> for dyn Signer[src]

Implementors

impl Signer for Keypair[src]

fn pubkey(&self) -> Pubkey[src]

Return the public key for the given keypair

impl Signer for NullSigner[src]

impl Signer for Presigner[src]

Loading content...