referrerpolicy=no-referrer-when-downgrade
bp_beefy

Type Alias MmrProofOf

Source
pub type MmrProofOf<C> = MmrProof<MmrHashOf<C>>;
Expand description

BEEFY MMR proof type used by the given Substrate chain.

Aliased Type§

struct MmrProofOf<C> {
    pub leaf_indices: Vec<u64>,
    pub leaf_count: u64,
    pub items: Vec<<C as ChainWithBeefy>::MmrHash>,
}

Fields§

§leaf_indices: Vec<u64>

The indices of the leaves the proof is for.

§leaf_count: u64

Number of leaves in MMR, when the proof was generated.

§items: Vec<<C as ChainWithBeefy>::MmrHash>

Proof elements (hashes of siblings of inner nodes on the path to the leafs).

Trait Implementations

§

impl<Hash> Clone for LeafProof<Hash>
where Hash: Clone,

§

fn clone(&self) -> LeafProof<Hash>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<Hash> Debug for LeafProof<Hash>
where Hash: Debug,

§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<Hash> Decode for LeafProof<Hash>
where Vec<Hash>: Decode,

§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<LeafProof<Hash>, Error>
where __CodecInputEdqy: Input,

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
§

impl<Hash> Encode for LeafProof<Hash>
where Vec<Hash>: Encode,

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
where __CodecOutputEdqy: Output + ?Sized,

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

impl<Hash> PartialEq for LeafProof<Hash>
where Hash: PartialEq,

§

fn eq(&self, other: &LeafProof<Hash>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<Hash> TypeInfo for LeafProof<Hash>
where Vec<Hash>: TypeInfo + 'static, Hash: TypeInfo + 'static,

§

type Identity = LeafProof<Hash>

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl<Hash> EncodeLike for LeafProof<Hash>
where Vec<Hash>: Encode,

§

impl<Hash> Eq for LeafProof<Hash>
where Hash: Eq,

§

impl<Hash> StructuralPartialEq for LeafProof<Hash>