beekem 0.5.0

BeeKEM: a concurrent variant of TreeKEM for Continuous Group Key Agreement
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Fork/merge traits for transactional operations.

/// Synchronously fork a data structure.
pub trait Fork {
    /// The forked variant of the data structure.
    type Forked;

    /// Fork the data structure.
    fn fork(&self) -> Self::Forked;
}

/// Synchronously merge a fork back into its original data structure.
pub trait Merge: Fork {
    /// Consume the fork and merge it back into the original data structure.
    fn merge(&mut self, fork: Self::Forked);
}