purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
purify::puresign_plusplus::CertificateNonceParentAccumulator Class Reference

#include <certificate_nonce_parent_accumulation.hpp>

Public Member Functions

 CertificateNonceParentAccumulator (const CertificateNonceParentAccumulator &)=delete
CertificateNonceParentAccumulator & operator= (const CertificateNonceParentAccumulator &)=delete
 CertificateNonceParentAccumulator (CertificateNonceParentAccumulator &&) noexcept=default
CertificateNonceParentAccumulator & operator= (CertificateNonceParentAccumulator &&) noexcept=default
const CertificateNonceLeafAccumulator & leaves () const noexcept
Result< CertificateNonceResponseProof > prove_response (const CertificateNonceParentPublicInputs &inputs, std::span< const PreparedCertificateNonceLeaf > ordered_leaves, purify_secp_context *secp_context) const
Result< PendingCertificateNonceParent > verify_response (const CertificateNonceParentPublicInputs &inputs, std::span< const PreparedCertificateNonceLeaf > ordered_leaves, const CertificateNonceResponseProof &proof, purify_secp_context *secp_context) const
Result< CertificateNonceTreeProof > prove_parent (std::span< const PendingCertificateNonceParent > ordered_children, purify_secp_context *secp_context) const
Result< PendingCertificateNonceParent > verify_parent (std::span< const PendingCertificateNonceParent > ordered_children, const CertificateNonceTreeProof &proof, purify_secp_context *secp_context) const
Status decide_root (const PendingCertificateNonceParent &root, purify_secp_context *secp_context) const
Status verify_native_receipt (const CertificateNonceNativeReceipt &receipt, std::span< const CertificateNonceResponseVerificationView > ordered_responses, purify_secp_context *secp_context) const
Result< CertificateNonceLinearReceipt > prove_linear_receipt (std::span< const CertificateNonceResponseVerificationView > ordered_responses, purify_secp_context *secp_context) const
Status verify_linear_receipt (const CertificateNonceLinearReceipt &receipt, std::span< const CertificateNonceResponseVerificationView > ordered_responses, purify_secp_context *secp_context) const

Static Public Member Functions

static Result< CertificateNonceParentAccumulator > create (purify_secp_context *secp_context)

Static Public Attributes

static constexpr std::size_t kTreeFanout = 16
static constexpr std::size_t kRootClaimRounds
static constexpr std::size_t kRootClaimSerializedSize
static constexpr std::uint64_t kMaxResponses

Detailed Description

Purpose-owned native accumulator for certificate nonce responses.

This authenticates the prepared nonce-proof algebra and public response frames. Registry resolution, quorum arithmetic, and certificate admission remain application checks and are not compressed by this API.

Definition at line 756 of file certificate_nonce_parent_accumulation.hpp.

Constructor & Destructor Documentation

◆ CertificateNonceParentAccumulator() [1/2]

purify::puresign_plusplus::CertificateNonceParentAccumulator::CertificateNonceParentAccumulator ( const CertificateNonceParentAccumulator & )
delete

◆ CertificateNonceParentAccumulator() [2/2]

purify::puresign_plusplus::CertificateNonceParentAccumulator::CertificateNonceParentAccumulator ( CertificateNonceParentAccumulator && )
defaultnoexcept

Member Function Documentation

◆ create()

Result< CertificateNonceParentAccumulator > purify::puresign_plusplus::CertificateNonceParentAccumulator::create ( purify_secp_context * secp_context)
staticnodiscard

◆ decide_root()

Status purify::puresign_plusplus::CertificateNonceParentAccumulator::decide_root ( const PendingCertificateNonceParent & root,
purify_secp_context * secp_context ) const
nodiscard

◆ leaves()

◆ operator=() [1/2]

CertificateNonceParentAccumulator & purify::puresign_plusplus::CertificateNonceParentAccumulator::operator= ( CertificateNonceParentAccumulator && )
defaultnoexcept

◆ operator=() [2/2]

CertificateNonceParentAccumulator & purify::puresign_plusplus::CertificateNonceParentAccumulator::operator= ( const CertificateNonceParentAccumulator & )
delete

◆ prove_linear_receipt()

◆ prove_parent()

Result< CertificateNonceTreeProof > purify::puresign_plusplus::CertificateNonceParentAccumulator::prove_parent ( std::span< const PendingCertificateNonceParent > ordered_children,
purify_secp_context * secp_context ) const
nodiscard

◆ prove_response()

◆ verify_linear_receipt()

◆ verify_native_receipt()

◆ verify_parent()

Result< PendingCertificateNonceParent > purify::puresign_plusplus::CertificateNonceParentAccumulator::verify_parent ( std::span< const PendingCertificateNonceParent > ordered_children,
const CertificateNonceTreeProof & proof,
purify_secp_context * secp_context ) const
nodiscard

◆ verify_response()

Field Documentation

◆ kMaxResponses

std::uint64_t purify::puresign_plusplus::CertificateNonceParentAccumulator::kMaxResponses
staticconstexpr

◆ kRootClaimRounds

std::size_t purify::puresign_plusplus::CertificateNonceParentAccumulator::kRootClaimRounds
staticconstexpr

◆ kRootClaimSerializedSize

std::size_t purify::puresign_plusplus::CertificateNonceParentAccumulator::kRootClaimSerializedSize
staticconstexpr
Initial value:

Definition at line 761 of file certificate_nonce_parent_accumulation.hpp.

◆ kTreeFanout

std::size_t purify::puresign_plusplus::CertificateNonceParentAccumulator::kTreeFanout = 16
staticconstexpr

Definition at line 758 of file certificate_nonce_parent_accumulation.hpp.

Referenced by verify_native_receipt().


The documentation for this class was generated from the following files: