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

#include <construction_leaf_accumulation.hpp>

Public Member Functions

 ConstructionLeafAccumulator (const ConstructionLeafAccumulator &)=delete
ConstructionLeafAccumulator & operator= (const ConstructionLeafAccumulator &)=delete
 ConstructionLeafAccumulator (ConstructionLeafAccumulator &&) noexcept=default
ConstructionLeafAccumulator & operator= (ConstructionLeafAccumulator &&) noexcept=default
const bppp::accumulation::Basis & basis () const noexcept
Result< ConstructionLeafParentConstants > derive_parent_constants (const RecoveryBoundSigningRoster &roster, const UInt512 &advertised_anchor_root, const AnchorPunishmentPublicKey &punishment_key, const AnchorEscrowContextDigest &context_digest, const AnchorEscrowCiphertext &ciphertext, const bppp::ScalarBytes &circuit_precommitment, purify_secp_context *secp_context) const
Result< ConstructionLeafParentConstants > derive_pending_anchor_parent_constants (const NonceHostBoundSigningRoster &roster, const UInt512 &recovery_root, const UInt512 &advertised_anchor_root, const AnchorPunishmentPublicKey &punishment_key, const AnchorEscrowContextDigest &context_digest, const AnchorEscrowCiphertext &ciphertext, const bppp::ScalarBytes &circuit_precommitment, purify_secp_context *secp_context) const
Result< ConstructionLeafParentConstants > derive_parent_constants (const NonceHostBoundSigningRoster &roster, const CoalitionFormation &formation, std::size_t member_index, const RecoveryRootShare &share, const bppp::ScalarBytes &circuit_precommitment, purify_secp_context *secp_context) const
Result< PreparedConstructionLeaf > prepare (const RecoveryBoundSigningRoster &roster, const UInt512 &advertised_anchor_root, const AnchorPunishmentPublicKey &punishment_key, const AnchorEscrowContextDigest &context_digest, const AnchorEscrowRecord &record, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr) const
Result< PreparedConstructionLeaf > prepare (const NonceHostBoundSigningRoster &roster, const CoalitionFormation &formation, std::size_t member_index, const RecoveryRootContribution &contribution, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr) const

Static Public Member Functions

static Result< ConstructionLeafAccumulator > create (purify_secp_context *secp_context)

Static Public Attributes

static constexpr std::size_t kNormVectorLength = 16384

Detailed Description

Fixed-basis adapter for accumulating selected V4 construction proofs.

The private constructor prevents callers from substituting another circuit family or semantic basis. Each prepare() overload reconstructs one exact circuit and transcript binding from its typed public statement. Its result remains a pending norm obligation: the reduction, every accumulation transition, and the final decide() call are all mandatory for acceptance.

Definition at line 70 of file construction_leaf_accumulation.hpp.

Constructor & Destructor Documentation

◆ ConstructionLeafAccumulator() [1/2]

purify::accountable::ConstructionLeafAccumulator::ConstructionLeafAccumulator ( const ConstructionLeafAccumulator & )
delete

◆ ConstructionLeafAccumulator() [2/2]

purify::accountable::ConstructionLeafAccumulator::ConstructionLeafAccumulator ( ConstructionLeafAccumulator && )
defaultnoexcept

Member Function Documentation

◆ basis()

const bppp::accumulation::Basis & purify::accountable::ConstructionLeafAccumulator::basis ( ) const
inlinenodiscardnoexcept

◆ create()

◆ derive_parent_constants() [1/2]

Result< ConstructionLeafParentConstants > purify::accountable::ConstructionLeafAccumulator::derive_parent_constants ( const NonceHostBoundSigningRoster & roster,
const CoalitionFormation & formation,
std::size_t member_index,
const RecoveryRootShare & share,
const bppp::ScalarBytes & circuit_precommitment,
purify_secp_context * secp_context ) const
nodiscard

Derive one formation-bound recovery-contribution leaf descriptor.

Definition at line 973 of file recovery_root.cpp.

References purify::bppp::candidate::CircuitPrecommitmentDigestV4::parse(), PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, and purify::require_secp_context().

◆ derive_parent_constants() [2/2]

Result< ConstructionLeafParentConstants > purify::accountable::ConstructionLeafAccumulator::derive_parent_constants ( const RecoveryBoundSigningRoster & roster,
const UInt512 & advertised_anchor_root,
const AnchorPunishmentPublicKey & punishment_key,
const AnchorEscrowContextDigest & context_digest,
const AnchorEscrowCiphertext & ciphertext,
const bppp::ScalarBytes & circuit_precommitment,
purify_secp_context * secp_context ) const
nodiscard

Derives the exact public constants bound by one parent recurrence leaf.

This authenticates no proof and does not discharge an accumulation obligation. Receipt acceptance must verify the recursive parent and complete the final native decision.

Definition at line 719 of file anchor_escrow.cpp.

References derive_pending_anchor_parent_constants(), and purify::accountable::RecoveryBoundSigningRoster::recovery_root().

Referenced by purify::accountable::detail::resolve_construction_parent_public_inputs().

◆ derive_pending_anchor_parent_constants()

Result< ConstructionLeafParentConstants > purify::accountable::ConstructionLeafAccumulator::derive_pending_anchor_parent_constants ( const NonceHostBoundSigningRoster & roster,
const UInt512 & recovery_root,
const UInt512 & advertised_anchor_root,
const AnchorPunishmentPublicKey & punishment_key,
const AnchorEscrowContextDigest & context_digest,
const AnchorEscrowCiphertext & ciphertext,
const bppp::ScalarBytes & circuit_precommitment,
purify_secp_context * secp_context ) const
nodiscard

Derive a pending anchor descriptor from weak resolved context.

This authenticates no escrow or recovery setup. It exists only for a parent verifier that separately proves every setup leaf and completes the final native decision.

Definition at line 734 of file anchor_escrow.cpp.

References purify::bppp::candidate::CircuitPrecommitmentDigestV4::parse(), PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, and purify::require_secp_context().

Referenced by derive_parent_constants(), and purify::accountable::detail::resolve_construction_parent_public_inputs().

◆ operator=() [1/2]

ConstructionLeafAccumulator & purify::accountable::ConstructionLeafAccumulator::operator= ( const ConstructionLeafAccumulator & )
delete

◆ operator=() [2/2]

ConstructionLeafAccumulator & purify::accountable::ConstructionLeafAccumulator::operator= ( ConstructionLeafAccumulator && )
defaultnoexcept

◆ prepare() [1/2]

Result< PreparedConstructionLeaf > purify::accountable::ConstructionLeafAccumulator::prepare ( const NonceHostBoundSigningRoster & roster,
const CoalitionFormation & formation,
std::size_t member_index,
const RecoveryRootContribution & contribution,
purify_secp_context * secp_context,
bppp::ExperimentalCircuitBackend * cache = nullptr ) const
nodiscard

◆ prepare() [2/2]

Result< PreparedConstructionLeaf > purify::accountable::ConstructionLeafAccumulator::prepare ( const RecoveryBoundSigningRoster & roster,
const UInt512 & advertised_anchor_root,
const AnchorPunishmentPublicKey & punishment_key,
const AnchorEscrowContextDigest & context_digest,
const AnchorEscrowRecord & record,
purify_secp_context * secp_context,
bppp::ExperimentalCircuitBackend * cache = nullptr ) const
nodiscard

Field Documentation

◆ kNormVectorLength

std::size_t purify::accountable::ConstructionLeafAccumulator::kNormVectorLength = 16384
staticconstexpr

Definition at line 72 of file construction_leaf_accumulation.hpp.

Referenced by create().


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