viewstamped-replication 0.9.0

A Rust-based implementation of the Viewstamped Replication consensus protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
use serde::{Deserialize, Serialize};

#[derive(Copy, Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct Nonce(u128);

impl Default for Nonce {
    fn default() -> Self {
        Self(uuid::Uuid::new_v4().as_u128())
    }
}