[][src]Trait solana_sdk::signature::KeypairUtil

pub trait KeypairUtil {
    fn try_pubkey(&self) -> Result<Pubkey, Box<dyn Error>>;
fn try_sign_message(
        &self,
        message: &[u8]
    ) -> Result<Signature, Box<dyn Error>>; fn pubkey(&self) -> Pubkey { ... }
fn sign_message(&self, message: &[u8]) -> Signature { ... } }

Required methods

fn try_pubkey(&self) -> Result<Pubkey, Box<dyn Error>>

fn try_sign_message(&self, message: &[u8]) -> Result<Signature, Box<dyn Error>>

Loading content...

Provided methods

fn pubkey(&self) -> Pubkey

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

Loading content...

Implementors

impl KeypairUtil for Keypair[src]

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

Return the public key for the given keypair

impl KeypairUtil for Presigner[src]

Loading content...