Struct distrand::Secret[][src]

pub struct Secret<T, M> where
    M: Mac
{ /* fields omitted */ }

An individual participant's contribution to a randomly generated number.

Methods

impl<T, M> Secret<T, M> where
    M: Mac
[src]

Returns a new secret with the given value and a randomly generated salt.

impl<T, M> Secret<T, M> where
    M: Mac,
    T: Serialize
[src]

Create a new Commit that can be used to validate a Secret during the reveal phase.

Trait Implementations

impl<T: Debug, M: Debug> Debug for Secret<T, M> where
    M: Mac,
    M::KeySize: Debug
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T, M> Send for Secret<T, M> where
    T: Send,
    <M as Mac>::KeySize: ArrayLength<u8>, 

impl<T, M> Sync for Secret<T, M> where
    T: Sync,
    <M as Mac>::KeySize: ArrayLength<u8>,