Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <variable.hpp>
Public Member Functions | |
R1P_Elem (const Fp &elem) | |
virtual R1P_Elem & | operator= (const FConst &src) |
virtual R1P_Elem & | operator= (const long n) |
virtual ::std::string | asString () const |
virtual FieldType | fieldType () const |
virtual R1P_Elem & | operator+= (const FElemInterface &other) |
virtual R1P_Elem & | operator-= (const FElemInterface &other) |
virtual R1P_Elem & | operator*= (const FElemInterface &other) |
virtual bool | operator== (const FElemInterface &other) const |
virtual bool | operator== (const FConst &other) const |
virtual bool | operator== (const long n) const |
virtual FElemInterfacePtr | clone () const |
virtual FElemInterfacePtr | inverse () const |
long | asLong () const |
int | getBit (unsigned int i) const |
virtual FElemInterface & | power (long exponent) |
![]() | |
virtual | ~FElemInterface () |
Friends | |
class | FElem |
class | GadgetLibAdapter |
Holds elements of a prime characteristic field. Currently implemented using the gmp (Linux) and mpir (Windows) libraries.
Definition at line 245 of file variable.hpp.
|
inlineexplicit |
|
virtual |
Implements gadgetlib2::FElemInterface.
Definition at line 253 of file variable.cpp.
|
inlinevirtual |
Implements gadgetlib2::FElemInterface.
Definition at line 262 of file variable.hpp.
|
inlinevirtual |
Implements gadgetlib2::FElemInterface.
Definition at line 277 of file variable.hpp.
|
inlinevirtual |
|
inlinevirtual |
Implements gadgetlib2::FElemInterface.
Definition at line 285 of file variable.hpp.
|
virtual |
Implements gadgetlib2::FElemInterface.
Definition at line 248 of file variable.cpp.
|
virtual |
Implements gadgetlib2::FElemInterface.
Definition at line 223 of file variable.cpp.
|
virtual |
Implements gadgetlib2::FElemInterface.
Definition at line 199 of file variable.cpp.
|
virtual |
Implements gadgetlib2::FElemInterface.
Definition at line 211 of file variable.cpp.
FConst will be field agnostic, allowing us to hold values such as 0 and 1 without knowing the underlying field. This assignment operator will convert to the correct field element.
Implements gadgetlib2::FElemInterface.
Definition at line 252 of file variable.hpp.
|
inlinevirtual |
Implements gadgetlib2::FElemInterface.
Definition at line 257 of file variable.hpp.
|
inlinevirtual |
Implements gadgetlib2::FElemInterface.
Definition at line 271 of file variable.hpp.
|
virtual |
|
inlinevirtual |
This operator is not always mathematically well defined. 'n' will be checked in runtime for fields in which integer values are not well defined.
Implements gadgetlib2::FElemInterface.
Definition at line 275 of file variable.hpp.
|
inlinevirtual |
Implements gadgetlib2::FElemInterface.
Definition at line 286 of file variable.hpp.
|
friend |
Definition at line 292 of file variable.hpp.
|
friend |
Definition at line 293 of file variable.hpp.