pub fn powWithEncodedExponent(self: Self, x: Fe, e: []const u8, endian: Endian) NullExponentError!Fe NullExponent862
863
864 pub fn powWithEncodedExponent(self: Self, x: Fe, e: []const u8, endian: Endian) NullExponentError!Fe {
return self.powWithEncodedExponentInternal(x, e, endian, false);
}
Returns x^e (mod m), with the exponent provided as a byte string. Exponents are usually small, so this function is faster than
powPublicas a field element doesn't have to be created if a serialized representation is already available.If the exponent is public,
powWithEncodedPublicExponent()can be used instead for a slight speedup.