Closed tsunrise closed 2 years ago
Currently, domain.query_position_to_coset returns all elements in coset. We should make it simply return updated gen and offset instead, because users can use gen and offset to do some custom optimization.
domain.query_position_to_coset
gen
offset
pub fn query_position_to_coset( &self, query_pos: &[Boolean<F>], coset_dim: u64, - ) -> Result<Vec<FpVar<F>>, SynthesisError> { + ) -> Result<Self, SynthesisError> {
Problem Definition
Currently,
domain.query_position_to_coset
returns all elements in coset. We should make it simply return updatedgen
andoffset
instead, because users can usegen
andoffset
to do some custom optimization.Proposal
For Admin Use