Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ecdsa_impl.hpp File Reference
#include <algorithm>
#include "../hmac/hmac.hpp"
#include "barretenberg/common/serialize.hpp"
#include "barretenberg/numeric/uint256/uint256.hpp"
#include "ecdsa.hpp"

Go to the source code of this file.

Namespaces

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

Functions

template<typename Hash , typename Fq , typename Fr , typename G1 >
ecdsa_signature bb::crypto::ecdsa_construct_signature (const std::string &message, const ecdsa_key_pair< Fr, G1 > &account)
 Generate the ECDSA for the message using the provided account key pair and hash function.
 
template<typename Hash , typename Fq , typename Fr , typename G1 >
G1::affine_element bb::crypto::ecdsa_recover_public_key (const std::string &message, const ecdsa_signature &sig)
 
template<typename Hash , typename Fq , typename Fr , typename G1 >
bool bb::crypto::ecdsa_verify_signature (const std::string &message, const typename G1::affine_element &public_key, const ecdsa_signature &sig)
 
template<typename Hash , typename Fr >
Fr bb::crypto::ecdsa_hash_message (const std::string &message)