[−][src]Struct cryptoballot::SecretShareTransaction
Transaction 3: SecretShare
The SecretShareTransaction is published by trustees, with one transaction created per trustee.
After the trustee determins that voting is over and all votes may be decrypted, they publish a SecretShareTransaction, revealing the secret-share that was delt to them by the election authority.
Fields
id: Identifierelection: Identifiertrustee_id: Uuidpublic_key: PublicKeyMethods
impl SecretShareTransaction[src]
pub fn new(
election_id: Identifier,
trustee: Trustee,
secret_share: Vec<u8>
) -> Self[src]
election_id: Identifier,
trustee: Trustee,
secret_share: Vec<u8>
) -> Self
Create a new SecretShare Transaction
pub fn build_id(election_id: Identifier, trustee_id: Uuid) -> Identifier[src]
Trait Implementations
impl AsRef<SecretShareTransaction> for SignedTransaction[src]
fn as_ref(&self) -> &SecretShareTransaction[src]
impl Clone for SecretShareTransaction[src]
fn clone(&self) -> SecretShareTransaction[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SecretShareTransaction[src]
impl<'de> Deserialize<'de> for SecretShareTransaction[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for SecretShareTransaction[src]
Auto Trait Implementations
impl RefUnwindSafe for SecretShareTransaction
impl Send for SecretShareTransaction
impl Sync for SecretShareTransaction
impl Unpin for SecretShareTransaction
impl UnwindSafe for SecretShareTransaction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,