Struct chain_vote::committee::MemberState
source · pub struct MemberState {
sk: MemberSecretKey,
owner_index: usize,
apubs: Vec<GroupElement>,
es: Vec<GroupElement>,
encrypted: Vec<(HybridCiphertext, HybridCiphertext)>,
}
Expand description
Initial state generated by a Member, which include keys for this election
Fields§
§sk: MemberSecretKey
§owner_index: usize
§apubs: Vec<GroupElement>
§es: Vec<GroupElement>
§encrypted: Vec<(HybridCiphertext, HybridCiphertext)>
Implementations§
source§impl MemberState
impl MemberState
sourcepub fn new<R: RngCore + CryptoRng>(
rng: &mut R,
t: usize,
h: &Crs,
committee_pks: &[MemberCommunicationPublicKey],
my: usize
) -> MemberState
pub fn new<R: RngCore + CryptoRng>( rng: &mut R, t: usize, h: &Crs, committee_pks: &[MemberCommunicationPublicKey], my: usize ) -> MemberState
Generate a new member state from random, where the number
pub fn secret_key(&self) -> &MemberSecretKey
pub fn member_secret_key(&self) -> MemberSecretKey
pub fn public_key(&self) -> MemberPublicKey
Trait Implementations§
source§impl Clone for MemberState
impl Clone for MemberState
source§fn clone(&self) -> MemberState
fn clone(&self) -> MemberState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MemberState
impl Send for MemberState
impl Sync for MemberState
impl Unpin for MemberState
impl UnwindSafe for MemberState
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