Struct elastic_elgamal::app::ChoiceParams
source · pub struct ChoiceParams<G: Group, S: ProveSum<G>> { /* private fields */ }
Expand description
Parameters of an EncryptedChoice
polling.
Implementations§
source§impl<G: Group, S: ProveSum<G>> ChoiceParams<G, S>
impl<G: Group, S: ProveSum<G>> ChoiceParams<G, S>
sourcepub fn receiver(&self) -> &PublicKey<G>
pub fn receiver(&self) -> &PublicKey<G>
Returns the public key for which the EncryptedChoice
are encrypted.
sourcepub fn options_count(&self) -> usize
pub fn options_count(&self) -> usize
Returns the number of options in these parameters.
source§impl<G: Group> ChoiceParams<G, SingleChoice>
impl<G: Group> ChoiceParams<G, SingleChoice>
source§impl<G: Group> ChoiceParams<G, MultiChoice>
impl<G: Group> ChoiceParams<G, MultiChoice>
Trait Implementations§
Auto Trait Implementations§
impl<G, S> Freeze for ChoiceParams<G, S>
impl<G, S> RefUnwindSafe for ChoiceParams<G, S>
impl<G, S> Send for ChoiceParams<G, S>
impl<G, S> Sync for ChoiceParams<G, S>
impl<G, S> Unpin for ChoiceParams<G, S>
impl<G, S> UnwindSafe for ChoiceParams<G, S>
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