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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)