Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ICMTreeSafeDispatcherTrait

Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeSafeDispatcherTrait

Part of the group: dispatchers

pub trait ICMTreeSafeDispatcherTrait<T>

Trait functions

insert

Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeSafeDispatcherTrait::insert

fn insert(self: T, key: felt252) -> Result<(), Array<felt252>>

remove

Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeSafeDispatcherTrait::remove

fn remove(self: T, key: felt252) -> Result<bool, Array<felt252>>

Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeSafeDispatcherTrait::search

fn search(self: T, key: felt252) -> Result<bool, Array<felt252>>

get_root_hash

Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeSafeDispatcherTrait::get_root_hash

fn get_root_hash(self: T) -> Result<felt252, Array<felt252>>

generate_proof

Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeSafeDispatcherTrait::generate_proof

fn generate_proof(self: T, key: felt252) -> Result<ProofData, Array<felt252>>

verify_proof

Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTreeSafeDispatcherTrait::verify_proof

fn verify_proof(
    self: T, proof: ProofData, root_hash: felt252, key: felt252,
) -> Result<bool, Array<felt252>>