Module snarkvm_wasm::prelude [−][src]
Structs
| AllocatedBit | Represents a variable in the constraint system which is guaranteed to be either zero or one. |
| BooleanInputGadget | Conversion of field elements by converting them to boolean sequences Used by Groth16 and Gm17 |
Enums
| Boolean | This is a boolean value which may be either a constant or
an interpretation of an |
| SignedIntegerError | |
| UnsignedIntegerError |
Traits
| Add | Returns addition of |
| AllocBytesGadget | |
| AllocGadget | |
| CRHGadget | |
| CommitmentGadget | |
| ComparatorGadget | |
| CompressedGroupGadget | |
| CondSelectGadget | If condition is |
| ConditionalEqGadget | If |
| ConditionalOrEqualsGadget | |
| Div | Returns division of |
| EncryptionGadget | |
| EqGadget | |
| EvaluateEqGadget | |
| EvaluateLtGadget | |
| FieldGadget | |
| FullAdder | Single bit binary adder with carry bit https://en.wikipedia.org/wiki/Adder_(electronics)#Full_adder sum = (a XOR b) XOR carry carry = a AND b OR carry AND (a XOR b) Returns (sum, carry) |
| GroupGadget | |
| Integer | The interface for a singed or unsigned integer gadget. |
| MaskedCRHGadget | |
| Mul | Returns multiplication of |
| NEqGadget | |
| Neg | Returns a negated representation of |
| OrEqualsGadget | |
| PRFGadget | |
| PairingGadget | |
| Pow | Returns exponentiation of |
| RippleCarryAdder | Returns the bitwise sum of a n-bit number with carry bit |
| SNARKGadget | This implements constraints for SNARK verifiers. |
| SNARKVerifierGadget | |
| SignExtend | Sign extends an array of bits to the desired length. Expects least significant bit first |
| SignaturePublicKeyRandomizationGadget | |
| Sub | Returns subtraction of |
| ThreeBitCondNegLookupGadget | Uses three bits to perform a lookup into a table, where the last bit performs negation |
| ToBitsBEGadget | |
| ToBitsLEGadget | |
| ToBytesGadget | |
| ToConstraintFieldGadget | Specifies how to convert a variable of type |
| TwoBitLookupGadget | Uses two bits to perform a lookup into a table |
| Xor | Performs a bitwise XOR operation between |