Function dusk_jubjub::batch_normalize[][src]

pub fn batch_normalize<'a>(
    y: &'a mut [JubJubExtended]
) -> impl Iterator<Item = JubJubAffine> + 'a
Expand description

This takes a mutable slice of JubJubExtendeds and “normalizes” them using only a single inversion for the entire batch. This normalization results in all of the points having a Z-coordinate of one. Further, an iterator is returned which can be used to obtain JubJubAffines for each element in the slice.

This costs 5 multiplications per element, and a field inversion.