|
purify
C++ Purify implementation with native circuit and BPP support
|
Namespaces | |
| namespace | api_impl |
Typedefs | |
| using | Scalar32 = std::array<unsigned char, 32> |
| using | XOnly32 = std::array<unsigned char, 32> |
| using | Signature64 = std::array<unsigned char, 64> |
| using | CertificateNonceAuthorizationManifest = bppp::ScalarBytes |
| using | CertificateParentPublicFrame |
Enumerations | |
| enum class | CertificateNonceParentScope : std::uint8_t { AccountableTopic = 1 } |
Variables | |
| constexpr std::size_t | kCertificateParentPublicFrameSize = 96 |
| constexpr std::size_t | QUALIFIED_CERTIFICATE_PARENT_PROOF_SIZE |
One canonical 255-bit field encoding for an ordered member manifest.
Definition at line 371 of file certificate_nonce_parent_accumulation.hpp.
Definition at line 24 of file certificate_nonce_parent_prover_input.hpp.
| using purify::puresign_plusplus::Scalar32 = std::array<unsigned char, 32> |
| using purify::puresign_plusplus::Signature64 = std::array<unsigned char, 64> |
| using purify::puresign_plusplus::XOnly32 = std::array<unsigned char, 32> |
|
strong |
Proof scope named by a certificate nonce-response parent.
| Enumerator | |
|---|---|
| AccountableTopic | |
Definition at line 25 of file certificate_nonce_parent_accumulation.hpp.
|
nodiscard |
Derive the final manifest from a complete ordered response sequence.
Definition at line 995 of file certificate_nonce_parent_accumulation.cpp.
References purify::BindingMismatch, certificate_nonce_authorization_manifest_seed(), certificate_nonce_authorization_manifest_step(), PURIFY_ASSIGN_OR_RETURN, purify::size_fits_u64(), purify::SizeMismatch, and purify::unexpected_error().
|
nodiscard |
Seed the ordered authorization manifest for one certificate trace.
Definition at line 952 of file certificate_nonce_parent_accumulation.cpp.
References is_zero(), purify::puresign_plusplus::CertificateNonceParentAccumulator::kMaxResponses, purify::RangeViolation, and purify::unexpected_error().
Referenced by certificate_nonce_authorization_manifest().
|
nodiscard |
Append one response member at its exact canonical position.
Definition at line 972 of file certificate_nonce_parent_accumulation.cpp.
References purify::puresign_plusplus::CertificateNonceParentPublicInputs::kMemberBatchCapacity, purify::RangeViolation, and purify::unexpected_error().
Referenced by certificate_nonce_authorization_manifest().
|
nodiscard |
Exact encoded size for the supplied ordered response member counts.
Definition at line 1083 of file certificate_nonce_parent_accumulation.cpp.
References purify::checked_add_size(), purify::checked_mul_size(), purify::puresign_plusplus::CertificateNonceNativeReceipt::kHeaderSerializedSize, purify::puresign_plusplus::CertificateNonceNativeReceipt::kStepSerializedSize, purify::Overflow, PURIFY_ASSIGN_OR_RETURN, purify::RangeViolation, and purify::unexpected_error().
Referenced by parse_certificate_nonce_native_receipt(), and serialize_certificate_nonce_native_receipt().
|
nodiscard |
Resolve a complete ordered public response sequence and manifest.
Definition at line 876 of file certificate_nonce_parent_accumulation.cpp.
|
nodiscard |
Seed the recursive record manifest for one certificate trace.
Definition at line 829 of file certificate_nonce_parent_accumulation.cpp.
Referenced by purify::puresign_plusplus::CertificateNonceRecursiveManifestResolution::certificate_nonce_recursive_manifest.
|
nodiscard |
Append one recursive step digest at its exact canonical position.
Definition at line 851 of file certificate_nonce_parent_accumulation.cpp.
Referenced by purify::puresign_plusplus::CertificateNonceRecursiveManifestResolution::certificate_nonce_recursive_manifest.
|
nodiscard |
Derive the same member digest from proof-free public leaf material.
Parent constants are recomputed from the host, accountable topic, and descriptor. Callers cannot supply constants recovered from a raw proof.
Definition at line 749 of file certificate_nonce_parent_accumulation.cpp.
References purify::puresign_plusplus::TopicProofCache::build(), purify::accountable::nonce_evaluation_input(), PURIFY_ASSIGN_OR_RETURN, and PURIFY_RETURN_IF_ERROR.
|
nodiscard |
Derive the recursive record digest for one authenticated nonce leaf.
The Purify half of the supplied host must equal the leaf nonce host, and the leaf topic must equal the nonce input recomputed from the context.
Definition at line 719 of file certificate_nonce_parent_accumulation.cpp.
References purify::puresign_plusplus::PreparedCertificateNonceLeaf::binding_digest(), purify::BindingMismatch, purify::accountable::nonce_evaluation_input(), purify::puresign_plusplus::PreparedCertificateNonceLeaf::nonce_host(), purify::puresign_plusplus::PreparedCertificateNonceLeaf::parent_constants(), PURIFY_ASSIGN_OR_RETURN, purify::puresign_plusplus::PublicKey::purify_pubkey, PURIFY_RETURN_IF_ERROR, purify::BigUInt< Words >::to_bytes_be(), purify::puresign_plusplus::PreparedCertificateNonceLeaf::topic(), and purify::unexpected_error().
Referenced by purify::puresign_plusplus::CertificateNonceParentPublicInputs::create().
|
nodiscard |
Derive every recursive step digest for one public response.
Definition at line 816 of file certificate_nonce_parent_accumulation.cpp.
References PURIFY_RETURN_IF_ERROR.
|
nodiscard |
Derive the response relation digest consumed by one recursive step.
This is framing, not authorization verification. The response binding is hashed in full beside the supplied signing key, scalar response, and the challenge recomputed from the supplied context and body. A mismatched set therefore derives a different value from the verifier-recomputed manifest; callers must compare that manifest before accepting the recursive result.
Definition at line 774 of file certificate_nonce_parent_accumulation.cpp.
References purify::puresign_plusplus::CertificateNonceResponseAuthorization::frame(), purify::puresign_plusplus::CertificateNonceParentAccumulator::kMaxResponses, purify::puresign_plusplus::CertificateNonceParentPublicInputs::kMemberBatchCapacity, purify::puresign_plusplus::CertificateNonceResponseAuthorization::member_digests(), PURIFY_ASSIGN_OR_RETURN, purify::RangeViolation, purify::puresign_plusplus::CertificateNonceResponseAuthorization::response_binding(), purify::accountable::ScalarSignature::serialize(), purify::accountable::signature_challenge(), purify::accountable::ConflictContext::signing_key, and purify::unexpected_error().
Referenced by purify::puresign_plusplus::CertificateNonceParentPublicInputs::create().
|
nodiscard |
Strict canonical parser; parsing is not proof acceptance.
Definition at line 1229 of file certificate_nonce_parent_accumulation.cpp.
References purify::puresign_plusplus::CertificateNonceResponseProof::accumulation, purify::puresign_plusplus::CertificateNonceLeafAccumulator::basis(), purify::BindingMismatch, certificate_nonce_native_receipt_size(), purify::checked_mul_size(), purify::puresign_plusplus::CertificateNonceNativeReceipt::create(), purify::puresign_plusplus::CertificateNonceNativeResponse::create(), purify::bppp::accumulation::Basis::digest(), purify::InternalMismatch, purify::InvalidFixedSize, is_zero(), purify::puresign_plusplus::CertificateNonceNativeReceipt::kHeaderSerializedSize, purify::puresign_plusplus::CertificateNonceParentAccumulator::kMaxResponses, purify::puresign_plusplus::CertificateNonceNativeReceipt::kReductionSerializedSize, purify::puresign_plusplus::CertificateNonceNativeReceipt::kStepSerializedSize, purify::puresign_plusplus::CertificateNonceParentAccumulator::leaves(), purify::bppp::accumulation::parse_algebraic_step(), PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, purify::RangeViolation, purify::puresign_plusplus::CertificateNonceResponseProof::reductions, purify::require_secp_context(), purify::unexpected_error(), and purify::UnsupportedSymbol.
|
nodiscard |
Serialize an accepted native receipt together with its exact raw leaves.
Each V4 nonce proof is reauthenticated for its ordered host and accountable topic. The resulting leaves are then used to replay every receipt reduction and accumulation step through the final native decision. Bytes are returned only after that decision succeeds.
The joined witness carries each response's canonical statement bytes, verifier-derived V4 parent constants, and raw nonce proofs, followed by the exact canonical native receipt. It is prover input, not a compact proof or certificate admission result.
Definition at line 129 of file certificate_nonce_parent_prover_input.cpp.
References purify::BindingMismatch, purify::puresign_plusplus::TopicProofCache::build(), purify::puresign_plusplus::CertificateNonceNativeReceipt::certificate_context_digest(), purify::checked_mul_size(), purify::EmptyInput, purify::InternalMismatch, purify::puresign_plusplus::NonceProof::kSerializedSize, purify::puresign_plusplus::CertificateNonceParentAccumulator::leaves(), purify::accountable::nonce_evaluation_input(), purify::Overflow, purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare(), PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, purify::require_secp_context(), purify::puresign_plusplus::CertificateNonceNativeReceipt::responses(), serialize_certificate_nonce_native_receipt(), purify::size_fits_u64(), purify::SizeMismatch, purify::unexpected_error(), and purify::puresign_plusplus::CertificateNonceParentAccumulator::verify_native_receipt().
|
nodiscard |
Serialize the homogeneous linear receipt and its exact raw leaves.
The CertJWit3 stream carries one reduction and one bound transition beside every raw leaf. It has no detached native receipt or tree suffix. Bytes are returned only after replay reaches the final native decision.
Definition at line 324 of file certificate_nonce_parent_prover_input.cpp.
References purify::puresign_plusplus::CertificateNonceLeafAccumulator::basis(), purify::BindingMismatch, purify::puresign_plusplus::TopicProofCache::build(), purify::puresign_plusplus::CertificateNonceLinearReceipt::certificate_context_digest(), purify::checked_mul_size(), purify::bppp::accumulation::Basis::digest(), purify::EmptyInput, purify::InternalMismatch, purify::puresign_plusplus::NonceProof::kSerializedSize, purify::puresign_plusplus::CertificateNonceLinearReceipt::kStepSerializedSize, purify::puresign_plusplus::CertificateNonceParentAccumulator::leaves(), purify::accountable::nonce_evaluation_input(), purify::Overflow, purify::puresign_plusplus::CertificateNonceLeafAccumulator::prepare(), PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, purify::require_secp_context(), purify::puresign_plusplus::CertificateNonceLinearReceipt::responses(), purify::bppp::accumulation::serialize_algebraic_step(), purify::size_fits_u64(), purify::SizeMismatch, purify::unexpected_error(), and purify::puresign_plusplus::CertificateNonceParentAccumulator::verify_linear_receipt().
|
nodiscard |
Canonical native witness encoding; serialization is not verification.
Definition at line 1137 of file certificate_nonce_parent_accumulation.cpp.
References purify::puresign_plusplus::CertificateNonceLeafAccumulator::basis(), purify::puresign_plusplus::CertificateNonceNativeReceipt::certificate_context_digest(), certificate_nonce_native_receipt_size(), purify::bppp::accumulation::Basis::digest(), purify::InternalMismatch, purify::puresign_plusplus::CertificateNonceNativeReceipt::kStepSerializedSize, purify::puresign_plusplus::CertificateNonceParentAccumulator::leaves(), PURIFY_ASSIGN_OR_RETURN, PURIFY_RETURN_IF_ERROR, purify::require_secp_context(), purify::puresign_plusplus::CertificateNonceNativeReceipt::responses(), purify::bppp::accumulation::serialize_algebraic_step(), purify::puresign_plusplus::CertificateNonceNativeReceipt::tree_proofs(), and purify::unexpected_error().
Referenced by serialize_accepted_certificate_nonce_parent_witness().
|
nodiscard |
Serialize independently resolved public certificate facts for proving.
Every field comes from the private-constructor manifest resolution. The frame contains no proof- or peer-supplied context, count, or manifest.
Definition at line 95 of file certificate_nonce_parent_prover_input.cpp.
References purify::puresign_plusplus::CertificateNonceRecursiveManifest::bytes(), purify::puresign_plusplus::CertificateNonceRecursiveManifestResolution::certificate_context_digest(), purify::puresign_plusplus::CertificateNonceRecursiveManifestResolution::manifest(), purify::Overflow, purify::size_fits_u64(), purify::puresign_plusplus::CertificateNonceRecursiveManifestResolution::step_digests(), purify::puresign_plusplus::CertificateNonceRecursiveManifestResolution::total_responses(), and purify::unexpected_error().
|
inlineconstexpr |
Fixed external public frame consumed by the certificate prover.
Definition at line 23 of file certificate_nonce_parent_prover_input.hpp.
|
inlineconstexpr |
Exact wire size selected by certificate-parent qualification.
Definition at line 22 of file certificate_parent_verifier.hpp.