pub fn shifted_powers<'a>(&'a self, degree_bound: impl Into<Option<usize>>) -> Option<kzg10::Powers<'a, E>> {
        self.shifted_powers.as_ref().map(|shifted_powers| {
            let powers_range = if let Some(degree_bound) = degree_bound.into() {
                assert!(self.enforced_degree_bounds.as_ref().unwrap().contains(&degree_bound));
                let max_bound = self.enforced_degree_bounds.as_ref().unwrap().last().unwrap();
                (max_bound - degree_bound)..
            } else {
                0..
            };
            let ck = kzg10::Powers {
                powers_of_g: (&shifted_powers[powers_range]).into(),
                powers_of_gamma_g: self.powers_of_gamma_g.as_slice().into(),
            };
            ck
        })
    }
/// Obtain powers for committing to shifted polynomials.
Obtain powers for committing to shifted polynomials.
Obtain powers for committing to shifted polynomials .
pub fn shifted_powers<'a>(&'a self, degree_bound: impl Into<Option<usize>>) -> Option<kzg10::Powers<'a, E>> {
        self.shifted_powers.as_ref().map(|shifted_powers| {
            let powers_range = if let Some(degree_bound) = degree_bound.into() {
                assert!(self.enforced_degree_bounds.as_ref().unwrap().contains(&degree_bound));
                let max_bound = self.enforced_degree_bounds.as_ref().unwrap().last().unwrap();
                (max_bound - degree_bound)..
            } else {
                0..
            };
            let ck = kzg10::Powers {
                powers_of_g: (&shifted_powers[powers_range]).into(),
                powers_of_gamma_g: self.powers_of_gamma_g.as_slice().into(),
            };
            ck
        })
    }
pub fn shifted_powers < ' a > ( & ' a self , degree_bound : impl Into < Option < usize > > ) -> Option < kzg10 :: Powers < ' a , E > > { self . shifted_powers . as_ref ( ) . map ( | shifted_powers | { let powers_range = if let Some ( degree_bound ) = degree_bound . into ( ) { assert ! ( self enforced_degree_bounds as_ref ( ) unwrap ( ) contains ( degree_bound ) ) ; let max_bound = self . enforced_degree_bounds . as_ref ( ) . unwrap ( ) . last ( ) . unwrap ( ) ; ( max_bound - degree_bound ) .. } else { 0 .. } ; let ck = kzg10 :: Powers { powers_of_g : ( & shifted_powers [ powers_range ] ) . into ( ) , powers_of_gamma_g : self . powers_of_gamma_g . as_slice ( ) . into ( ) , } ; ck } ) }
Obtain powers for committing to shifted polynomials.
Obtain powers for committing to shifted polynomials .
&'a self
degree_bound
impl Into<Option<usize>>
&'a self
degree_bound
impl Into<Option<usize>>