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