account-abstraction

Solid

Starknet account abstraction correctness and security guidance for validate/execute paths, nonces, signatures, and session policies.

AI & Automation 80 stars 26 forks Updated today MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Account Abstraction ## When to Use - Reviewing account contract validation and execution paths. - Designing session-key policy boundaries. - Validating nonce and signature semantics. ## When NOT to Use - General contract authoring not involving account semantics. ## Quick Start 1. Confirm `__validate__` enforces lightweight, bounded checks. 2. Confirm `__execute__` enforces policy and selector boundaries. 3. Verify replay protections (nonce/domain separation) for all signature paths. 4. Add regression tests for each fixed session-key or policy finding. 5. Run `cairo-auditor` for final AA/security pass before merge. ## Core Focus - `__validate__` constraints and DoS resistance. - `__execute__` policy enforcement correctness. - Replay protection and domain separation. - Privileged selector and self-call protection. ## Workflow - Main account-abstraction workflow: [default workflow](workflows/default.md) ## References - Module index: [references index](references/README.md) ## starknet.js Example ```ts import { Account, CallData, RpcProvider } from "starknet"; const provider = new RpcProvider({ nodeUrl: process.env.STARKNET_RPC! }); const account = new Account(provider, process.env.ACCOUNT_ADDRESS!, process.env.PRIVATE_KEY!); // Validate preview (debug-only): inspect __validate__ behavior with the current nonce. const nonce = await account.getNonce(); const call = { contractAddress: process.env.TARGET!, entrypoint: "set_limit", calldata: CallData.compile({ valu...

Details

Author
keep-starknet-strange
Repository
keep-starknet-strange/starknet-agentic
Created
7 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

auditing-account-abstraction-and-paymaster-trust

Audit an ERC-4337 account-abstraction deployment for trust misplaced in the user-operation lifecycle: a smart account whose validation accepts a signature or nonce it should reject, a paymaster that agrees to sponsor gas for operations it should not so an attacker drains its deposit, a bundler or entry-point assumption that lets a user operation be replayed or reordered for gain, and validation logic that reads mutable state or reaches outside its allowed scope. Covers smart-contract wallets, paymasters, bundlers, and the entry point in an account-abstraction stack where a user operation is validated and sponsored before it executes. Use when a user operation is validated, paid for, and executed by separate parties and that trust split is the boundary. The crafted user operation is the source, the drained paymaster or unauthorized execution is the sink, and the over-permissive validation or sponsorship rule is the bug.

5 Updated 2 days ago
UnboundCompute
AI & Automation Listed

erc4337-account-abstraction

Detect ERC-4337 account-abstraction bugs — validateUserOp storage-rule violations, paymaster postOp DoS, session-key scope bypasses, signature aggregation issues, EIP-7702 delegation risks. Activate on `validateUserOp`, `validatePaymasterUserOp`, `postOp`, `UserOperation`, `EntryPoint`, `IAccount`, `IPaymaster`, session-key modules, ERC-7579 modules, EIP-7702 authorization payloads.

37 Updated 3 weeks ago
iktok90-design
AI & Automation Solid

cairo-auditor

Security audit of Cairo/Starknet code. Trigger on "audit", "check this contract", "review for security". Modes - default (full repo), deep (+ adversarial reasoning), or specific filenames.

80 Updated today
keep-starknet-strange