Skip to content

sgns::securecrdt::CandidateApprovalRecord

#include <SecureCrdtCandidate.hpp>

Public Functions

Name
std::optional< std::vector< uint8_t > > CanonicalBytes() const
std::optional< CandidateApprovalRecord > DecodeCanonical(const std::vector< uint8_t > & bytes, const CandidateKey & key)

Public Attributes

Name
constexpr uint8_t ENCODING_VERSION
constexpr std::string_view RECORD_DOMAIN
uint8_t encoding_version
CandidateCore core
std::string signer
std::vector< uint8_t > signature

Public Functions Documentation

function CanonicalBytes

std::optional< std::vector< uint8_t > > CanonicalBytes() const

function DecodeCanonical

static std::optional< CandidateApprovalRecord > DecodeCanonical(
    const std::vector< uint8_t > & bytes,
    const CandidateKey & key
)

Public Attributes Documentation

variable ENCODING_VERSION

static constexpr uint8_t ENCODING_VERSION = 1;

variable RECORD_DOMAIN

static constexpr std::string_view RECORD_DOMAIN = "SGNS_SECURECRDT_APPROVAL_V1";

variable encoding_version

uint8_t encoding_version = ENCODING_VERSION;

variable core

CandidateCore core;

variable signer

std::string signer;

variable signature

std::vector< uint8_t > signature;

Updated on 2026-10-14 at 21:27:05 +0000