hbbft/src/agreement.rs

16 lines
298 B
Rust
Raw Normal View History

//! Binary Byzantine agreement protocol from a common coin protocol.
pub struct Agreement {
input: Option<bool>
}
impl Agreement {
pub fn get_input(&self) -> Option<bool> {
self.input
}
pub fn set_input(&mut self, input: bool) {
self.input = Some(input);
}
}