unicornultrafoundation / go-u2u

Implementation of U2U Network in Golang
https://u2u.xyz
GNU Lesser General Public License v3.0
4 stars 2 forks source link

Implement P256 precompile to support passkeys #108

Open khoau2u opened 1 month ago

khoau2u commented 1 month ago

Abstraction Following EIP-7212, apply on U2U to allow efficient and cheaper on-chain P256 key pairs.

Motivation Currently, most passkeys system exclusively support secp256r1 elliptic curve (P-256), offering a secure and convenient method for user identity verification – it is needed and is ideal for the upcoming account abstraction enabled wallets. However, the even fastest Yul implementation of P-256 consumes upwards of 1M gas, making it prohibitively expensive for many smart wallets to use passkeys.

khoau2u commented 1 month ago

Some projects that are prepared to use eip-7212: webauthn-sol p256-verifier