54 return circuit_precommitment_;
63 [[nodiscard]]
const std::array<unsigned char, 64>&
nonce_host()
69 [[nodiscard]] std::span<const unsigned char>
topic() const noexcept {
82 return binding_digest_;
90 circuit_precommitment_, nonce_point_, binding_digest_};
101 return parent_constants_;
119 norm_(std::move(
norm)) {}
123 std::array<unsigned char, 64> nonce_host_{};
127 CertificateNonceLeafParentConstants parent_constants_;
128 bppp::accumulation::AlgebraicPreparedNorm norm_;
156 [[nodiscard]] const
bppp::accumulation::Basis&
basis() const noexcept {
200 : basis_(std::move(
basis)) {}
Common interface for reusable experimental BPPP backend state.
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
static constexpr std::size_t kNormVectorLength
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
static Result< CertificateNonceLeafAccumulator > create(purify_secp_context *secp_context)
Result< PreparedCertificateNonceLeaf > prepare(const PublicKey &public_key, const TopicProofCache &cache, const NonceProof &proof, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *circuit_cache=nullptr) const
CertificateNonceLeafAccumulator(CertificateNonceLeafAccumulator &&) noexcept=default
CertificateNonceLeafAccumulator & operator=(const CertificateNonceLeafAccumulator &)=delete
const bppp::accumulation::Basis & basis() const noexcept
CertificateNonceLeafAccumulator(const CertificateNonceLeafAccumulator &)=delete
std::span< const unsigned char > topic() const noexcept
const bppp::accumulation::Digest & binding_digest() const noexcept
const CertificateNonceLeafParentConstants & parent_constants() const noexcept
friend class CertificateNonceLeafAccumulator
const bppp::accumulation::AlgebraicPreparedNorm & norm() const noexcept
CertificateNoncePublicLeafDescriptor public_descriptor() const noexcept
PreparedCertificateNonceLeaf(PreparedCertificateNonceLeaf &&) noexcept=default
const bppp::ScalarBytes & circuit_precommitment() const noexcept
const bppp::accumulation::Digest & proof_digest() const noexcept
PreparedCertificateNonceLeaf & operator=(const PreparedCertificateNonceLeaf &)=delete
const std::array< unsigned char, 64 > & nonce_host() const noexcept
PreparedCertificateNonceLeaf(const PreparedCertificateNonceLeaf &)=delete
const bppp::PointBytes & nonce_point() const noexcept
std::array< unsigned char, 32 > Digest
std::array< unsigned char, 33 > PointBytes
Compressed 33-byte curve-point encoding.
std::array< unsigned char, 32 > ScalarBytes
Big-endian 32-byte scalar encoding.
Expected< T, Error > Result
Expected-returning convenience alias for Purify value-producing APIs.
std::vector< unsigned char > Bytes
Dynamically sized byte string used for messages, serialized witnesses, and proofs.
Experimental BPPP-backed PureSign proof(R) helpers.
std::array< unsigned char, 32 > circuit_binding_digest
bppp::PointBytes coefficient_commitment
std::array< unsigned char, 32 > raw_generator_digest
bppp::PointBytes anchored_offset
friend bool operator==(const CertificateNonceLeafParentConstants &, const CertificateNonceLeafParentConstants &)=default
friend bool operator==(const CertificateNoncePublicLeafDescriptor &, const CertificateNoncePublicLeafDescriptor &)=default
bppp::ScalarBytes circuit_precommitment
bppp::accumulation::Digest leaf_binding
bppp::PointBytes nonce_point
Cacheable topic-bound nonce-proof template for the BPPP-backed PureSign++ proof(R) flow.