Struct chain_vote::tally::ElectionFingerprint
source · pub(crate) struct ElectionFingerprint([u8; 32]);
Expand description
An encrypted vote is only valid for specific values of the election public key and crs. It may be useful to check early if a vote is valid before actually adding it to the tally, and it is therefore important to verify that it is later added to an encrypted tally that is consistent with the election public key and crs it was verified against. To reduce memory occupation, we use a hash of those two values.
Tuple Fields§
§0: [u8; 32]
Implementations§
Trait Implementations§
source§impl Clone for ElectionFingerprint
impl Clone for ElectionFingerprint
source§fn clone(&self) -> ElectionFingerprint
fn clone(&self) -> ElectionFingerprint
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 moresource§impl Debug for ElectionFingerprint
impl Debug for ElectionFingerprint
source§impl From<(&ElectionPublicKey, &GroupElement)> for ElectionFingerprint
impl From<(&ElectionPublicKey, &GroupElement)> for ElectionFingerprint
source§fn from(from: (&ElectionPublicKey, &Crs)) -> Self
fn from(from: (&ElectionPublicKey, &Crs)) -> Self
Converts to this type from the input type.
source§impl PartialEq<ElectionFingerprint> for ElectionFingerprint
impl PartialEq<ElectionFingerprint> for ElectionFingerprint
source§fn eq(&self, other: &ElectionFingerprint) -> bool
fn eq(&self, other: &ElectionFingerprint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ElectionFingerprint
impl Eq for ElectionFingerprint
impl StructuralEq for ElectionFingerprint
impl StructuralPartialEq for ElectionFingerprint
Auto Trait Implementations§
impl RefUnwindSafe for ElectionFingerprint
impl Send for ElectionFingerprint
impl Sync for ElectionFingerprint
impl Unpin for ElectionFingerprint
impl UnwindSafe for ElectionFingerprint
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