Work index/Applied cryptography

Hidden Path

A path can be proven without being shown. Draw four steps through a public maze and share a receipt anyone can verify.

012345678
Public maze 0 → 8 · 4 steps
Hidden Path, depth 2, Mechanism

Mechanism

Inside a hidden path

The graph fixes the start, finish and length. Follow the private witness from its commitment to a public pairing check.

Commit

C = Poseidon(tag, graph, packed route, salt)

Read the five vertex IDs left to right as base-16 digits. Hash that integer with domain tag 1178879025, graph ID 1 and a fresh 128-bit salt. Only C becomes a public signal.

Read the circuit

Constrain

v₀ = 0, v₄ = 8, (vᵢ, vᵢ₊₁) ∈ E

Each position must equal one of nine vertices. Each adjacent pair must take a declared edge east or south. Every edge strictly increases the vertex ID, so vertices cannot repeat. The circuit checks the salt’s bit width and recomputes C.

Read the circuit

Prove

Private witness = five vertices + salt

The worker computes the witness with the compiled circuit and generates a Groth16 proof with the v1 proving key. Only the proof, commitment and version identifiers enter the public receipt.

Inspect the worker

Verify

Verify(v1 key, [C], proof)

A fresh browser validates the receipt’s shape, matches its key identifier, hashes its own verification key and checks the pairing equation. Changing the public commitment changes the equation.

Inspect the worker

What stays private

Six routes fit the public graph. The random salt protects a route commitment against simply trying those six values. Anyone who sees the input device may see the chosen path. A shared receipt can be replayed and carries no identity or timestamp.

Setup assumptions

Groth16 soundness depends on the circuit, pairing assumptions and a trusted setup whose secret randomness is discarded. Both contributions for v1 ran on one machine. This educational circuit and setup await independent review.

For the underlying proving system, see Jens Groth’s paper On the Size of Pairing-based Non-interactive Arguments.