[][src]Function bulletproofs::util::scalar_exp_vartime

pub fn scalar_exp_vartime(x: &Scalar, n: u64) -> Scalar

Raises x to the power n using binary exponentiation, with (1 to 2)*lg(n) scalar multiplications. TODO: a consttime version of this would be awfully similar to a Montgomery ladder.