Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
schnorr.hpp File Reference
#include <array>
#include <memory.h>
#include <string>
#include "barretenberg/ecc/curves/grumpkin/grumpkin.hpp"
#include "barretenberg/crypto/hashers/hashers.hpp"
#include "barretenberg/common/serialize.hpp"
#include "barretenberg/common/streams.hpp"
#include "barretenberg/serialize/msgpack.hpp"
#include "./schnorr.tcc"

Go to the source code of this file.

Classes

struct  bb::crypto::schnorr_key_pair< Fr, G1 >
 
struct  bb::crypto::schnorr_signature
 

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::crypto
 

Functions

template<typename Hash , typename Fq , typename Fr , typename G1 >
bool bb::crypto::schnorr_verify_signature (const std::string &message, const typename G1::affine_element &public_key, const schnorr_signature &sig)
 
template<typename Hash , typename Fq , typename Fr , typename G1 >
schnorr_signature bb::crypto::schnorr_construct_signature (const std::string &message, const schnorr_key_pair< Fr, G1 > &account)
 
bool bb::crypto::operator== (schnorr_signature const &lhs, schnorr_signature const &rhs)
 
std::ostream & bb::crypto::operator<< (std::ostream &os, schnorr_signature const &sig)
 
template<typename B >
void bb::crypto::read (B &it, schnorr_key_pair< grumpkin::fr, grumpkin::g1 > &keypair)
 
template<typename B >
void bb::crypto::write (B &buf, schnorr_key_pair< grumpkin::fr, grumpkin::g1 > const &keypair)