1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! # Merkle Tally Tree
//!
//! `tallytree` implements
//! [merkle tally tree](http://bitcoinunlimited.net/blockchain_voting).
//!
//! This is an implementation of Merkle Tally Tree in Rust. Merkle Tally Trees
//! provide an efficient tally of an electronic vote. It scales to millions of
//! votes, while still being able to prove efficiently to every voter that the
//! tally was fair. Using merkle tally tree, you can create:
//!
//! - Efficient proof that a vote was tallied in a result (vote included).
//! - Efficient proof that a vote was not tallied in a result (vote excluded).
//! - Efficient proof of number of ballots included in the tally (no ballot withholding).
extern crate test;
/// Functions to generate a merkle tally tree.
/// Functions for navigating the merkle tally tree.
/// Node in a merkle tally tree.
/// Generate and validate proofs using the merkle tally tree.
/// Serialize nodes and proofs
/// Functions for tallying votes
/// Functions for string conversions.
/// Functions used for tests and benchmarks.
/// Functions for hashing nodes in the merkle tally tree.
/// A reference to a vote.
pub type VoteReference = ;
use crateNodeRef;
/// How to treat Merkle tree (in)consistency