Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 770 Bytes

0A.mdx

File metadata and controls

30 lines (20 loc) · 770 Bytes
fork group
Frontier
Stop and Arithmetic Operations

Index 1 is top of the stack. See PUSH.

Stack input

  1. a: integer base.
  2. exponent: integer exponent.

Stack output

  1. a ** exponent: integer result of the exponential operation modulo 2256.

Examples

* Input Output * * Input Output
1 10 100 * 1 2 4
2 2 * 2 2

Reproduce in playground.

Error cases

The state changes done by the current context are reverted in those cases:

  • Not enough gas.
  • Not enough values on the stack.