Skip to content

sgns::crypto::ED25519Keypair

#include <ed25519_types.hpp>

Inherits from IComponent

Public Functions

Name
ED25519Keypair() =default
ED25519Keypair(ED25519PrivateKey prv_key, ED25519PublicKey pub_key)
bool operator==(const ED25519Keypair & other) const
bool operator!=(const ED25519Keypair & other) const
virtual std::string GetName() override

Public Attributes

Name
ED25519PrivateKey private_key
ED25519PublicKey public_key

Friends

Name
std::ostream & operator<<(std::ostream & out, const ED25519Keypair & test_struct)

Additional inherited members

Public Functions inherited from IComponent

Name
virtual ~IComponent() =default

Public Functions Documentation

function ED25519Keypair

ED25519Keypair() =default

function ED25519Keypair

inline ED25519Keypair(
    ED25519PrivateKey prv_key,
    ED25519PublicKey pub_key
)

function operator==

bool operator==(
    const ED25519Keypair & other
) const

function operator!=

bool operator!=(
    const ED25519Keypair & other
) const

function GetName

inline virtual std::string GetName() override

Reimplements: IComponent::GetName

Public Attributes Documentation

variable private_key

ED25519PrivateKey private_key;

variable public_key

ED25519PublicKey public_key;

Friends

friend operator<<

friend std::ostream & operator<<(
    std::ostream & out,

    const ED25519Keypair & test_struct
);

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