3#include <StormByte/crypto/keypair/generic.hxx>
9namespace StormByte::Crypto::KeyPair {
21 inline ECDSA(
const std::string& public_key, std::optional<std::string> private_key = std::nullopt):
59 PointerType Clone() const noexcept
override {
60 return std::make_shared<ECDSA>(*
this);
67 PointerType
Move() noexcept
override {
68 return std::make_shared<ECDSA>(std::move(*
this));
76 static PointerType
Generate(
unsigned short key_size = 256) noexcept;
An ECDSA keypair class.
Definition ecdsa.hxx:14
ECDSA(ECDSA &&other) noexcept=default
Move constructor.
ECDSA(const ECDSA &other)=default
Copy constructor.
~ECDSA() noexcept=default
Destructor.
ECDSA(const std::string &public_key, std::optional< std::string > private_key=std::nullopt)
Constructor.
Definition ecdsa.hxx:21
static PointerType Generate(unsigned short key_size=256) noexcept
Generates a new ECDSA keypair.
PointerType Move() noexcept override
Move the ECDSA keypair.
Definition ecdsa.hxx:67
A generic class.
Definition generic.hxx:34