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§

Implementations on Foreign Types§

source§

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

source§

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

source§

impl Signers for [Box<dyn Signer>]

source§

impl Signers for [&dyn Signer; 0]

source§

impl Signers for [&dyn Signer; 3]

source§

impl Signers for [&dyn Signer; 1]

source§

impl Signers for Vec<Box<dyn Signer>>

source§

impl Signers for Vec<Arc<dyn Signer>>

source§

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

source§

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

source§

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

source§

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

source§

impl Signers for Vec<&dyn Signer>

source§

impl Signers for [&dyn Signer]

source§

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

source§

impl Signers for [Arc<dyn Signer>]

source§

impl Signers for [&dyn Signer; 4]

source§

impl Signers for [&dyn Signer; 2]

Implementors§