Skip to content

Addition of an RSA validation optimization #6299

@dangerousfood

Description

@dangerousfood

🧐 Motivation
I replaced my SolRsaVerify library with the OpenZeppelin library. After replacing it there was no optimization equivalent in the OpenZeppelin version. Could you add this feature to the OpenZeppelin library? The difference is ~2,300 gas units on a RSA-2048 signature validation.

https://github.com/adria0/SolRsaVerify/blob/master/src/RsaVerifyOptimized.sol

📝 Details
Add an additional method to the RSA.sol named pkcs1Sha256Optimized with an identical interface but optimized gas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions