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.
TODO
- inverse modulo
- ec addition
- ec double
- ec multiply
- verify signature for EIP-7212
- Fix bugs
- Gas estimations
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.