[][src]Struct hypercore::Proof

pub struct Proof {
    pub index: u64,
    pub nodes: Vec<Node>,
    pub signature: Option<Signature>,
}

A merkle proof for an index, created by the .proof() method.

Fields

index: u64

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.

Implementations

impl Proof[src]

pub fn index(&self) -> u64[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,