Trait MKProofTestExtension

Source
pub trait MKProofTestExtension {
    // Required methods
    fn from_leaves<T: Into<MKTreeNode> + Clone>(
        leaves: &[T],
    ) -> StdResult<MKProof>;
    fn from_subset_of_leaves<T: Into<MKTreeNode> + Clone>(
        leaves: &[T],
        leaves_to_verify: &[T],
    ) -> StdResult<MKProof>;
}
Expand description

Extension trait adding test utilities to MKProof

Required Methods§

Source

fn from_leaves<T: Into<MKTreeNode> + Clone>(leaves: &[T]) -> StdResult<MKProof>

TEST ONLY - Build a MKProof based on the given leaves

Source

fn from_subset_of_leaves<T: Into<MKTreeNode> + Clone>( leaves: &[T], leaves_to_verify: &[T], ) -> StdResult<MKProof>

TEST ONLY - Build a MKProof based on the given leaves

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§