|
purify
C++ Purify implementation with native circuit and BPP support
|
#include <recovery_root.hpp>
Public Member Functions | |
| RecoveryRootContribution (const RecoveryRootContribution &)=default | |
| RecoveryRootContribution & | operator= (const RecoveryRootContribution &)=default |
| RecoveryRootContribution (RecoveryRootContribution &&) noexcept=default | |
| RecoveryRootContribution & | operator= (RecoveryRootContribution &&) noexcept=default |
| const RecoveryRootShare & | share () const noexcept |
| Result< Bytes > | serialize (purify_secp_context *secp_context) const |
Static Public Member Functions | |
| static Result< RecoveryRootContribution > | deserialize (std::span< const unsigned char > encoded, purify_secp_context *secp_context) |
Static Public Attributes | |
| static constexpr unsigned char | kSerializationVersion = 1 |
| static constexpr std::size_t | kNormProofSize = 974 |
| static constexpr std::size_t | kProofSerializedSize |
| static constexpr std::size_t | kSerializedSize |
Friends | |
| class | ConstructionLeafAccumulator |
| Result< RecoveryRootContribution > | 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 > | 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) |
Transparent mapping proof for one formation-bound effective MuSig share.
Record version 1 fixes the modern tagged field-hash suite. Legacy-hash builds may parse its fixed transport syntax but reject proving and verification.
Definition at line 142 of file recovery_root.hpp.
|
default |
References RecoveryRootContribution().
Referenced by deserialize(), operator=(), operator=(), RecoveryRootContribution(), RecoveryRootContribution(), and verify_recovery_root_contribution.
|
defaultnoexcept |
References RecoveryRootContribution().
|
staticnodiscard |
Definition at line 733 of file recovery_root.cpp.
References purify::accountable::RecoveryRootShare::deserialize(), purify::InvalidFixedSize, kNormProofSize, kSerializationVersion, kSerializedSize, purify::accountable::RecoveryRootShare::kSerializedSize, PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, RecoveryRootContribution(), share(), purify::unexpected_error(), and purify::UnsupportedSymbol.
|
default |
References RecoveryRootContribution().
|
defaultnoexcept |
References RecoveryRootContribution().
|
nodiscard |
Definition at line 712 of file recovery_root.cpp.
References kSerializationVersion, kSerializedSize, and PURIFY_RETURN_IF_ERROR.
|
inlinenodiscardnoexcept |
Definition at line 158 of file recovery_root.hpp.
References share().
Referenced by deserialize(), and share().
|
friend |
Definition at line 192 of file recovery_root.hpp.
References ConstructionLeafAccumulator.
Referenced by ConstructionLeafAccumulator.
|
friend |
Prove one member's exact effective share on secp and both Purify curves.
Definition at line 817 of file recovery_root.cpp.
|
friend |
Verify one ordered, formation-bound member contribution.
Definition at line 886 of file recovery_root.cpp.
References PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, RecoveryRootContribution(), purify::require_secp_context(), and purify::bppp::candidate::verify_circuit_zk_norm_arg_v4_with_public_commitments().
|
staticconstexpr |
Definition at line 145 of file recovery_root.hpp.
Referenced by purify::accountable::ConstructionLeafAccumulator::create(), and deserialize().
|
staticconstexpr |
Definition at line 146 of file recovery_root.hpp.
|
staticconstexpr |
Definition at line 144 of file recovery_root.hpp.
Referenced by deserialize(), and serialize().
|
staticconstexpr |
Definition at line 148 of file recovery_root.hpp.
Referenced by deserialize(), serialize(), and purify::accountable::serialize_accepted_construction_parent_witness().