Trait solana_sdk::signature::Signable[][src]

pub trait Signable {
    fn pubkey(&self) -> Pubkey;
fn signable_data(&self) -> Cow<'_, [u8]>;
fn get_signature(&self) -> Signature;
fn set_signature(&mut self, signature: Signature); fn sign(&mut self, keypair: &Keypair) { ... }
fn verify(&self) -> bool { ... } }

Required methods

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

fn signable_data(&self) -> Cow<'_, [u8]>[src]

fn get_signature(&self) -> Signature[src]

fn set_signature(&mut self, signature: Signature)[src]

Loading content...

Provided methods

fn sign(&mut self, keypair: &Keypair)[src]

fn verify(&self) -> bool[src]

Loading content...

Implementors

Loading content...