Struct chain_impl_mockchain::testing::data::vote::CommitteeMembersManager
source · pub struct CommitteeMembersManager {
members: Vec<CommitteeMember>,
crs: Crs,
}
Fields§
§members: Vec<CommitteeMember>
§crs: Crs
Implementations§
source§impl CommitteeMembersManager
impl CommitteeMembersManager
pub fn new( rng: &mut (impl RngCore + CryptoRng), crs_seed: &[u8], threshold: usize, members_no: usize ) -> Self
pub fn members(&self) -> &[CommitteeMember]
pub fn members_keys(&self) -> Vec<MemberPublicKey>
pub fn election_pk(&self) -> ElectionPublicKey
pub fn crs(&self) -> &Crs
Auto Trait Implementations§
impl RefUnwindSafe for CommitteeMembersManager
impl Send for CommitteeMembersManager
impl Sync for CommitteeMembersManager
impl Unpin for CommitteeMembersManager
impl UnwindSafe for CommitteeMembersManager
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more