Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <nullifier_tree.hpp>
Public Types | |
typedef uint256_t | index_t |
![]() | |
typedef uint256_t | index_t |
Public Member Functions | |
NullifierTree (Store &store, size_t depth, size_t initial_size=1, uint8_t tree_id=0) | |
NullifierTree (NullifierTree const &other)=delete | |
NullifierTree (NullifierTree &&other) | |
~NullifierTree () | |
fr | update_element (fr const &value) |
![]() | |
MerkleTree (Store &store, size_t depth, uint8_t tree_id=0) | |
MerkleTree (MerkleTree const &other)=delete | |
MerkleTree (MerkleTree &&other) | |
~MerkleTree () | |
fr_hash_path | get_hash_path (index_t index) |
fr_sibling_path | get_sibling_path (index_t index) |
fr | update_element (index_t index, fr const &value) |
fr | root () const |
size_t | depth () const |
index_t | size () const |
Private Attributes | |
std::vector< WrappedNullifierLeaf< HashingPolicy > > | leaves |
Additional Inherited Members | |
![]() | |
void | load_metadata () |
fr | update_element (fr const &root, fr const &value, index_t index, size_t height) |
fr | get_element (fr const &root, index_t index, size_t height) |
fr | compute_zero_path_hash (size_t height, index_t index, fr const &value) |
fr | binary_put (index_t a_index, fr const &a, fr const &b, size_t height) |
fr | fork_stump (fr const &value1, index_t index1, fr const &value2, index_t index2, size_t height, size_t stump_height) |
void | put (fr const &key, fr const &left, fr const &right) |
void | put_stump (fr const &key, index_t index, fr const &value) |
void | remove (fr const &key) |
![]() | |
Store & | store_ |
std::vector< fr > | zero_hashes_ |
size_t | depth_ |
uint8_t | tree_id_ |
Definition at line 14 of file nullifier_tree.hpp.
typedef uint256_t bb::crypto::merkle_tree::NullifierTree< Store, HashingPolicy >::index_t |
Definition at line 16 of file nullifier_tree.hpp.
bb::crypto::merkle_tree::NullifierTree< Store, HashingPolicy >::NullifierTree | ( | Store & | store, |
size_t | depth, | ||
size_t | initial_size = 1 , |
||
uint8_t | tree_id = 0 |
||
) |
Definition at line 22 of file nullifier_tree.cpp.
|
delete |
bb::crypto::merkle_tree::NullifierTree< Store, HashingPolicy >::NullifierTree | ( | NullifierTree< Store, HashingPolicy > && | other | ) |
Definition at line 53 of file nullifier_tree.cpp.
bb::crypto::merkle_tree::NullifierTree< Store, HashingPolicy >::~NullifierTree | ( | ) |
Definition at line 57 of file nullifier_tree.cpp.
fr bb::crypto::merkle_tree::NullifierTree< Store, HashingPolicy >::update_element | ( | fr const & | value | ) |
Definition at line 60 of file nullifier_tree.cpp.
|
private |
Definition at line 40 of file nullifier_tree.hpp.