UltrafastSecp256k1 3.50.0
Ultra high-performance secp256k1 elliptic curve cryptography library
Loading...
Searching...
No Matches
message_signing.hpp File Reference
#include <array>
#include <cstdint>
#include <cstddef>
#include <string>
#include "secp256k1/scalar.hpp"
#include "secp256k1/point.hpp"
#include "secp256k1/recovery.hpp"

Go to the source code of this file.

Classes

struct  secp256k1::coins::BitcoinSigDecodeResult
 

Namespaces

namespace  secp256k1
 
namespace  secp256k1::coins
 

Functions

std::array< std::uint8_t, 32 > secp256k1::coins::bitcoin_message_hash (const std::uint8_t *msg, std::size_t msg_len)
 
RecoverableSignature secp256k1::coins::bitcoin_sign_message (const std::uint8_t *msg, std::size_t msg_len, const fast::Scalar &private_key)
 
bool secp256k1::coins::bitcoin_verify_message (const std::uint8_t *msg, std::size_t msg_len, const fast::Point &pubkey, const ECDSASignature &sig)
 
std::pair< fast::Point, bool > secp256k1::coins::bitcoin_recover_message (const std::uint8_t *msg, std::size_t msg_len, const ECDSASignature &sig, int recid)
 
std::string secp256k1::coins::bitcoin_sig_to_base64 (const RecoverableSignature &rsig, bool compressed=true)
 
BitcoinSigDecodeResult secp256k1::coins::bitcoin_sig_from_base64 (const std::string &base64)