Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

EdgeNodeTrait

Fully qualified path: alexandria_merkle_tree::storage_proof::EdgeNodeTrait

pub trait EdgeNodeTrait

Trait functions

new

Creates a new EdgeNode with the specified path, child hash, and path length

Arguments

  • path - The compressed path as a felt252 value
  • child - Hash of the child node at the end of this path
  • length - Length of the compressed path in bits

Returns

  • EdgeNode - A new EdgeNode instance with the specified parameters

Fully qualified path: alexandria_merkle_tree::storage_proof::EdgeNodeTrait::new

fn new(path: felt252, child: felt252, length: u8) -> EdgeNode