solana_sdk::signer::signers

Trait Signers

source
pub trait Signers {
    // Required methods
    fn pubkeys(&self) -> Vec<Pubkey>;
    fn try_pubkeys(&self) -> Result<Vec<Pubkey>, SignerError>;
    fn sign_message(&self, message: &[u8]) -> Vec<Signature>;
    fn try_sign_message(
        &self,
        message: &[u8],
    ) -> Result<Vec<Signature>, SignerError>;
    fn is_interactive(&self) -> bool;
}
Expand description

Convenience trait for working with mixed collections of Signers

Required Methods§

source

fn pubkeys(&self) -> Vec<Pubkey>

source

fn try_pubkeys(&self) -> Result<Vec<Pubkey>, SignerError>

source

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

source

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

source

fn is_interactive(&self) -> bool

Implementations on Foreign Types§

source§

impl Signers for Vec<&dyn Signer>

source§

impl Signers for Vec<Box<dyn Signer>>

source§

impl Signers for Vec<Arc<dyn Signer>>

source§

impl Signers for [&dyn Signer; 0]

source§

impl Signers for [&dyn Signer; 1]

source§

impl Signers for [&dyn Signer; 2]

source§

impl Signers for [&dyn Signer; 3]

source§

impl Signers for [&dyn Signer; 4]

source§

impl Signers for [&dyn Signer]

source§

impl Signers for [Box<dyn Signer>]

source§

impl Signers for [Arc<dyn Signer>; 0]

source§

impl Signers for [Arc<dyn Signer>; 1]

source§

impl Signers for [Arc<dyn Signer>; 2]

source§

impl Signers for [Arc<dyn Signer>; 3]

source§

impl Signers for [Arc<dyn Signer>; 4]

source§

impl Signers for [Arc<dyn Signer>]

source§

impl<T: Signer> Signers for Vec<&T>

source§

impl<T: Signer> Signers for [&T; 0]

source§

impl<T: Signer> Signers for [&T; 1]

source§

impl<T: Signer> Signers for [&T; 2]

source§

impl<T: Signer> Signers for [&T; 3]

source§

impl<T: Signer> Signers for [&T; 4]

source§

impl<T: Signer> Signers for [&T]

Implementors§