[−][src]Struct hypercore::Proof
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]
pub fn index(&self) -> usize
[src]
Access the index
field from the proof.
pub fn nodes(&self) -> &[Node]
[src]
Access the nodes
field from the proof.
pub fn signature(&self) -> Option<&Signature>
[src]
Access the signature
field from the proof.
Trait Implementations
impl Clone for Proof
[src]
impl Debug for Proof
[src]
impl PartialEq<Proof> for Proof
[src]
impl StructuralPartialEq for Proof
[src]
Auto Trait Implementations
impl RefUnwindSafe for Proof
impl Send for Proof
impl Sync for Proof
impl Unpin for Proof
impl UnwindSafe for Proof
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,