Skip to content

ECDSAPublicKey

Base class to organize public key values of ECDSA.

#include <ECDSAPublicKey.hpp>

Inherited by bitcoin::BitcoinKeyGenerator::BitcoinECDSAPublicKey, ethereum::EthereumKeyGenerator::EthereumECDSAPublicKey

Public Functions

Name
ECDSAPublicKey(std::vector< std::uint8_t > X_data, std::vector< std::uint8_t > Y_data)
Constructs a new ECDSAPublicKey object.
virtual ~ECDSAPublicKey()
Virtual destructor to prevent memory leak.
operator std::string &()
Overloads the assignment to string.
std::string GetEntireKey() const

Public Attributes

Name
const std::string X
String representation of X coordinate.
const std::string Y
String representation of Y coordinate.
const std::vector< std::uint8_t > X_vect
Vector representation of X coordinate.
const std::vector< std::uint8_t > Y_vect
Vector representation of Y coordinate.

Public Functions Documentation

function ECDSAPublicKey

inline ECDSAPublicKey(
    std::vector< std::uint8_t > X_data,
    std::vector< std::uint8_t > Y_data
)

Constructs a new ECDSAPublicKey object.

Parameters:

  • X_data vector representing the X coordinate of the public key.
  • Y_data vector representing the Y coordinate of the public key.

function ~ECDSAPublicKey

inline virtual ~ECDSAPublicKey()

Virtual destructor to prevent memory leak.

function operator std::string &

inline operator std::string &()

Overloads the assignment to string.

Return: The appropriate public key value used for the parent class

function GetEntireKey

inline std::string GetEntireKey() const

Public Attributes Documentation

variable X

const std::string X;

String representation of X coordinate.

variable Y

const std::string Y;

String representation of Y coordinate.

variable X_vect

const std::vector< std::uint8_t > X_vect;

Vector representation of X coordinate.

variable Y_vect

const std::vector< std::uint8_t > Y_vect;

Vector representation of Y coordinate.


Updated on 2026-03-04 at 13:10:44 -0800