← Cryptography guide

K071 / Advanced and next-generation cryptography

Zero-knowledge proof

zero knowledge proof zk-SNARK · Survey date 2026-12-05

A zk-SNARK proves that a computation has a given output while hiding part of its input, using a succinct, non-interactive and quickly verifiable proof.

CRYPTOGRAPHY LAB / K071

Cryptography Lab · Zero-knowledge proof

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Toy educational example

Interactive Schnorr proof (toy; NOT zk-SNARK/STARK)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Open lab →

Definition and overview
A zk-SNARK proves that a computation has a given output while hiding part of its input, using a succinct, non-interactive and quickly verifiable proof. Source document ↗
Classification and reversibility
Proof system, not encryption/encoding/hash; verify proof rather than decrypt to recover secret witness. Source document ↗
Key or secret requirements
Not confirmed in the survey
Operating principle and structure
Convert computation to arithmetic circuit/polynomials; Setup/Prove/Verify. Verifier checks polynomial identities using secret evaluation points/random sampling. Source document ↗
Key size, block size and parameters
Not confirmed in the survey
Security strength and recommendation
Security depends on scheme, implementation and curve. As of 2026-09 no general final ZKP standard; ECC-based may be quantum-vulnerable, STARKs considered potentially post-quantum. Source document ↗
Known attacks and vulnerabilities
Known risks include Fiat-Shamir implementation errors enabling Frozen Heart-type proof forgery, under-constrained circuits and obsolete hashes. Source document ↗
Standards and certification
NIST PEC pursues ZKP standardization; as of 2026-09 no general final NIST/IETF ZKP standard, only individual curve/commitment standards. Source document ↗
Typical uses
Computation integrity proofs, privacy-preserving verification, zk-rollup transaction batches and MPC. Source document ↗
Implementations, libraries and tools
Circom/snarkjs, libsnark, zk-toolbox toolchains. Source document ↗
Decryption or decoding
Not confirmed in the survey
Advantages
Small, noninteractive proof; verification can be fast despite lengthy computation and some inputs remain hidden. Source document ↗
Limitations and cautions
Trusted setup dependence (e.g. KZG), potential quantum vulnerability of ECC, circuit/implementation errors and immature standards. Source document ↗
Distinguishing encryption, encoding and hashing
zk-SNARK is a proof system; Poseidon hash may be internal, but proof is not decrypted. Source document ↗

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

Input public statement (e.g. matches hash) and secret witness (original data) into circuit to generate proof; verifier confirms condition from proof alone. No actual secrets in example.

Procedure

Write/compile computation as circuit/R1CS. Setup proving/verification parameters and discard toxic waste (skip for transparent setup). Prover generates proof from statement/witness; verifier uses verification key. No encryption, encoding, decryption or decoding.

Scenario

Verify zk-rollup batch validity without exposing original transactions, privacy credentials/KYC, MPC and game-shuffle correctness. Verifier checks proof, does not receive secret witness.

Pitfalls and alternatives

Do not decrypt proofs like ciphertext. Avoid toxic-waste exposure, under-constrained circuits, Fiat-Shamir errors and old hashes; use audited libraries and suitable curve/PCS.

References