LibSecp256r1

This library allows the verification and parsing of secp256r1 signature verification.

Stars
10

Secp256r1 Curve Library In Huff

This repo contains a Huff contract of the basic curve operation of the secp256r1 curve.

Note

These contracts are unaudited and are not recommended for use in production.

The main usage of these contracts is to find out how much gas can be saved by using a Huff EntryPoint.

Gas calculations

TODO

Todo

  • inverse modulo
  • ec addition
  • ec double
  • ec multiply
  • verify signature for EIP-7212
  • Fix bugs
  • Gas estimations

Acknowledgements

Disclaimer

These smart contracts are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the user interface or the smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk.