pub fn powWithEncodedPublicExponent(self: Self, x: Fe, e: []const u8, endian: Endian) NullExponentError!Fe NullExponent871
872
873 pub fn powWithEncodedPublicExponent(self: Self, x: Fe, e: []const u8, endian: Endian) NullExponentError!Fe {
return self.powWithEncodedExponentInternal(x, e, endian, true);
}
Returns x^e (mod m), the exponent being public and 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 secret,
powWithEncodedExponentmust be used instead.