|
purify
C++ Purify implementation with native circuit and BPP support
|
Canonical public payload for a coalition construction receipt. More...
#include <construction_receipt.hpp>
Public Member Functions | |
| Bytes | serialize () const |
| const UInt512 & | recovery_root () const noexcept |
| std::span< const ConstructionReceiptSetupEntry > | setup_entries () const noexcept |
| std::span< const ConstructionReceiptAnchorEntry > | anchor_entries () const noexcept |
| std::size_t | serialized_size () const noexcept |
Static Public Member Functions | |
| static Result< ConstructionReceiptPayload > | create (UInt512 recovery_root, std::vector< ConstructionReceiptSetupEntry > setup_entries, std::vector< ConstructionReceiptAnchorEntry > anchor_entries) |
| static Result< ConstructionReceiptPayload > | deserialize (std::span< const unsigned char > encoded) |
Static Public Attributes | |
| static constexpr unsigned char | kSerializationVersion = 4 |
| static constexpr std::size_t | kFixedHeaderSize = 1 + 64 + 4 + 4 |
| static constexpr std::size_t | kSetupEntrySize |
| static constexpr std::size_t | kAnchorEntrySize |
This type commits to public inputs only. It is not a proof and does not represent proof acceptance. The recovery root identifies the coalition setup in the authenticated registry. Anchor identities are supplied by the deterministic surrounding construction context and are bound by construction_receipt_statement_digest(). They are deliberately not duplicated in the on-chain payload.
Definition at line 78 of file construction_receipt.hpp.
|
inlinenodiscardnoexcept |
Definition at line 111 of file construction_receipt.hpp.
Referenced by purify::accountable::construction_receipt_statement_digest(), create(), deserialize(), purify::accountable::detail::resolve_construction_parent_public_inputs(), purify::accountable::serialize_accepted_construction_parent_witness(), and purify::accountable::ConstructionParentVerifier::verify().
|
staticnodiscard |
Definition at line 188 of file construction_receipt.cpp.
References anchor_entries(), PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, recovery_root(), setup_entries(), and purify::validate_public_points().
|
staticnodiscard |
Definition at line 236 of file construction_receipt.cpp.
References anchor_entries(), purify::accountable::ConstructionReceiptAnchorEntry::ciphertext, purify::accountable::ConstructionReceiptAnchorEntry::circuit_precommitment, purify::accountable::RecoveryRootShare::deserialize(), purify::EmptyInput, purify::BigUInt< 8 >::from_bytes_be(), purify::InvalidFixedSize, kFixedHeaderSize, kSerializationVersion, purify::accountable::AnchorEscrowCiphertext::kSerializedSize, purify::accountable::RecoveryRootShare::kSerializedSize, PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, recovery_root(), setup_entries(), purify::unexpected_error(), purify::UnsupportedSymbol, and purify::validate_public_points().
Referenced by purify::accountable::ConstructionReceiptEnvelope::deserialize().
|
inlinenodiscardnoexcept |
Definition at line 101 of file construction_receipt.hpp.
Referenced by create(), deserialize(), and purify::accountable::detail::resolve_construction_parent_public_inputs().
|
nodiscard |
Definition at line 212 of file construction_receipt.cpp.
References kSerializationVersion, serialized_size(), and purify::size_fits_u32().
Referenced by purify::accountable::construction_receipt_statement_digest().
|
inlinenodiscardnoexcept |
Definition at line 115 of file construction_receipt.hpp.
References kAnchorEntrySize, kFixedHeaderSize, and kSetupEntrySize.
Referenced by serialize().
|
inlinenodiscardnoexcept |
Definition at line 106 of file construction_receipt.hpp.
Referenced by create(), deserialize(), purify::accountable::detail::resolve_construction_parent_public_inputs(), and purify::accountable::serialize_accepted_construction_parent_witness().
|
staticconstexpr |
Definition at line 85 of file construction_receipt.hpp.
Referenced by serialized_size().
|
staticconstexpr |
Definition at line 81 of file construction_receipt.hpp.
Referenced by purify::accountable::ConstructionReceiptEnvelope::deserialize(), deserialize(), and serialized_size().
|
staticconstexpr |
Definition at line 80 of file construction_receipt.hpp.
Referenced by deserialize(), and serialize().
|
staticconstexpr |
Definition at line 82 of file construction_receipt.hpp.
Referenced by serialized_size().