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

#include <recovery_root.hpp>

Public Member Functions

std::size_t member_count () const noexcept
const AffinePoint & first_sum () const noexcept
const AffinePoint & second_sum () const noexcept
const UInt512 & recovery_root () const noexcept

Static Public Attributes

static constexpr std::size_t kMaxMembers = SigningRoster::kMaxMembers

Friends

Result< RecoveryRootShareAggregate > aggregate_recovery_root_shares (std::span< const RecoveryRootShare > ordered_shares)

Detailed Description

Validated full-point sum of one ordered roster's recovery shares.

Definition at line 71 of file recovery_root.hpp.

Member Function Documentation

◆ first_sum()

const AffinePoint & purify::accountable::RecoveryRootShareAggregate::first_sum ( ) const
inlinenodiscardnoexcept

◆ member_count()

std::size_t purify::accountable::RecoveryRootShareAggregate::member_count ( ) const
inlinenodiscardnoexcept

◆ recovery_root()

const UInt512 & purify::accountable::RecoveryRootShareAggregate::recovery_root ( ) const
inlinenodiscardnoexcept

◆ second_sum()

const AffinePoint & purify::accountable::RecoveryRootShareAggregate::second_sum ( ) const
inlinenodiscardnoexcept

◆ aggregate_recovery_root_shares

Result< RecoveryRootShareAggregate > aggregate_recovery_root_shares ( std::span< const RecoveryRootShare > ordered_shares)
friend

Sum exact signed shares after their proofs were checked in roster order.

Point addition cannot detect a duplicate, omission, or reordering. The accepting parent must verify every contribution at its exact roster index before using this nonauthorizing aggregate.

Definition at line 555 of file recovery_root.cpp.

References purify::EllipticCurve::add_mixed(), purify::EllipticCurve::affine(), purify::curve1(), purify::curve2(), purify::EquationMismatch, first_sum(), purify::JacobianPoint::infinity_point(), purify::pack_public(), PURIFY_RETURN_IF_ERROR, second_sum(), and purify::unexpected_error().

Field Documentation

◆ kMaxMembers

std::size_t purify::accountable::RecoveryRootShareAggregate::kMaxMembers = SigningRoster::kMaxMembers
staticconstexpr

Definition at line 73 of file recovery_root.hpp.


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