[][src]Struct cryptoballot::Trustee

pub struct Trustee {
    pub id: Uuid,
    pub public_key: PublicKey,
}

A trustee is responsible for safeguarding a secret share (a portion of the secret vote decryption key), distributed by the election authority via Shamir Secret Sharing.

Most elections will have a handful of trustees (between 3 and 30), with a quorum being set to about 2/3 the total number of trustees. Any quorum of trustees may decrypt the votes.

Fields

id: Uuidpublic_key: PublicKey

Methods

impl Trustee[src]

pub fn new() -> (Self, SecretKey)[src]

Create a new trustee

Trait Implementations

impl Clone for Trustee[src]

impl Debug for Trustee[src]

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

impl Serialize for Trustee[src]

Auto Trait Implementations

impl RefUnwindSafe for Trustee

impl Send for Trustee

impl Sync for Trustee

impl Unpin for Trustee

impl UnwindSafe for Trustee

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>,