Feat/add exp gate (#257)

* add exponentiation gate to common_data_for_recursion

* fix: use new_from_config

Co-authored-by: Eduard S. <eduardsanou@posteo.net>

---------

Co-authored-by: Eduard S. <eduardsanou@posteo.net>
This commit is contained in:
Sunghyeon Jo 2025-06-06 02:37:15 -07:00 committed by GitHub
parent 7bc0bd08d2
commit e8edbbc1c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -342,6 +342,7 @@ pub fn common_data_for_recursion<I: InnerCircuit>(
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(&config, 4)),
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(&config, 5)),
GateRef::new(plonky2::gates::random_access::RandomAccessGate::new_from_config(&config, 6)),
GateRef::new(plonky2::gates::exponentiation::ExponentiationGate::new_from_config(&config)),
// It would be better do `CosetInterpolationGate::with_max_degree(4, 6)` but unfortunately
// that plonk2 method is `pub(crate)`, so we need to get around that somehow.
GateRef::new(coset_interpolation_gate(