tejas0111/pharos/account-abstraction
Claude Code and agent skill by tejas0111/pharos
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install tejas0111/pharos/account-abstractionSKILL.md
The same SKILL.md was published earlier as tejas0111/pharos/account-abstraction.
Account Abstraction (ERC-4337)
Overview
Pharos integrates ERC-4337 account abstraction to enable smart contract wallets that can execute transactions without externally owned account (EOA) signatures. This subskill covers building UserOperations, integrating with the SPN paymaster for gas sponsorship, and using ephemeral keys with ZkLogin.
EntryPoint v0.7 (Atlantic Testnet): 0x0000000071727De22E5E9d8BAf0edAc6f37da032
Architecture
UserOperation Flow
PackedUserOperation Structure
Building a UserOperation (Ethers v6)
Sending a UserOp via Bundler
Paymaster Lifecycle
The SPN Paymaster handles gas sponsorship in three phases:
- Validation — EntryPoint calls
validatePaymasterUserOp()to check whitelist status and budget - Execution — The UserOperation executes via the wallet contract
- Post-Execution — EntryPoint calls
postOp()to deduct gas costs from the paymaster's deposit
Safe Smart Account Integration
Security Patterns
| Pattern | Implementation | Risk if Omitted | |
|---|---|---|---|
| EntryPoint validation | Verify address matches canonical 0x0000...a032 | Fake EntryPoint can drain wallets | |
| Nonce management | Use getNonce() before each UserOp | Replay attacks | |
| Paymaster budget caps | Enforce max spend per UserOp | Griefing (draining paymaster) | |
| Ephemeral key rotation | Rotate session keys every 24h | Long-lived key compromise | |
| Verification gas bound | Cap verificationGasLimit to 300k | DoS via expensive validation |
Pharos-Specific Addresses
| Component | Atlantic (Testnet) | |
|---|---|---|
| EntryPoint v0.7 | 0x0000000071727De22E5E9d8BAf0edAc6f37da032 | |
| SPN Paymaster | Address from PharosSPNPaymaster.sol deployment | |
| ZkLogin Verifier | Address from PharosZkLogin.sol deployment |
Related Subskills
zero-knowledge-login— Identity abstraction with ephemeral keyssponsored-transactions— SPN paymaster integrationwallet-and-transaction-ui— Frontend wallet connection patterns
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill/subskills/account-abstraction/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tejas0111/pharos/account-abstraction)