8#include "../../primitives/bool/bool.hpp"
9#include "../../primitives/byte_array/byte_array.hpp"
10#include "../../primitives/field/field.hpp"
11#include "../../primitives/group/cycle_group.hpp"
12#include "../../primitives/witness/witness.hpp"
Implements boolean logic in-circuit.
Represents a dynamic array of bytes in-circuit.
cycle_group represents a group Element of the proving system's embedded curve i.e....
cycle_scalar represents a member of the cycle curve SCALAR FIELD. This is NOT the native circuit fiel...
StrictMock< MockContext > context
schnorr_signature_bits< C > schnorr_convert_signature(C *context, const crypto::schnorr_signature &signature)
Instantiate a witness containing the signature (s, e) as a quadruple of field_t elements (s_lo,...
std::array< field_t< C >, 2 > schnorr_verify_signature_internal(const byte_array< C > &message, const cycle_group< C > &pub_key, const schnorr_signature_bits< C > &sig)
Make the computations needed to verify a signature (s, e), i.e., compute e' = hash(([s]g + [e]pub)....
bool_t< C > schnorr_signature_verification_result(const byte_array< C > &message, const cycle_group< C > &pub_key, const schnorr_signature_bits< C > &sig)
Attempt to verify a signature (s, e) and return the result, i.e., compute e' = hash(([s]g + [e]pub)....
void schnorr_verify_signature(const byte_array< C > &message, const cycle_group< C > &pub_key, const schnorr_signature_bits< C > &sig)
Verify that a signature (s, e) is valid, i.e., compute e' = hash(([s]g + [e]pub).x | message) and che...
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
cycle_group< C >::cycle_scalar s
cycle_group< C >::cycle_scalar e