Struct chain_vote::tally::Tally
source · pub struct Tally {
pub votes: Vec<u64>,
}
Expand description
Tally
represents the decrypted tally, with one u64
result for each of the options of the
election.
Fields§
§votes: Vec<u64>
Implementations§
source§impl Tally
impl Tally
sourcepub fn verify(
&self,
encrypted_tally: &EncryptedTally,
pks: &[MemberPublicKey],
decrypt_shares: &[TallyDecryptShare]
) -> bool
pub fn verify( &self, encrypted_tally: &EncryptedTally, pks: &[MemberPublicKey], decrypt_shares: &[TallyDecryptShare] ) -> bool
Verifies that TallyDecryptShare
are correct decryptions of encrypted_tally
for public
keys pks
.
Verifies that the decrypted tally was correctly obtained from the given
EncryptedTally
and TallyDecryptShare
parts.
This can be used for quick online validation for the tallying performed offline.
Trait Implementations§
source§impl PartialEq<Tally> for Tally
impl PartialEq<Tally> for Tally
impl Eq for Tally
impl StructuralEq for Tally
impl StructuralPartialEq for Tally
Auto Trait Implementations§
impl RefUnwindSafe for Tally
impl Send for Tally
impl Sync for Tally
impl Unpin for Tally
impl UnwindSafe for Tally
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