BEP-7212: Add Secp256r1 Precompile

Abstract

With the recent rise of account abstraction and more integration of blockchain with Web2 applications, there has been an increasing need to validate Secp256r1-based signatures.
Many applications/key management systems like Passkey, Okta, etc are utilizing Secp256r1 signature scheme.

Conventionally, the validation of Secp256r1 signature was performed fully on-chain through smart contracts, hence degrading the UX of users due to high gas fees (e.g., 180K~350K gas unit depending on the implementation).

With the adoption of this implementation, BSC Network, which is one of the most used and popular chains, will be able to accommodate more seamless integration with these Web2 applications and use cases.

Implementation

1 Like