tuweni / org.apache.tuweni.units.bigints / UInt384Value / pow

pow

abstract fun pow(exponent: UInt384): T (source)

Returns a value that is (this<sup>exponent</sup> mod 2<sup>384</sup>)

This calculates an exponentiation over the modulus of 2^384.

Note that exponent is an UInt384 rather than of the type T.

Parameters

exponent - The exponent to which this value is to be raised.

Return
this<sup>exponent</sup> mod 2<sup>384</sup>

abstract fun pow(exponent: Long): T (source)

Returns a value that is (this<sup>exponent</sup> mod 2<sup>384</sup>)

This calculates an exponentiation over the modulus of 2^384.

Parameters

exponent - The exponent to which this value is to be raised.

Return
this<sup>exponent</sup> mod 2<sup>384</sup>