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

#include <construction_receipt_envelope.hpp>

Public Member Functions

Bytes serialize () const
std::size_t serialized_size () const noexcept
const ConstructionReceiptPayload & payload () const noexcept
const Bytes & parent_proof () const noexcept

Static Public Member Functions

static Result< ConstructionReceiptEnvelope > create (ConstructionReceiptPayload payload, Bytes parent_proof)
static Result< ConstructionReceiptEnvelope > deserialize (std::span< const unsigned char > encoded)

Static Public Attributes

static constexpr std::size_t kParentProofSize = 15'076

Detailed Description

Canonical transport for one candidate construction receipt.

Encoding is payload || parent_proof with no additional framing. The payload entry count fixes its size and the selected SHA-256 Nova suite fixes the proof size. Parsing only establishes canonical transport. Acceptance still requires exact recursive proof verification and native final decision.

Definition at line 28 of file construction_receipt_envelope.hpp.

Member Function Documentation

◆ create()

Result< ConstructionReceiptEnvelope > purify::accountable::ConstructionReceiptEnvelope::create ( ConstructionReceiptPayload payload,
Bytes parent_proof )
staticnodiscard

◆ deserialize()

Result< ConstructionReceiptEnvelope > purify::accountable::ConstructionReceiptEnvelope::deserialize ( std::span< const unsigned char > encoded)
staticnodiscard

◆ parent_proof()

const Bytes & purify::accountable::ConstructionReceiptEnvelope::parent_proof ( ) const
inlinenodiscardnoexcept

◆ payload()

const ConstructionReceiptPayload & purify::accountable::ConstructionReceiptEnvelope::payload ( ) const
inlinenodiscardnoexcept

◆ serialize()

Bytes purify::accountable::ConstructionReceiptEnvelope::serialize ( ) const
nodiscard

Definition at line 459 of file construction_receipt.cpp.

References serialize(), and serialized_size().

Referenced by serialize().

◆ serialized_size()

std::size_t purify::accountable::ConstructionReceiptEnvelope::serialized_size ( ) const
nodiscardnoexcept

Definition at line 468 of file construction_receipt.cpp.

References serialized_size().

Referenced by serialize(), and serialized_size().

Field Documentation

◆ kParentProofSize

std::size_t purify::accountable::ConstructionReceiptEnvelope::kParentProofSize = 15'076
staticconstexpr

Exact proof size fixed by the mixed SHA-256 qualification.

Definition at line 31 of file construction_receipt_envelope.hpp.

Referenced by create(), and deserialize().


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