hypercore 0.1.4

Secure, distributed, append-only log
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// A link to which node checks another node.
pub struct Proof {
  /// Index of the node this was verified by.
  pub verified_by: usize,

  /// Nodes that are verified.
  pub nodes: Vec<usize>,
}

impl Proof {
  /// Create a new [`Proof`] instance.
  pub fn new(verified_by: usize, nodes: Vec<usize>) -> Self {
    Proof {
      nodes,
      verified_by,
    }
  }
}