Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update EIP-2537: Remove MUL precompiles #8945

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 9, 2024

  1. Update EIP-2537: Remove MUL precompiles

    This removes `BLS12_G1MUL` and `BLS12_G2MUL` precompiles because
    they are trivially replaceable by corresponding MSM precompiles.
    
    This reduces the number of precompile's addresses defined in this EIP
    from 9 to 7. The addresses of remaining 7 precompiles are changed
    to be continues.
    
    The Rationale entry describes why this change make sense.
    Additionally, the cost of MSM for single input (`k==1`) has been
    corrected to match the original MUL cost. The specification now
    suggests how this case should be implemented.
    Morever, because of the ABI compatibility between MUL and MSM
    all existing tests for MULs can be easily converted to tests for MSMs.
    
    The PoC of MUL and MSM precompiles equivalence is provided in
    [evmone PR#1042](ethereum/evmone#1042).
    chfast committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    40cc72d View commit details
    Browse the repository at this point in the history