pub struct N3f1;Expand description
Fault model requiring n >= 3f + 1 participants.
Tolerates up to f = (n-1)/3 faults with quorum size q = n - f.
For any two quorums Q1 and Q2, there exists at least one honest participant
in their intersection (since |Q1| + |Q2| > n + f).
§Example
| n | f | quorum |
|---|---|---|
| 4 | 1 | 3 |
| 7 | 2 | 5 |
| 10 | 3 | 7 |
| 13 | 4 | 9 |
Trait Implementations§
Source§impl Faults for N3f1
impl Faults for N3f1
Source§fn max_faults(n: impl ToPrimitive) -> u32
fn max_faults(n: impl ToPrimitive) -> u32
Compute the maximum number of faults that can be tolerated for
n participants. Read moreimpl Copy for N3f1
impl Eq for N3f1
impl StructuralPartialEq for N3f1
Auto Trait Implementations§
impl Freeze for N3f1
impl RefUnwindSafe for N3f1
impl Send for N3f1
impl Sync for N3f1
impl Unpin for N3f1
impl UnwindSafe for N3f1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more