aztec-nr - noir_aztec::protocol::merkle_tree::leaf_preimage

Trait IndexedTreeLeafPreimage

pub trait IndexedTreeLeafPreimage<Value>:
    Empty
    + LeafPreimage
{
    // Required methods
    pub fn get_next_key(self) -> Field;
    pub fn points_to_infinity(self) -> bool;
    pub fn update_pointers(self, next_key: Field, next_index: Field) -> Self;
    pub fn update_value(self, value: Value) -> Self;
    pub fn build_insertion_leaf(value: Value, low_leaf: Self) -> Self;
}

Required methods

pub fn get_next_key(self) -> Field pub fn points_to_infinity(self) -> bool pub fn update_pointers(self, next_key: Field, next_index: Field) -> Self pub fn update_value(self, value: Value) -> Self pub fn build_insertion_leaf(value: Value, low_leaf: Self) -> Self

Implementors

impl IndexedTreeLeafPreimage<Field> for NullifierLeafPreimage

impl IndexedTreeLeafPreimage<PublicDataTreeLeaf> for PublicDataTreeLeafPreimage

impl IndexedTreeLeafPreimage<Field> for TestLeafPreimage