|
purify
C++ Purify implementation with native circuit and BPP support
|
#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 |
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.
|
staticnodiscard |
Definition at line 427 of file construction_receipt.cpp.
References create(), purify::InvalidFixedSize, kParentProofSize, parent_proof(), payload(), and purify::unexpected_error().
Referenced by create(), and deserialize().
|
staticnodiscard |
Definition at line 439 of file construction_receipt.cpp.
References create(), deserialize(), purify::accountable::ConstructionReceiptPayload::deserialize(), purify::InvalidFixedSize, purify::accountable::ConstructionReceiptPayload::kFixedHeaderSize, kParentProofSize, parent_proof(), payload(), PURIFY_ASSIGN_OR_RETURN, and purify::unexpected_error().
Referenced by deserialize().
|
inlinenodiscardnoexcept |
Definition at line 47 of file construction_receipt_envelope.hpp.
Referenced by create(), deserialize(), and purify::accountable::ConstructionParentVerifier::verify().
|
inlinenodiscardnoexcept |
Definition at line 43 of file construction_receipt_envelope.hpp.
References payload().
Referenced by create(), deserialize(), payload(), and purify::accountable::ConstructionParentVerifier::verify().
|
nodiscard |
Definition at line 459 of file construction_receipt.cpp.
References serialize(), and serialized_size().
Referenced by serialize().
|
nodiscardnoexcept |
Definition at line 468 of file construction_receipt.cpp.
References serialized_size().
Referenced by serialize(), and serialized_size().
|
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().