pub struct CommitProof {
pub root: CommitHash,
pub proof: MerkleProof<Sha256>,
pub length: usize,
pub indices: Vec<usize>,
}Expand description
Represents a root hash and a proof of certain nodes.
Fields§
§root: CommitHashRoot hash.
proof: MerkleProof<Sha256>The merkle proof.
length: usizeThe length of the tree.
indices: Vec<usize>Indices to prove.
Implementations§
Source§impl CommitProof
impl CommitProof
Sourcepub fn root(&self) -> &CommitHash
pub fn root(&self) -> &CommitHash
Root hash for the proof.
Trait Implementations§
Source§impl Clone for CommitProof
impl Clone for CommitProof
Source§impl Debug for CommitProof
impl Debug for CommitProof
Source§impl Default for CommitProof
impl Default for CommitProof
Source§impl From<CommitProof> for (CommitHash, usize)
impl From<CommitProof> for (CommitHash, usize)
Source§fn from(value: CommitProof) -> Self
fn from(value: CommitProof) -> Self
Converts to this type from the input type.
Source§impl From<CommitProof> for CommitHash
impl From<CommitProof> for CommitHash
Source§fn from(value: CommitProof) -> Self
fn from(value: CommitProof) -> Self
Converts to this type from the input type.
Source§impl Hash for CommitProof
impl Hash for CommitProof
Source§impl PartialEq for CommitProof
impl PartialEq for CommitProof
impl Eq for CommitProof
Auto Trait Implementations§
impl Freeze for CommitProof
impl RefUnwindSafe for CommitProof
impl Send for CommitProof
impl Sync for CommitProof
impl Unpin for CommitProof
impl UnwindSafe for CommitProof
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more