20 std::array<unsigned char, 32>;
30class ResolvedConstructionSetupDigest {
55 :
share(std::move(recovery_share)),
78class ConstructionReceiptPayload {
99 std::span<const unsigned char> encoded);
102 return recovery_root_;
105 [[nodiscard]] std::span<const ConstructionReceiptSetupEntry>
107 return setup_entries_;
110 [[nodiscard]] std::span<const ConstructionReceiptAnchorEntry>
112 return anchor_entries_;
131 std::vector<ConstructionReceiptSetupEntry> setup_entries_;
132 std::vector<ConstructionReceiptAnchorEntry> anchor_entries_;
171 std::span<const ResolvedConstructionReceiptEntry> resolved_entries);
Canonical public payload for a coalition construction receipt.
std::span< const ConstructionReceiptSetupEntry > setup_entries() const noexcept
static constexpr std::size_t kAnchorEntrySize
std::span< const ConstructionReceiptAnchorEntry > anchor_entries() const noexcept
std::size_t serialized_size() const noexcept
static Result< ConstructionReceiptPayload > create(UInt512 recovery_root, std::vector< ConstructionReceiptSetupEntry > setup_entries, std::vector< ConstructionReceiptAnchorEntry > anchor_entries)
const UInt512 & recovery_root() const noexcept
static constexpr unsigned char kSerializationVersion
static Result< ConstructionReceiptPayload > deserialize(std::span< const unsigned char > encoded)
static constexpr std::size_t kSetupEntrySize
static constexpr std::size_t kFixedHeaderSize
static constexpr std::size_t kSerializedSize
Immutable registry-record digest selected by a recovery root.
static Result< ResolvedConstructionSetupDigest > create(const ResolvedConstructionSetupDigestBytes &digest)
const ResolvedConstructionSetupDigestBytes & bytes() const noexcept
static constexpr std::size_t kSerializedSize
std::array< unsigned char, 32 > ResolvedConstructionSetupDigestBytes
std::array< unsigned char, 32 > AnchorEscrowContextDigest
std::array< unsigned char, 32 > AnchorReference
Result< ConstructionReceiptStatementDigest > construction_receipt_statement_digest(const ConstructionReceiptPayload &payload, const ResolvedConstructionSetupDigest &resolved_setup, std::span< const ResolvedConstructionReceiptEntry > resolved_entries)
Bind a canonical payload to its ordered, resolved anchor inputs.
std::array< unsigned char, 32 > ConstructionReceiptStatementDigest
std::array< unsigned char, 32 > ScalarBytes
Big-endian 32-byte scalar encoding.
BigUInt< 8 > UInt512
512-bit unsigned integer used for private and packed public keys.
Expected< T, Error > Result
Expected-returning convenience alias for Purify value-producing APIs.
std::vector< unsigned char > Bytes
Dynamically sized byte string used for messages, serialized witnesses, and proofs.
static constexpr std::size_t kSerializedSize
AnchorEscrowCiphertext ciphertext
bppp::ScalarBytes circuit_precommitment
bppp::ScalarBytes circuit_precommitment
ConstructionReceiptSetupEntry(RecoveryRootShare recovery_share, bppp::ScalarBytes precommitment)
AnchorPunishmentPublicKey punishment_key
AnchorReference anchor_reference
ResolvedConstructionReceiptEntry(AnchorReference reference, UInt512 root, AnchorPunishmentPublicKey punishment, AnchorEscrowContextDigest context)
AnchorEscrowContextDigest context_digest