CMTNodeStorage
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::CMTNodeStorage
[derive(Drop, Copy, Debug, Serde, starknet::Store)]
pub struct CMTNodeStorage {
pub key: felt252,
pub priority: felt252,
pub merkle_hash: felt252,
pub left_child_index: u64,
pub right_child_index: u64,
}
Members
key
The key value for BST ordering and identification
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::CMTNodeStorage::key
pub key: felt252
priority
Randomized priority for heap property (derived from key)
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::CMTNodeStorage::priority
pub priority: felt252
merkle_hash
Merkle hash commitment to this node and its children
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::CMTNodeStorage::merkle_hash
pub merkle_hash: felt252
left_child_index
Storage index of the left child node (0 = no child)
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::CMTNodeStorage::left_child_index
pub left_child_index: u64
right_child_index
Storage index of the right child node (0 = no child)
Fully qualified path: cartesian_merkle_tree::components::cmtree_component::CMTNodeStorage::right_child_index
pub right_child_index: u64