hashseq 0.1.0

A BFT Sequence CRDT suitable for unpermissioned networks with unbounded number of collaborators.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use ::hashseq::HashSeq;

fn main() {
    let mut seq = HashSeq::default();

    seq.insert(0, 'a');
    seq.insert(1, 'b');
    seq.insert(2, 'c');

    let result: String = seq.iter().collect();
    assert_eq!(result, "abc");
    println!("result of inserting 'a', 'b', 'c': {}", result);
}