ZK
Circuit
A circuit can be represented as follows:
Here, denotes the public input, and denotes the witness (i.e., private input).
The circuit outputs if the conditions are satisfied; otherwise, it returns .
Example
Suppose you want to create a circuit that checks whether you know the square root of a value without revealing the square root itself. The circuit can be expressed as:
This verifies that is a valid square root of the public input .
Last updated