ZK
Circuit
A circuit can be represented as follows:
Here, x denotes the public input, and w denotes the witness (i.e., private input).
The circuit outputs C(x,w)=1 if the conditions are satisfied; otherwise, it returns 0.
Example
Suppose you want to create a circuit that checks whether you know the square root of a value X without revealing the square root itself. The circuit can be expressed as:
This verifies that y is a valid square root of the public input X.
Symbols
P : Prover — the party who knows the witness and constructs a proof.
V : Verifier — the party who checks the validity of the proof.
A : Adversary — an attacker or a malicious party in the security model.
O : Oracle — an abstract function or idealized interface (e.g., random oracle).
π : The proof generated by the prover.
poly(⋅) : A polynomial function, typically used to express a bound of computational power of a party. (e.g., "runs in poly(λ) time").
λ : Security parameter — determines cryptographic strength; higher λ indicates stronger security.
Last updated