account-abstraction

Solid

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

AI & Automation 80 stars 25 forks Updated yesterday 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
6 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category