Function curve25519_dalek::ristretto::vartime::multiscalar_mult [] [src]

pub fn multiscalar_mult<'a, 'b, I, J>(scalars: I, points: J) -> RistrettoPoint where
    I: IntoIterator<Item = &'a Scalar>,
    J: IntoIterator<Item = &'b RistrettoPoint>, 

Given a vector of public scalars and a vector of (possibly secret) points, compute

c_1 P_1 + ... + c_n P_n.

Input

A vector of Scalars and a vector of RistrettoPoints. It is an error to call this function with two vectors of different lengths.