42#ifndef _DWMCREDENCEED25519KEYPAIR_HH_
43#define _DWMCREDENCEED25519KEYPAIR_HH_
102 const std::string &
PublicKey(
const std::string & publicKey);
113 const std::string &
SecretKey(
const std::string & secretKey);
133 std::string _publicKey;
134 std::string _secretKey;
Dwm::Credence::ShortString class declaration.
Encapsulates an Ed25519 key pair.
Definition DwmCredenceEd25519KeyPair.hh:64
bool IsValid() const
Returns true if they keypair is valid (i.e.
const std::string & PublicKey(const std::string &publicKey)
Sets and returns the public key.
const std::string & PublicKey() const
Returns the public key.
Ed25519KeyPair(const Ed25519KeyPair &)=default
Copy constructor.
Ed25519KeyPair(const std::string &id="")
Default constructor.
void Clear()
Clears the contents of the key pair.
const std::string & SecretKey() const
Returns the secret key.
const ShortString & Id(const ShortString &id)
Sets and returns the owner of the keypair.
bool operator==(const Ed25519KeyPair &keyPair) const
operator ==
const std::string & SecretKey(const std::string &secretKey)
Sets and returns the secret key.
~Ed25519KeyPair()
Destructor. Clears the contents of the keys before deallocation.
const ShortString & Id() const
Returns the owner of the keypair.
Encapsulates a string that is restricted to 255 bytes or less.
Definition DwmCredenceShortString.hh:57