|
purify
C++ Purify implementation with native circuit and BPP support
|
#include <certificate_nonce_leaf_accumulation.hpp>
Static Public Member Functions | |
| static Result< CertificateNonceLeafAccumulator > | create (purify_secp_context *secp_context) |
Static Public Attributes | |
| static constexpr std::size_t | kNormVectorLength = 4096 |
Purpose-owned adapter for topic-bound PureSign V4 certificate leaves.
prepare() authenticates the exact outer proof and public nonce point, then returns a pending norm obligation. A caller must verify its reduction, every later accumulation transition, and the final native decision.
Definition at line 140 of file certificate_nonce_leaf_accumulation.hpp.
|
delete |
References CertificateNonceLeafAccumulator().
Referenced by CertificateNonceLeafAccumulator(), CertificateNonceLeafAccumulator(), create(), operator=(), and operator=().
|
defaultnoexcept |
References CertificateNonceLeafAccumulator().
|
inlinenodiscardnoexcept |
Definition at line 156 of file certificate_nonce_leaf_accumulation.hpp.
References basis().
Referenced by basis(), create(), purify::puresign_plusplus::parse_certificate_nonce_native_receipt(), purify::puresign_plusplus::serialize_accepted_linear_certificate_nonce_parent_witness(), and purify::puresign_plusplus::serialize_certificate_nonce_native_receipt().
|
staticnodiscard |
Definition at line 1115 of file bppp.cpp.
References basis(), CertificateNonceLeafAccumulator(), purify::bppp::accumulation::Basis::create(), purify::puresign_plusplus::NonceProof::kNormProofSize, kNormVectorLength, and PURIFY_ASSIGN_OR_RETURN.
Referenced by purify::puresign_plusplus::CertificateNonceParentAccumulator::create(), and operator=().
|
nodiscard |
Derive constants consumed by a certificate parent recurrence.
This does not authenticate the proof or accept its norm obligation. The parent must constrain the precommitment to the exact proof bytes.
Definition at line 1129 of file bppp.cpp.
References purify::BindingMismatch, purify::puresign_plusplus::NonceProof::commitment_point, derive_parent_constants_from_public_data(), PURIFY_ASSIGN_OR_RETURN, and purify::unexpected_error().
|
nodiscard |
Derive the same constants using only admitted public leaf data.
The precommitment must be a canonical nonzero scalar and the nonce point must be a finite canonical compressed point. This path does not authenticate either value; the parent relation and public certificate manifest must bind both to the accepted leaf.
Definition at line 1149 of file bppp.cpp.
References purify::puresign_plusplus::TopicProofCache::circuit_template, purify::NativeBulletproofCircuitTemplate::instantiate(), purify::bppp::candidate::CircuitPrecommitmentDigestV4::parse(), PURIFY_ASSIGN_OR_RETURN, purify::puresign_plusplus::PublicKey::purify_pubkey, PURIFY_RETURN_IF_ERROR, and purify::detail::validate_proof_cache_circuit().
Referenced by derive_parent_constants().
|
defaultnoexcept |
References CertificateNonceLeafAccumulator(), and create().
|
delete |
References CertificateNonceLeafAccumulator().
|
nodiscard |
Definition at line 1193 of file bppp.cpp.
References purify::puresign_plusplus::TopicProofCache::backend_cache, purify::BindingMismatch, purify::puresign_plusplus::TopicProofCache::circuit_template, purify::puresign_plusplus::NonceProof::commitment_point, purify::EquationMismatch, purify::NativeBulletproofCircuitTemplate::instantiate(), purify::puresign_plusplus::NonceProof::mask_commitment, purify::puresign_plusplus::NonceProof::norm_proof, purify::puresign_plusplus::NonceProof::public_commitment_dlog_nonce, purify::puresign_plusplus::NonceProof::public_commitment_dlog_response, PURIFY_ASSIGN_OR_RETURN, purify::puresign_plusplus::PublicKey::purify_pubkey, PURIFY_RETURN_IF_ERROR, purify::puresign_plusplus::NonceProof::raw_commitment, purify::puresign_plusplus::NonceProof::serialize(), purify::puresign_plusplus::NonceProof::t2, purify::BigUInt< Words >::to_bytes_be(), purify::puresign_plusplus::TopicProofCache::topic, purify::unexpected_error(), and purify::detail::validate_proof_cache_circuit().
Referenced by purify::puresign_plusplus::serialize_accepted_certificate_nonce_parent_witness(), and purify::puresign_plusplus::serialize_accepted_linear_certificate_nonce_parent_witness().
|
staticconstexpr |
Definition at line 142 of file certificate_nonce_leaf_accumulation.hpp.
Referenced by create().