Struct chain_vote::Ballot
source · pub struct Ballot {
vote: EncryptedVote,
fingerprint: ElectionFingerprint,
}
Expand description
Submitted ballot, which contains an always verified vote. Used for early verification of a vote without requiring additional checks down the chain.
Fields§
§vote: EncryptedVote
§fingerprint: ElectionFingerprint
Implementations§
source§impl Ballot
impl Ballot
pub fn try_from_vote_and_proof( vote: EncryptedVote, proof: &ProofOfCorrectVote, crs: &Crs, pk: &ElectionPublicKey ) -> Result<Self, BallotVerificationError>
pub fn vote(&self) -> &EncryptedVote
pub(crate) fn fingerprint(&self) -> &ElectionFingerprint
Trait Implementations§
source§impl PartialEq<Ballot> for Ballot
impl PartialEq<Ballot> for Ballot
impl Eq for Ballot
impl StructuralEq for Ballot
impl StructuralPartialEq for Ballot
Auto Trait Implementations§
impl RefUnwindSafe for Ballot
impl Send for Ballot
impl Sync for Ballot
impl Unpin for Ballot
impl UnwindSafe for Ballot
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