Function fullcodec_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 JubJubExtended
s 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 JubJubAffine
s for each element in the
slice.
This costs 5 multiplications per element, and a field inversion.