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

pow

abstract fun pow(exponent: UInt256!): T (source)

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

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

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

Parameters

exponent - UInt256!: The exponent to which this value is to be raised.

Return
T: this<sup>exponent</sup> mod 2<sup>256</sup>

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

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

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

Parameters

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

Return
T: this<sup>exponent</sup> mod 2<sup>256</sup>