|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
ECDSA constraints. More...
#include <ecdsa_constraints.hpp>
Public Attributes | |
| bb::CurveType | type |
| std::array< uint32_t, 32 > | hashed_message |
| std::array< uint32_t, 64 > | signature |
| std::array< uint32_t, 32 > | pub_x_indices |
| std::array< uint32_t, 32 > | pub_y_indices |
| WitnessOrConstant< bb::fr > | predicate |
| uint32_t | result |
Friends | |
| bool | operator== (EcdsaConstraint const &lhs, EcdsaConstraint const &rhs)=default |
ECDSA constraints.
ECDSA constraints have seven components:
type, the curve type used to distinguish which curve the ECDSA constraint is overhashed_message, an array of length 32 representing the witness indices of the byte representation of the hash of the message for which the signature must be verifiedsignature, an array of length 64 representing the witness indices of the signature \((r, s)\) which must be verified. The components are represented as big-endian, 32-byte numbers.pub_x_indices, an array of length 32 representing the witness indices of the byte representation the x coordinate of the public key against which the signature should be verified.pub_y_indices, an array of length 32 representing the witness indices of the byte representation the y coordinate of the public key against which the signature should be verified.result, an array of length 1 representing the witness index of the expected result of the signature verification.predicate, a boolean witness (or constant) indicating whether the constraint should be disabled or not. If the predicate is witness false, then the constraint is disabled, i.e it must not fail and can return whatever. When predicate is set to witness false, we override some values to ensure that all the circuit constraints are satisfied:Definition at line 39 of file ecdsa_constraints.hpp.
|
friend |
| std::array<uint32_t, 32> acir_format::EcdsaConstraint::hashed_message |
Definition at line 43 of file ecdsa_constraints.hpp.
| WitnessOrConstant<bb::fr> acir_format::EcdsaConstraint::predicate |
Definition at line 57 of file ecdsa_constraints.hpp.
| std::array<uint32_t, 32> acir_format::EcdsaConstraint::pub_x_indices |
Definition at line 51 of file ecdsa_constraints.hpp.
| std::array<uint32_t, 32> acir_format::EcdsaConstraint::pub_y_indices |
Definition at line 52 of file ecdsa_constraints.hpp.
| uint32_t acir_format::EcdsaConstraint::result |
Definition at line 60 of file ecdsa_constraints.hpp.
| std::array<uint32_t, 64> acir_format::EcdsaConstraint::signature |
Definition at line 46 of file ecdsa_constraints.hpp.
| bb::CurveType acir_format::EcdsaConstraint::type |
Definition at line 40 of file ecdsa_constraints.hpp.