EIP-7883 ModExp Analysis Report

Generated on 2025-07-21 13:34:56

Executive Summary

This report provides an analysis of EIP-7883's impact on ModExp operations based on 304,301 historical Ethereum mainnet calls using the pricing formula from the latest EIP-7883 specification.

Key Metrics

Overall Impact:

Economic Impact:

Updated Pricing Formula

The EIP-7883 specification introduces three key changes:

  1. Minimum gas cost: Increased from 200 to 500
  2. General multiplier: Removed division by 3 (effectively 3x increase)
  3. Large exponent multiplier: Doubled from 8 to 16 for exponents > 32 bytes
  4. Base multiplication complexity: Minimum of 16, doubles for sizes > 32 bytes

Parameter Analysis

Input Size Distributions

Statistical Summary:

ParameterMinMaxMeanMedianStd Dev
Bsize3238532.032.02.7
Esize13232.032.00.4
Msize3238432.032.02.7

Common Size Combinations:

Base SizeExponent SizeModulus SizeCountPercentage
323232304,225100.0%
2563256310.0%
1281128270.0%
12832128100.0%
128312860.0%
385338420.0%

Exponent Analysis

Fermat Prime Usage: 1,351 calls (0.4%)

Most Common Exponent Values:

RankExponentCountPercentage
10x30644e72...66,11521.73%
20xffffffff...54,65617.96%
30x100000050,59916.63%
40xffffff43,88714.42%
50xffffffff...28,9559.52%
60xc19139cb...20,6446.78%
70x3fffffff...15,4635.08%
80x10000026,7032.20%
90xa59c346,3522.09%
100x20000001,6990.56%

Gas Cost Analysis

Cost Distribution

Cost Increase RangeCall CountPercentage
<500 gas116,97438.4%
500-1K gas00.0%
1K-5K gas187,27861.5%
5K-10K gas160.0%
10K-50K gas310.0%
>50K gas20.0%

Cost Increase Percentiles

PercentileGas Increase
10th300
25th300
50th2,699
75th2,720
90th2,720
95th2,720
99th2,720

Entity Analysis

Most Impacted Senders

RankAddressTotal Increase (gas)Avg IncreaseCall CountCurrent CostNew Cost
10x00000062...14,062,3111,499.509,3787,263,26121,325,572
20x7202932b...8,315,0402,7203,0574,157,52012,472,560
30xaaf7b278...7,219,891902.378,0013,908,54111,128,432
40x454ef2f6...7,190,4302,6782,6853,592,53010,782,960
50x54ab716d...6,794,898913.297,4403,673,39810,468,296
60xfcb73f64...6,216,9271,499.504,1463,211,0779,428,004
70xf3b07f67...3,045,348912.333,3381,646,5484,691,896
80x4337001f...2,777,1202,7201,0211,388,5604,165,680
90x4337003f...2,717,2802,7209991,358,6404,075,920
100x4337002c...2,652,0002,7209751,326,0003,978,000
110x4337005d...2,589,4402,7209521,294,7203,884,160
120x4337004e...2,586,7202,7209511,293,3603,880,080
130x58d14960...1,476,481939.841,571795,6312,272,112
140x6f9d816c...1,416,9752,699525708,2252,125,200
150xc2adcfcc...1,232,5891,499.50822636,6391,869,228

Most Impacted Contracts

RankContractTotal Increase (gas)Avg per CallCallsUnique UsersCurrent CostNew Cost
10x5ff137d4...30,654,4002,72011,2707315,327,20045,981,600
20x68d30f47...14,062,3111,499.509,37817,263,26121,325,572
30x8c0bfc04...13,028,282951.2513,696177,011,18220,039,464
40x5d8ba173...9,141,460899.7510,16094,950,46014,091,920
50x870679e1...7,190,4302,6782,68513,592,53010,782,960
60x3b4d794a...6,216,9271,499.504,14613,211,0779,428,004
70xa13baf47...1,416,9752,6995251708,2252,125,200
80xd7f86b4b...1,260,4332,6994673629,9831,890,416
90x02993cdc...1,232,5891,499.508221636,6391,869,228
100xece9cf6a...1,130,5741,752.836451577,7461,708,320
110x7cf3876f...1,124,6251,499.507501580,8751,705,500
120x150fe8db...792,6882,6782961396,0481,188,736
130x00000000...685,4402,7202527342,7201,028,160
140xd19d4b5d...575,8081,499.503841297,408873,216
150x92ef6af4...477,7232,6991771238,773716,496

Key Findings and Recommendations

Impact Summary

  1. Universal Impact: 100% of ModExp calls will see cost increases under the updated EIP-7883
  2. Significant Increases: Average 2.8x cost increase across all operations
  3. Predictable Changes: Cost increases follow clear patterns based on input sizes

Recommendations by Stakeholder

For Affected Users:

For Infrastructure Providers:


Report generated from historical Ethereum mainnet data. All gas calculations verified against the latest EIP-7883 specification.