Skip to main content

Module permutation

Module permutation 

Source
Expand description

Relations over evaluations of a permutation, and the witnesses proving them.

A PermutationRelation is a Permutation over wires: each call it receives is recorded as a query, the pair of input and output wires, and becomes one constraint of the PermutationInstance it compiles to. A PermutationWitnessBuilder wraps the concrete permutation and records the values that flowed through the same calls, the trace that is the PermutationWitness. Code written once against DuplexSpongeInterface runs over either.

Structs§

LinearEquation
The equation Σ weight_i · var_i = image.
PermutationInstance
A validated relation, ready for a proof system.
PermutationRelation
A relation over evaluations of a permutation acting on WIDTH wires.
PermutationWitness
The trace of a permutation: the witness for a PermutationInstance.
PermutationWitnessBuilder
A Permutation that records the values flowing through permutation.
QueryAnswerPair
One evaluation of the permutation: the state it read and the state it wrote. Over wires in a relation, over values in a witness.