Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include <binary_operation.hpp>
Public Member Functions | |
xor_rot_gadget (libsnark::protoboard< FieldT > &pb, const libsnark::pb_variable_array< FieldT > &a, const libsnark::pb_variable_array< FieldT > &b, const size_t shift, const libsnark::pb_variable_array< FieldT > &res, const std::string &annotation_prefix="xor_rot_gadget") | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
Public Attributes | |
libsnark::pb_variable_array< FieldT > | res |
xor_rot_gadget computes a XOR b and rotate it by shift this gadget does not ensure the booleaness of the inputs however given the inputs are boolean, the output is automatically boolean
Definition at line 71 of file binary_operation.hpp.
libzeth::xor_rot_gadget< FieldT >::xor_rot_gadget | ( | libsnark::protoboard< FieldT > & | pb, |
const libsnark::pb_variable_array< FieldT > & | a, | ||
const libsnark::pb_variable_array< FieldT > & | b, | ||
const size_t | shift, | ||
const libsnark::pb_variable_array< FieldT > & | res, | ||
const std::string & | annotation_prefix = "xor_rot_gadget< FieldT >" |
||
) |
void libzeth::xor_rot_gadget< FieldT >::generate_r1cs_constraints | ( | ) |
void libzeth::xor_rot_gadget< FieldT >::generate_r1cs_witness | ( | ) |
libsnark::pb_variable_array<FieldT> libzeth::xor_rot_gadget< FieldT >::res |
Definition at line 79 of file binary_operation.hpp.