OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
keys.hpp File Reference
#include <array>
#include <cstring>
#include <vector>
Include dependency graph for keys.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cbdc
 

Typedefs

using secp256k1_context = struct secp256k1_context_struct
 
using cbdc::privkey_t = std::array<unsigned char, pubkey_len>
 A private key of a public/private keypair.
 
using cbdc::pubkey_t = std::array<unsigned char, pubkey_len>
 A public key of a public/private keypair.
 
using cbdc::witness_t = std::vector<std::byte>
 A witness commitment.
 
using cbdc::signature_t = std::array<unsigned char, sig_len>
 A signature.
 

Functions

auto cbdc::pubkey_from_privkey (const privkey_t &privkey, secp256k1_context *ctx) -> pubkey_t
 Generates a public key from the specified private key.
 
template<size_t S>
auto cbdc::to_vector (const std::array< unsigned char, S > &arr) -> std::vector< std::byte >
 Converts an std::array into an std::vector of the same size via copy.
 

Typedef Documentation

◆ secp256k1_context

using secp256k1_context = struct secp256k1_context_struct

Definition at line 14 of file keys.hpp.