mithril_common::crypto_helper

Type Alias ProtocolParameters

source
pub type ProtocolParameters = StmParameters;
Expand description

Aliased Type§

struct ProtocolParameters {
    pub m: u64,
    pub k: u64,
    pub phi_f: f64,
}

Fields§

§m: u64

Security parameter, upper bound on indices.

§k: u64

Quorum parameter.

§phi_f: f64

f in phi(w) = 1 - (1 - f)^w, where w is the stake of a participant..

Trait Implementations§

source§

impl From<ProtocolParameters> for ProtocolParameters

source§

fn from(other: ProtocolParameters) -> Self

Converts to this type from the input type.