Struct MerkleProof
pub struct MerkleProof {
pub proofs: Vec<CommitmentProof>,
}
Fields§
§proofs: Vec<CommitmentProof>
Implementations§
§impl MerkleProof
impl MerkleProof
pub fn verify_membership( &self, specs: &[ProofSpec], root: MerkleRoot, keys: MerklePath, value: Vec<u8>, start_index: usize, ) -> Result<(), Error>
pub fn verify_non_membership( &self, specs: &[ProofSpec], root: MerkleRoot, keys: MerklePath, ) -> Result<(), Error>
Trait Implementations§
§impl Clone for MerkleProof
impl Clone for MerkleProof
§fn clone(&self) -> MerkleProof
fn clone(&self) -> MerkleProof
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for MerkleProof
impl Debug for MerkleProof
§impl DomainType for MerkleProof
impl DomainType for MerkleProof
§impl PartialEq for MerkleProof
impl PartialEq for MerkleProof
§impl TryFrom<MerkleProof> for MerkleProof
Convert to ics23::CommitmentProof
The encoding and decoding shouldn’t fail since ics23::CommitmentProof and ibc_proto::ics23::CommitmentProof should be the same
Ref. https://github.com/informalsystems/ibc-rs/issues/853
impl TryFrom<MerkleProof> for MerkleProof
Convert to ics23::CommitmentProof The encoding and decoding shouldn’t fail since ics23::CommitmentProof and ibc_proto::ics23::CommitmentProof should be the same Ref. https://github.com/informalsystems/ibc-rs/issues/853
§fn try_from(
proof: MerkleProof,
) -> Result<MerkleProof, <MerkleProof as TryFrom<MerkleProof>>::Error>
fn try_from( proof: MerkleProof, ) -> Result<MerkleProof, <MerkleProof as TryFrom<MerkleProof>>::Error>
Performs the conversion.
impl StructuralPartialEq for MerkleProof
Auto Trait Implementations§
impl Freeze for MerkleProof
impl RefUnwindSafe for MerkleProof
impl Send for MerkleProof
impl Sync for MerkleProof
impl Unpin for MerkleProof
impl UnwindSafe for MerkleProof
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request