Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::avm2::simulation::MockMerkleCheck Class Reference

#include <mock_merkle_check.hpp>

Inheritance diagram for bb::avm2::simulation::MockMerkleCheck:
bb::avm2::simulation::MerkleCheckInterface

Public Member Functions

 MockMerkleCheck ()
 
 ~MockMerkleCheck () override
 
 MOCK_METHOD (void, assert_membership,(const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &root),(override))
 
 MOCK_METHOD (FF, write,(const FF &current_value, const FF &new_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &current_root),(override))
 
- Public Member Functions inherited from bb::avm2::simulation::MerkleCheckInterface
virtual ~MerkleCheckInterface ()=default
 
virtual void assert_membership (const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &root)=0
 
virtual FF write (const FF &current_value, const FF &new_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &current_root)=0
 

Detailed Description

Definition at line 10 of file mock_merkle_check.hpp.

Constructor & Destructor Documentation

◆ MockMerkleCheck()

bb::avm2::simulation::MockMerkleCheck::MockMerkleCheck ( )
default

◆ ~MockMerkleCheck()

bb::avm2::simulation::MockMerkleCheck::~MockMerkleCheck ( )
overridedefault

Member Function Documentation

◆ MOCK_METHOD() [1/2]

bb::avm2::simulation::MockMerkleCheck::MOCK_METHOD ( FF  ,
write  ,
(const FF &current_value, const FF &new_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &current_root)  ,
(override)   
)

◆ MOCK_METHOD() [2/2]

bb::avm2::simulation::MockMerkleCheck::MOCK_METHOD ( void  ,
assert_membership  ,
(const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &root)  ,
(override)   
)

The documentation for this class was generated from the following files: