Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
sdk: Move signers module into signer module
Browse files Browse the repository at this point in the history
  • Loading branch information
t-nelson committed May 8, 2021
1 parent 4e42d32 commit 18c7db7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Allows macro expansion of `use ::solana_sdk::*` to work within this crate
extern crate self as solana_sdk;

pub use signer::signers;
pub use solana_program::*;

pub mod account;
Expand Down Expand Up @@ -41,7 +42,6 @@ pub mod secp256k1_instruction;
pub mod shred_version;
pub mod signature;
pub mod signer;
pub mod signers;
pub mod stake_weighted_timestamp;
pub mod system_transaction;
pub mod timing;
Expand Down
1 change: 1 addition & 0 deletions sdk/src/signer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use {
pub mod keypair;
pub mod null_signer;
pub mod presigner;
pub mod signers;

#[derive(Debug, Error, PartialEq)]
pub enum SignerError {
Expand Down
1 change: 1 addition & 0 deletions sdk/src/signers.rs → sdk/src/signer/signers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use crate::{
signature::{Signature, Signer, SignerError},
};

/// Convenience trait for working with mixed collections of `Signer`s
pub trait Signers {
fn pubkeys(&self) -> Vec<Pubkey>;
fn try_pubkeys(&self) -> Result<Vec<Pubkey>, SignerError>;
Expand Down

0 comments on commit 18c7db7

Please sign in to comment.