This PR implements ToConstraintField for AffineCurve, which is to facilitate implementations of recursive proofs. To do so, ToConstraintField is now implemented for all fields, in which a field can be represented by the field's BaseRepresentationField, defined as follows:
Fp320, Fp384, ... -> Themselves
Cubic of field X -> X's BaseRepresentationField
Quad of field X -> X's BaseRepresentationField
A few repetitions of requirements are used to make the Rust compiler happy.
This PR has been used (and tested) in the ongoing implementation of Marlin's constraints.
This PR implements
ToConstraintField
forAffineCurve
, which is to facilitate implementations of recursive proofs. To do so,ToConstraintField
is now implemented for all fields, in which a field can be represented by the field'sBaseRepresentationField
, defined as follows:A few repetitions of requirements are used to make the Rust compiler happy.
This PR has been used (and tested) in the ongoing implementation of Marlin's constraints.
Looking for initial feedback.