ICMTreeDispatcherTrait
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeDispatcherTrait
Part of the group: dispatchers
pub trait ICMTreeDispatcherTrait<T>
Trait functions
insert
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeDispatcherTrait::insert
fn insert(self: T, key: felt252)
remove
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeDispatcherTrait::remove
fn remove(self: T, key: felt252) -> bool
search
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeDispatcherTrait::search
fn search(self: T, key: felt252) -> bool
get_root_hash
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeDispatcherTrait::get_root_hash
fn get_root_hash(self: T) -> felt252
generate_proof
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeDispatcherTrait::generate_proof
fn generate_proof(self: T, key: felt252) -> ProofData
verify_proof
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeDispatcherTrait::verify_proof
fn verify_proof(self: T, proof: ProofData, root_hash: felt252, key: felt252) -> bool