Skip to content

Commit

Permalink
EIP101: EXPMOD throws if M <= E
Browse files Browse the repository at this point in the history
This follows the change in
ethereum/EIPs@c4a771e
  • Loading branch information
pirapira committed Mar 22, 2017
1 parent f4dde80 commit b9c62c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ \section{Precompiled Contracts}\label{app:precompiled}
B &=& I_\mathbf{d}[64..(63 + l_B)] \\
E &=& I_\mathbf{d}[(64 + l_B)..(63 + l_B + l_E)] \\
M &=& I_\mathbf{d}[(64 + l_B + l_E)..(|I_\mathbf{d}| - 1)] \\
\Xi_{\mathtt{EXPMOD}}(\boldsymbol{\sigma}, g, I) &\equiv& (\varnothing, 0, A^0, ()) \quad \text{if} \quad |I_\mathbf{d}| < 64 + l_B + l_E \\
\Xi_{\mathtt{EXPMOD}}(\boldsymbol{\sigma}, g, I) &\equiv& (\varnothing, 0, A^0, ()) \quad \text{if} \quad |I_\mathbf{d}| < 64 + l_B + l_E\,\vee\,M\le B \\
g_r &=& G_{modexpbase} + G_{arithword} \Big\lceil \dfrac{|I_\mathbf{d}|}{32} \Big\rceil + |M|^2 |E| / G_{quaddivisor} \\
\mathbf{o} &=&
\begin{cases}
Expand Down

0 comments on commit b9c62c5

Please sign in to comment.