Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <alu_arithmetic.hpp>
Public Member Functions | |
ALU_arithmetic_gadget (tinyram_protoboard< FieldT > &pb, const pb_variable_array< FieldT > &opcode_indicators, const word_variable_gadget< FieldT > &desval, const word_variable_gadget< FieldT > &arg1val, const word_variable_gadget< FieldT > &arg2val, const pb_variable< FieldT > &flag, const pb_variable< FieldT > &result, const pb_variable< FieldT > &result_flag, const std::string &annotation_prefix="") | |
![]() | |
tinyram_standard_gadget (tinyram_protoboard< FieldT > &pb, const std::string &annotation_prefix="") | |
virtual void | generate_r1cs_constraints ()=0 |
virtual void | generate_r1cs_witness ()=0 |
![]() | |
tinyram_gadget (tinyram_protoboard< FieldT > &pb, const std::string &annotation_prefix="") | |
![]() | |
gadget (protoboard< FieldT > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
const pb_variable_array< FieldT > | opcode_indicators |
const word_variable_gadget< FieldT > | desval |
const word_variable_gadget< FieldT > | arg1val |
const word_variable_gadget< FieldT > | arg2val |
const pb_variable< FieldT > | flag |
const pb_variable< FieldT > | result |
const pb_variable< FieldT > | result_flag |
Additional Inherited Members | |
![]() | |
tinyram_protoboard< FieldT > & | pb |
![]() | |
protoboard< FieldT > & | pb |
const std::string | annotation_prefix |
Definition at line 26 of file alu_arithmetic.hpp.
|
inline |
Definition at line 37 of file alu_arithmetic.hpp.
const word_variable_gadget<FieldT> libsnark::ALU_arithmetic_gadget< FieldT >::arg1val |
Definition at line 31 of file alu_arithmetic.hpp.
const word_variable_gadget<FieldT> libsnark::ALU_arithmetic_gadget< FieldT >::arg2val |
Definition at line 32 of file alu_arithmetic.hpp.
const word_variable_gadget<FieldT> libsnark::ALU_arithmetic_gadget< FieldT >::desval |
Definition at line 30 of file alu_arithmetic.hpp.
const pb_variable<FieldT> libsnark::ALU_arithmetic_gadget< FieldT >::flag |
Definition at line 33 of file alu_arithmetic.hpp.
const pb_variable_array<FieldT> libsnark::ALU_arithmetic_gadget< FieldT >::opcode_indicators |
Definition at line 29 of file alu_arithmetic.hpp.
const pb_variable<FieldT> libsnark::ALU_arithmetic_gadget< FieldT >::result |
Definition at line 34 of file alu_arithmetic.hpp.
const pb_variable<FieldT> libsnark::ALU_arithmetic_gadget< FieldT >::result_flag |
Definition at line 35 of file alu_arithmetic.hpp.