pub fn index_by(&self, indices: &[usize]) -> Self {
        let mut indexed_powers_of_g = vec![E::G1Affine::zero(); self.powers_of_g.len()];
        indices
            .iter()
            .zip(self.powers_of_g.iter())
            .for_each(|(&i, &g)| indexed_powers_of_g[i] = indexed_powers_of_g[i] + g);
        Self {
            powers_of_g2: self.powers_of_g2.clone(),
            powers_of_g: indexed_powers_of_g,
        }
    }
/// Obtain a new preprocessed committer key defined by the indices `indices`.
Obtain a new preprocessed committer key defined by the indices `indices`.
Obtain a new preprocessed committer key defined by the indices ` indices ` .
pub fn index_by(&self, indices: &[usize]) -> Self {
        let mut indexed_powers_of_g = vec![E::G1Affine::zero(); self.powers_of_g.len()];
        indices
            .iter()
            .zip(self.powers_of_g.iter())
            .for_each(|(&i, &g)| indexed_powers_of_g[i] = indexed_powers_of_g[i] + g);
        Self {
            powers_of_g2: self.powers_of_g2.clone(),
            powers_of_g: indexed_powers_of_g,
        }
    }
pub fn index_by ( & self , indices : & [ usize ] ) -> Self { let mut indexed_powers_of_g = vec ! [ E G1Affine zero ( ) self powers_of_g len ( ) ] ; indices . iter ( ) . zip ( self . powers_of_g . iter ( ) ) . for_each ( | ( & i , & g ) | indexed_powers_of_g [ i ] = indexed_powers_of_g [ i ] + g ) ; Self { powers_of_g2 : self . powers_of_g2 . clone ( ) , powers_of_g : indexed_powers_of_g , } }
Obtain a new preprocessed committer key defined by the indices `indices`.
Obtain a new preprocessed committer key defined by the indices ` indices ` .
&self
indices
&[usize]