safety

ERC-4337 smart wallet owned by a passkey; scoped session keys enable zero-popup transactions

ETHOnline 2026Shipped September 4, 2026 Quiet#gaming#infra
Visit Repo
safety banner

About

Every wallet interaction today means a signature prompt, which is fine for a rare high-value transfer but kills UX for anything interactive: games, trading bots, subscriptions. This project is a smart contract wallet (ERC-4337 account abstraction) owned by a passkey (Face ID / Touch ID / Windows Hello) instead of a seed phrase or browser extension. The owner can grant a scoped, time-boxed session key: a lightweight keypair generated in the browser that is only allowed to call one specific contract function, until a set expiry, up to a set number of times. Once granted, the dApp can send a burst of transactions signed by that session key with zero further wallet prompts. We demo this with a tiny on-chain clicker game: create your passkey wallet once, grant a session key once (one more Face ID prompt), then click away with no interruptions, exactly like a Web2 app, while every action is still a real, independently-authorized on-chain transaction.

How it's made

Built from scratch on top of eth-infinitism's reference ERC-4337 EntryPoint/BaseAccount (v0.6) in Foundry. SmartAccount.sol implements a single IAccount whose signature is a mode byte plus payload: mode 0 verifies a WebAuthn/secp256r1 assertion against the owner passkey public key using base-org/webauthn-sol (RIP-7212 precompile with a FreshCryptoLib fallback); mode 1 checks a plain ECDSA signature from a session key against an on-chain SessionKeyPermission struct (target contract, function selector, validUntil, maxUses) so a session key can never be used outside its granted scope. SmartAccountFactory.sol deploys accounts via CREATE2 for deterministic addresses. A GameContract.sol clicker is the demo target. Four Foundry tests drive the whole flow end-to-end through EntryPoint.handleOps: grant, click, hit the usage cap, reject an out-of-scope call, and revoke. The frontend (Next.js + viem + @simplewebauthn/browser) creates the passkey client-side, parses the COSE public key and DER signature manually to build the on-chain WebAuthnAuth struct, and signs UserOperations with either the passkey (owner actions) or a locally generated session key (gameplay). For demo reliability we relay signed UserOperations straight to EntryPoint.handleOps from a Next.js API route acting as a mock bundler against a local Anvil node, rather than depending on a live bundler network.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

QuietLast push 83 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

E-Lisa Simpson

E-Lisa Simpson showcases a framework to connect your wallets with AI agents without exposing your private keys.

OmniGas

OmniGas is an Smart Wallet that uses Biometric passkeys as private key. It allows users to select their favorite token to pay blockchain fees.