Proof Lifecycle and Architecture
This section describes the lifecycle of a zero-knowledge (ZK) proof through quantum, and also gives a brief introduction to Quantum Aggregation Layer Architecture.
Last updated
This section describes the lifecycle of a zero-knowledge (ZK) proof through quantum, and also gives a brief introduction to Quantum Aggregation Layer Architecture.
Last updated
Protocol Proof Generation
Quantum Aggregation
Protocol Specific Action
Quantum Contract Verification
Each individual proof gets reduced to the same proof type, with public inputs as one keccak hash output . This leads to a final aggregation circuit which verifies variable number of reduced proofs of the same type.
The aggregation circuit does the following three things:
Compute reduction circuit's public inputs by combining the original verification key hash and original public inputs hash.
Verify correctness of each reduced proof against the reduction circuit's public input and verifier id corresponding to the original proving scheme used by the user.
The public input of the aggregation circuit is a batch merkle root called superRoot
where each leaf corresponds to an individual reduction proof.
Each individual leaf's value can be deduced using Hash(combined_vkey_hash||protocol_pis_hash)
In the smart contract, we store a bool mapping from superRoot
to true/false
. This map gets updated every time a superproof is submitted. At the user level, they only have to query this map and check if the superRoot
corresponding to their proof returns True
, and if the result they get is equal to True
, they have to just do a simple merkle inclusion check corresponding to this root which verifies that their proof was verified as part of this aggregated proof.
Protocol A generates a proof for its public inputs corresponding to some .
Protocol A submits to the quantum aggregation layer corresponding to some pre registered .
The quantum aggregation layer collects proofs from multiple protocols, including .
It generates an aggregated proof that encompasses all individual proofs.
The aggregated proof is verified on the Quantum Contract, upon successful verification the individual proofs within are considered valid
The Protocol A smart contract pre-stores , which is .
After aggregated proof verification, Protocol A requests quantum node for inclusion proof .
Protocol A sends its public inputs and the inclusion proof to its own smart contract.
The Protocol A Contract makes a cross-contract call to the Quantum Contract, providing , , and as inputs.
Quantum Contract verifies whether corresponding to the and is correct.