ZeroDev Passkeys + Session Keys Demo

This demo showcases the ZeroDev progressive passkey validator (which uses ERC-7212 when available) combined with session keys.

Steps:

  • Register (create a new passkey) or login (use an existing passkey).
  • Send a UserOp, and observe that the first UserOp takes a lot of gas.
    • This is because we need to verify the passkey.
  • Send more UserOps, and observe that they all cost a lot less gas than the first one.
    • This is because the UserOps are sent through cheap ECDSA session keys.

To sum up, by combining passkeys with session keys, we get the best of both worlds where the user account is secured by their own passkey, but UserOps are still cheap due to using ECDSA session keys.