fn powWithEncodedExponent(self: Self, x: Fe, e: []const u8, endian: builtin.Endian) NullExponentError!Fe

Returns x^e (mod m), assuming that the exponent is public, and provided as a byte string. Exponents are usually small, so this function is faster than powPublic as a field element doesn’t have to be created if a serialized representation is already available.

Parameters

self: Self,
x: Fe,
e: []const u8,
endian: builtin.Endian,