|
purify
C++ Purify implementation with native circuit and BPP support
|
#include <recovery_root.hpp>
Public Member Functions | |
| RecoveryRootSetupProof (const RecoveryRootSetupProof &)=default | |
| RecoveryRootSetupProof & | operator= (const RecoveryRootSetupProof &)=default |
| RecoveryRootSetupProof (RecoveryRootSetupProof &&) noexcept=default | |
| RecoveryRootSetupProof & | operator= (RecoveryRootSetupProof &&) noexcept=default |
| Result< Bytes > | serialize (purify_secp_context *secp_context) const |
Static Public Member Functions | |
| static Result< RecoveryRootSetupProof > | deserialize (std::span< const unsigned char > encoded, purify_secp_context *secp_context) |
Static Public Attributes | |
| static constexpr unsigned char | kSerializationVersion = 2 |
| static constexpr std::size_t | kNormProofSize = 844 |
| static constexpr std::size_t | kSerializedSize = 163 + kNormProofSize |
Friends | |
| class | RecoveryRootSetupAccumulator |
| Result< RecoveryRootSetupProof > | 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 > | verify_recovery_root_setup (NonceHostBoundSigningRoster roster, const UInt512 &recovery_root, const RecoveryRootSetupProof &proof, purify_secp_context *secp_context) |
Transparent proof linking the aggregate signing scalar to a recovery root.
Definition at line 273 of file recovery_root.hpp.
|
default |
References RecoveryRootSetupProof().
Referenced by deserialize(), operator=(), operator=(), prove_recovery_root_setup, RecoveryRootSetupProof(), and RecoveryRootSetupProof().
|
defaultnoexcept |
References RecoveryRootSetupProof().
|
staticnodiscard |
Definition at line 1119 of file recovery_root.cpp.
References purify::InvalidFixedSize, kNormProofSize, kSerializationVersion, kSerializedSize, PURIFY_RETURN_IF_ERROR, RecoveryRootSetupProof(), purify::unexpected_error(), and purify::UnsupportedSymbol.
Referenced by operator=().
|
default |
References RecoveryRootSetupProof().
|
defaultnoexcept |
References deserialize(), RecoveryRootSetupProof(), and serialize().
|
nodiscard |
Definition at line 1099 of file recovery_root.cpp.
References kSerializationVersion, kSerializedSize, and PURIFY_RETURN_IF_ERROR.
Referenced by operator=().
|
friend |
Construct the transparent setup proof for a known aggregate signing scalar.
This centralized API is also the reference relation for a future MPC prover. It proves that the exact even-Y aggregate point and registered recovery root are both derived from signing_scalar. Proof randomness is derived from the secret witness and is never caller supplied. A future MPC implementation must jointly derive and keep the equivalent prover seed secret.
Definition at line 1171 of file recovery_root.cpp.
References purify::BindingMismatch, purify::accountable::derive_recovery_root(), purify::TaggedHash::digest_many(), purify::FieldElement::is_zero(), PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, purify_scalar_get_b32(), purify::RangeViolation, purify::detail::FieldElementAccess::raw(), RecoveryRootSetupProof(), purify::require_secp_context(), and purify::unexpected_error().
|
friend |
Definition at line 311 of file recovery_root.hpp.
References RecoveryRootSetupAccumulator.
Referenced by RecoveryRootSetupAccumulator.
|
friend |
Verify aggregate-key knowledge and the recovery-root relation.
The circuit wrapper's external-commitment proof establishes knowledge of the exact final aggregate signing scalar. The root relation derives the exact registered companion root from that same witness. This is the centralized constructor for RecoveryBoundSigningRoster; distributed contribution verification supplies the other constructor. Member consent is separate application policy.
Definition at line 1298 of file recovery_root.cpp.
|
staticconstexpr |
Definition at line 276 of file recovery_root.hpp.
Referenced by purify::accountable::RecoveryRootSetupAccumulator::create(), and deserialize().
|
staticconstexpr |
Definition at line 275 of file recovery_root.hpp.
Referenced by deserialize(), and serialize().
|
staticconstexpr |
Definition at line 277 of file recovery_root.hpp.
Referenced by deserialize(), and serialize().