Struct hypercore::Proof [−][src]
A merkle proof for an index, created by the .proof()
method.
Fields
index: usize
The index to which this proof corresponds.
nodes: Vec<Node>
Nodes that verify the index you passed.
signature: Option<Signature>
An ed25519
signature, guaranteeing the integrity of the nodes.
Methods
impl Proof
[src]
impl Proof
pub fn index(&self) -> usize
[src]
pub fn index(&self) -> usize
Access the index
field from the proof.
pub fn nodes(&self) -> &[Node]
[src]
pub fn nodes(&self) -> &[Node]
Access the nodes
field from the proof.
pub fn signature(&self) -> Option<&Signature>
[src]
pub fn signature(&self) -> Option<&Signature>
Access the signature
field from the proof.
Trait Implementations
impl Debug for Proof
[src]
impl Debug for Proof
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Proof
[src]
impl PartialEq for Proof
fn eq(&self, other: &Proof) -> bool
[src]
fn eq(&self, other: &Proof) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Proof) -> bool
[src]
fn ne(&self, other: &Proof) -> bool
This method tests for !=
.
impl Clone for Proof
[src]
impl Clone for Proof