purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
recovery_root.cpp File Reference
#include "purify/puresign/recovery_root.hpp"
#include "purify/puresign/construction_leaf_accumulation.hpp"
#include "purify/puresign/recovery_root_accumulation.hpp"
#include "recovery_root_internal.hpp"
#include "../protocol/algebraic_circuit_accumulation.hpp"
#include "../protocol/algebraic_circuit_proof.hpp"
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdint>
#include <optional>
#include <utility>
#include <vector>
#include "purify/puresign/accountable.hpp"
#include "purify/secp_bridge.h"
#include "../bridge/bppp_bridge.h"
#include "secure_cleanup.hpp"

Go to the source code of this file.

Namespaces

namespace  purify
namespace  purify::accountable
namespace  purify::accountable::testing

Functions

Result< RecoveryRootShare > purify::accountable::derive_recovery_root_share (const SigningRoster &roster, std::size_t member_index, const FieldElement &member_secret, purify_secp_context *secp_context)
Result< RecoveryRootShareAggregate > purify::accountable::aggregate_recovery_root_shares (std::span< const RecoveryRootShare > ordered_shares)
Result< GeneratedKey > purify::accountable::recover_aggregated_recovery_root (const NonceHostBoundSigningRoster &roster, const RecoveryRootShareAggregate &aggregate, const FieldElement &exposed_signing_scalar, purify_secp_context *secp_context)
Result< RecoveryRootContributionCircuitShape > purify::accountable::testing::recovery_root_contribution_circuit_shape_for_testing (const RecoveryRootShare &share)
Status purify::accountable::testing::recovery_root_share_count_valid_for_testing (std::size_t member_count)
Result< bool > purify::accountable::testing::recovery_root_contribution_assignment_satisfies_for_testing (const RecoveryRootShare &circuit_share, const RecoveryRootShare &assignment_share, const FieldElement &effective_scalar)
Result< RecoveryRootContribution > purify::accountable::prove_recovery_root_contribution (const NonceHostBoundSigningRoster &roster, const CoalitionFormation &formation, std::size_t member_index, const FieldElement &member_secret, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)
Result< bool > purify::accountable::verify_recovery_root_contribution (const NonceHostBoundSigningRoster &roster, const CoalitionFormation &formation, std::size_t member_index, const RecoveryRootContribution &contribution, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)
Result< VerifiedDistributedRecoverySetup > purify::accountable::verify_distributed_recovery_setup (NonceHostBoundSigningRoster roster, const CoalitionFormation &formation, std::span< const RecoveryRootContribution > ordered_contributions, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)
Result< GeneratedKey > purify::accountable::derive_recovery_root (const FieldElement &signing_scalar)
Result< RecoveryRootSetupProof > purify::accountable::prove_recovery_root_setup (const NonceHostBoundSigningRoster &roster, const UInt512 &recovery_root, const FieldElement &signing_scalar, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)
Result< RecoveryBoundSigningRoster > purify::accountable::verify_recovery_root_setup (NonceHostBoundSigningRoster roster, const UInt512 &recovery_root, const RecoveryRootSetupProof &proof, purify_secp_context *secp_context)
Result< GeneratedKey > purify::accountable::recover_registered_root (const RecoveryBoundSigningRoster &roster, const FieldElement &exposed_signing_scalar, purify_secp_context *secp_context)