Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ICMTree

Fully qualified path: cartesian_merkle_tree::components::cmtree_component::ICMTree

pub trait ICMTree<TContractState>

Trait functions

insert

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

fn insert(ref self: TContractState, key: felt252)

remove

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

fn remove(ref self: TContractState, key: felt252) -> bool

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

fn search(self: @TContractState, key: felt252) -> bool

get_root_hash

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

fn get_root_hash(self: @TContractState) -> felt252

generate_proof

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

fn generate_proof(self: @TContractState, key: felt252) -> ProofData

verify_proof

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

fn verify_proof(self: @TContractState, proof: ProofData, root_hash: felt252, key: felt252) -> bool