|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <gtest/gtest.h>#include "barretenberg/circuit_checker/circuit_checker.hpp"#include "barretenberg/crypto/pedersen_commitment/pedersen.hpp"#include "barretenberg/ecc/curves/grumpkin/grumpkin.hpp"#include "barretenberg/stdlib_circuit_builders/ultra_circuit_builder.hpp"#include "schnorr.hpp"Go to the source code of this file.
Typedefs | |
| using | Builder = UltraCircuitBuilder |
| using | bool_ct = stdlib::bool_t< Builder > |
| using | byte_array_ct = stdlib::byte_array< Builder > |
| using | field_ct = stdlib::field_t< Builder > |
| using | witness_ct = stdlib::witness_t< Builder > |
Functions | |
| TEST (stdlib_schnorr, schnorr_verify_signature) | |
| TEST (stdlib_schnorr, verify_signature_failure) | |
| Verification fails when the wrong public key is used. | |
| TEST (stdlib_schnorr, schnorr_signature_verification_result) | |
| TEST (stdlib_schnorr, signature_verification_result_failure) | |
| using bool_ct = stdlib::bool_t<Builder> |
Definition at line 13 of file schnorr.test.cpp.
| using Builder = UltraCircuitBuilder |
Definition at line 12 of file schnorr.test.cpp.
| using byte_array_ct = stdlib::byte_array<Builder> |
Definition at line 14 of file schnorr.test.cpp.
| using field_ct = stdlib::field_t<Builder> |
Definition at line 15 of file schnorr.test.cpp.
| using witness_ct = stdlib::witness_t<Builder> |
Definition at line 16 of file schnorr.test.cpp.
| TEST | ( | stdlib_schnorr | , |
| schnorr_signature_verification_result | |||
| ) |
Definition at line 103 of file schnorr.test.cpp.
| TEST | ( | stdlib_schnorr | , |
| schnorr_verify_signature | |||
| ) |
Definition at line 23 of file schnorr.test.cpp.
| TEST | ( | stdlib_schnorr | , |
| signature_verification_result_failure | |||
| ) |
Definition at line 138 of file schnorr.test.cpp.
| TEST | ( | stdlib_schnorr | , |
| verify_signature_failure | |||
| ) |
Verification fails when the wrong public key is used.
Definition at line 61 of file schnorr.test.cpp.