Skip to content

sgns::crypto::SR25519Keypair

#include <sr25519_types.hpp>

Inherits from IComponent

Public Functions

Name
SR25519Keypair() =default
SR25519Keypair(SR25519SecretKey sk, SR25519PublicKey pk)
bool operator==(const SR25519Keypair & other) const
bool operator!=(const SR25519Keypair & other) const
virtual std::string GetName() override

Public Attributes

Name
SR25519SecretKey secret_key
SR25519PublicKey public_key

Friends

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

Additional inherited members

Public Functions inherited from IComponent

Name
virtual ~IComponent() =default

Public Functions Documentation

function SR25519Keypair

SR25519Keypair() =default

function SR25519Keypair

inline SR25519Keypair(
    SR25519SecretKey sk,
    SR25519PublicKey pk
)

function operator==

bool operator==(
    const SR25519Keypair & other
) const

function operator!=

bool operator!=(
    const SR25519Keypair & other
) const

function GetName

inline virtual std::string GetName() override

Reimplements: IComponent::GetName

Public Attributes Documentation

variable secret_key

SR25519SecretKey secret_key;

variable public_key

SR25519PublicKey public_key;

Friends

friend operator<<

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

    const SR25519Keypair & test_struct
);

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