Barretenberg
The ZK-SNARK library at the core of Aztec
|
Wrapper for the Nullifier leaf class that allows for 0 values. More...
#include <nullifier_leaf.hpp>
Public Member Functions | |
WrappedNullifierLeaf (indexed_nullifier_leaf value) | |
WrappedNullifierLeaf () | |
bool | operator== (WrappedNullifierLeaf const &) const =default |
bool | has_value () const |
Pass through the underlying std::optional method. | |
indexed_nullifier_leaf | unwrap () const |
Return the wrapped nullifier_leaf object. | |
void | set (indexed_nullifier_leaf value) |
Set the wrapped nullifier_leaf object value. | |
bb::fr | hash () const |
Return the hash of the wrapped object, other return the zero hash of 0. | |
Static Public Member Functions | |
static WrappedNullifierLeaf< HashingPolicy > | zero () |
Generate a zero leaf (call the constructor with no arguments) | |
Private Attributes | |
std::optional< indexed_nullifier_leaf > | data |
Wrapper for the Nullifier leaf class that allows for 0 values.
Definition at line 42 of file nullifier_leaf.hpp.
|
inline |
Definition at line 46 of file nullifier_leaf.hpp.
|
inline |
Definition at line 50 of file nullifier_leaf.hpp.
|
inline |
Pass through the underlying std::optional method.
Definition at line 62 of file nullifier_leaf.hpp.
|
inline |
Return the hash of the wrapped object, other return the zero hash of 0.
Definition at line 83 of file nullifier_leaf.hpp.
|
default |
|
inline |
Set the wrapped nullifier_leaf object value.
value |
Definition at line 76 of file nullifier_leaf.hpp.
|
inline |
Return the wrapped nullifier_leaf object.
Definition at line 69 of file nullifier_leaf.hpp.
|
inlinestatic |
Generate a zero leaf (call the constructor with no arguments)
Definition at line 93 of file nullifier_leaf.hpp.
|
private |
Definition at line 97 of file nullifier_leaf.hpp.