pub type ProtocolParameters = StmParameters;
Expand description
Alias of MithrilStm::StmParameters.
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
impl From<ProtocolParameters> for ProtocolParameters
source§fn from(other: ProtocolParameters) -> Self
fn from(other: ProtocolParameters) -> Self
Converts to this type from the input type.