Introduce a LookupRangeCheck trait that provides common methods for a lookup range check.
Use this new trait as a generic parameter in configs, chips and tests that are using lookup.
Add tests for Lookup, ECC, Merkle, and Sinsemilla to verify that the verification key and the proof have not been modified by comparing them to those saved in a file.
Add the EccPointQ enum to handle public and private points for Q, which is the initialization point for the hashing function.
To adjust existing code to these modifications, developers will just need to import halo2_gadgets::utilities::lookup_range_check::LookupRangeCheck.
This Orchard PR demonstrates how to adapt the Orchard code.
This PR contains the following modifications:
LookupRangeCheck
trait that provides common methods for a lookup range check.EccPointQ
enum to handle public and private points for Q, which is the initialization point for the hashing function.To adjust existing code to these modifications, developers will just need to import
halo2_gadgets::utilities::lookup_range_check::LookupRangeCheck
. This Orchard PR demonstrates how to adapt the Orchard code.