1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! ZK module — hash-based proof constructions, **not** soundness-checked SNARK/STARK
//!
//! - [`stark`](crate::zk::stark) — Merkle tree + Horner-method evaluation, not a real zk-STARK
//! - [`snark`](crate::zk::snark) — hash commit/challenge/response, not a real zk-SNARK (`verify()`
//! doesn't check witness binding)
//! - [`hybrid`](crate::zk::hybrid) — selects between the two above
//! - [`entanglement`](crate::zk::entanglement) — hash-chain aggregation with a simulated, self-satisfying "CHSH" score
//!
//! Real ML-DSA-65 (FIPS 204) signing appears inside [`snark::aggregate`](crate::zk::snark::aggregate) and
//! [`entanglement::aggregate_recursive`](crate::zk::entanglement::EntanglementEngine::aggregate_recursive) — see each module's doc comment and the crate
//! README's "What runs today vs. what is designed" for the full accounting.
pub use EntanglementEngine;
pub use ;
use cratePrivacyError;
use cratePrivacyProof;
/// Generate a ZK proof that a manifold path is a valid geodesic.
///
/// Used by the obfuscation crate to generate DDOP UVI receipts proving that
/// a routing path through the 5D Riemannian manifold is a valid geodesic.
///
/// # Algorithm
/// 1. Compute `stmt_hash = SHA-256(statement_hash)` (normalise to 32 bytes)
/// 2. Compute `wit_hash = SHA-256(path_witness)`
/// 3. Mix chaos entropy: `seed = SHA-256(chaos_seed || "manifold-path-v1")`
/// 4. Call [`HybridZkLayer::prove`] with [`ProofContext::Hybrid`]
///
/// # Parameters
/// - `statement_hash`: BLAKE3 hash of the path's start/end coordinates (any length)
/// - `path_witness`: serialized sequence of 5D coordinates along the path
/// - `chaos_seed`: entropy from the chaos oracle
///
/// # Errors
/// - [`PrivacyError::ProofGenerationFailed`] on SNARK/STARK failure