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

#include <certificate_nonce_leaf_accumulation.hpp>

Public Member Functions

 CertificateNonceLeafAccumulator (const CertificateNonceLeafAccumulator &)=delete
CertificateNonceLeafAccumulator & operator= (const CertificateNonceLeafAccumulator &)=delete
 CertificateNonceLeafAccumulator (CertificateNonceLeafAccumulator &&) noexcept=default
CertificateNonceLeafAccumulator & operator= (CertificateNonceLeafAccumulator &&) noexcept=default
const bppp::accumulation::Basis & basis () const noexcept
Result< CertificateNonceLeafParentConstants > derive_parent_constants (const PublicKey &public_key, const TopicProofCache &cache, const NonceProof &proof, const bppp::ScalarBytes &circuit_precommitment, purify_secp_context *secp_context) const
Result< CertificateNonceLeafParentConstants > derive_parent_constants_from_public_data (const PublicKey &public_key, const TopicProofCache &cache, const bppp::ScalarBytes &circuit_precommitment, const bppp::PointBytes &nonce_point, purify_secp_context *secp_context) const
Result< PreparedCertificateNonceLeaf > prepare (const PublicKey &public_key, const TopicProofCache &cache, const NonceProof &proof, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *circuit_cache=nullptr) const

Static Public Member Functions

static Result< CertificateNonceLeafAccumulator > create (purify_secp_context *secp_context)

Static Public Attributes

static constexpr std::size_t kNormVectorLength = 4096

Detailed Description

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.

Constructor & Destructor Documentation

◆ CertificateNonceLeafAccumulator() [1/2]

purify::puresign_plusplus::CertificateNonceLeafAccumulator::CertificateNonceLeafAccumulator ( const CertificateNonceLeafAccumulator & )
delete

◆ CertificateNonceLeafAccumulator() [2/2]

purify::puresign_plusplus::CertificateNonceLeafAccumulator::CertificateNonceLeafAccumulator ( CertificateNonceLeafAccumulator && )
defaultnoexcept

Member Function Documentation

◆ basis()

◆ create()

◆ derive_parent_constants()

Result< CertificateNonceLeafParentConstants > purify::puresign_plusplus::CertificateNonceLeafAccumulator::derive_parent_constants ( const PublicKey & public_key,
const TopicProofCache & cache,
const NonceProof & proof,
const bppp::ScalarBytes & circuit_precommitment,
purify_secp_context * secp_context ) const
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().

◆ derive_parent_constants_from_public_data()

Result< CertificateNonceLeafParentConstants > purify::puresign_plusplus::CertificateNonceLeafAccumulator::derive_parent_constants_from_public_data ( const PublicKey & public_key,
const TopicProofCache & cache,
const bppp::ScalarBytes & circuit_precommitment,
const bppp::PointBytes & nonce_point,
purify_secp_context * secp_context ) const
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().

◆ operator=() [1/2]

CertificateNonceLeafAccumulator & purify::puresign_plusplus::CertificateNonceLeafAccumulator::operator= ( CertificateNonceLeafAccumulator && )
defaultnoexcept

◆ operator=() [2/2]

CertificateNonceLeafAccumulator & purify::puresign_plusplus::CertificateNonceLeafAccumulator::operator= ( const CertificateNonceLeafAccumulator & )
delete

◆ prepare()

Result< PreparedCertificateNonceLeaf > purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare ( const PublicKey & public_key,
const TopicProofCache & cache,
const NonceProof & proof,
purify_secp_context * secp_context,
bppp::ExperimentalCircuitBackend * circuit_cache = nullptr ) const
nodiscard

Field Documentation

◆ kNormVectorLength

std::size_t purify::puresign_plusplus::CertificateNonceLeafAccumulator::kNormVectorLength = 4096
staticconstexpr

Definition at line 142 of file certificate_nonce_leaf_accumulation.hpp.

Referenced by create().


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