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

#include <recovery_root.hpp>

Public Member Functions

 VerifiedDistributedRecoverySetup (const VerifiedDistributedRecoverySetup &)=delete
VerifiedDistributedRecoverySetup & operator= (const VerifiedDistributedRecoverySetup &)=delete
 VerifiedDistributedRecoverySetup (VerifiedDistributedRecoverySetup &&) noexcept=default
VerifiedDistributedRecoverySetup & operator= (VerifiedDistributedRecoverySetup &&) noexcept=default
const RecoveryBoundSigningRoster & roster () const noexcept
const RecoveryRootShareAggregate & aggregate () const noexcept

Friends

Result< VerifiedDistributedRecoverySetup > verify_distributed_recovery_setup (NonceHostBoundSigningRoster roster, const CoalitionFormation &formation, std::span< const RecoveryRootContribution > ordered_contributions, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)

Detailed Description

An exact ordered contribution set authorized for anchor escrow.

This capability is move-only so its authorizing result and full-point aggregate are transferred together. It is created only after every formation-bound member proof verifies.

Definition at line 222 of file recovery_root.hpp.

Constructor & Destructor Documentation

◆ VerifiedDistributedRecoverySetup() [1/2]

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

◆ VerifiedDistributedRecoverySetup() [2/2]

purify::accountable::VerifiedDistributedRecoverySetup::VerifiedDistributedRecoverySetup ( VerifiedDistributedRecoverySetup && )
defaultnoexcept

Member Function Documentation

◆ aggregate()

const RecoveryRootShareAggregate & purify::accountable::VerifiedDistributedRecoverySetup::aggregate ( ) const
inlinenodiscardnoexcept

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ roster()

const RecoveryBoundSigningRoster & purify::accountable::VerifiedDistributedRecoverySetup::roster ( ) const
inlinenodiscardnoexcept

◆ verify_distributed_recovery_setup

Result< VerifiedDistributedRecoverySetup > verify_distributed_recovery_setup ( NonceHostBoundSigningRoster roster,
const CoalitionFormation & formation,
std::span< const RecoveryRootContribution > ordered_contributions,
purify_secp_context * secp_context,
bppp::ExperimentalCircuitBackend * cache = nullptr )
friend

Verify one contribution at every roster index and authorize its aggregate.

Count and formation mismatches are rejected before proof verification. This is the distributed counterpart to verify_recovery_root_setup.

Definition at line 931 of file recovery_root.cpp.

References aggregate(), purify::accountable::aggregate_recovery_root_shares(), purify::BindingMismatch, purify::accountable::CoalitionFormation::core_digest(), purify::EquationMismatch, PURIFY_ASSIGN_OR_RETURN, roster(), purify::SizeMismatch, purify::unexpected_error(), VerifiedDistributedRecoverySetup(), and purify::accountable::verify_recovery_root_contribution().


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