[][src]Struct cryptoballot::SecretShareTransaction

pub struct SecretShareTransaction {
    pub id: Identifier,
    pub election: Identifier,
    pub trustee_id: Uuid,
    pub public_key: PublicKey,
    pub secret_share: Vec<u8>,
}

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: PublicKeysecret_share: Vec<u8>

Methods

impl SecretShareTransaction[src]

pub fn new(
    election_id: Identifier,
    trustee: Trustee,
    secret_share: Vec<u8>
) -> Self
[src]

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]

impl Clone for SecretShareTransaction[src]

impl Debug for SecretShareTransaction[src]

impl<'de> Deserialize<'de> for SecretShareTransaction[src]

impl Serialize for SecretShareTransaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,