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§
Sourcefn from_leaves<T: Into<MKTreeNode> + Clone>(leaves: &[T]) -> StdResult<MKProof>
fn from_leaves<T: Into<MKTreeNode> + Clone>(leaves: &[T]) -> StdResult<MKProof>
TEST ONLY
- Build a MKProof based on the given leaves
Sourcefn from_subset_of_leaves<T: Into<MKTreeNode> + Clone>(
leaves: &[T],
leaves_to_verify: &[T],
) -> StdResult<MKProof>
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.