ev-node-explainer
Explains ev-node architecture, components, and internal workings. Use when the user asks how ev-node works, wants to understand the block package, DA layer, sequencing, namespaces, or needs architecture explanations. Covers block production, syncing, DA submission, forced inclusion, single vs based sequencer, and censorship resistance.
Install
mkdir -p .claude/skills/ev-node-explainer && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6510" && unzip -o skill.zip -d .claude/skills/ev-node-explainer && rm skill.zipInstalls to .claude/skills/ev-node-explainer
About this skill
ev-node Architecture Explainer
ev-node is a sovereign rollup framework that allows building rollups on any Data Availability (DA) layer. It follows a modular architecture where components can be swapped.
Reference files:
- block-architecture.md - Block package deep dive
- da-sequencing.md - DA and sequencing deep dive
Core Principles
- Zero-dependency core -
core/contains only interfaces, no external deps - Modular components - Executor, Sequencer, DA are pluggable
- Two operating modes - Aggregator (produces blocks) and Sync-only (follows chain)
- Separation of concerns - Block production, syncing, and DA submission are independent
Package Overview
| Package | Responsibility |
|---|---|
core/ | Interfaces only (Executor, Sequencer) |
types/ | Data structures (Header, Data, State, SignedHeader) |
block/ | Block lifecycle management |
execution/ | Execution layer implementations (EVM, ABCI) |
node/ | Node initialization and orchestration |
pkg/p2p/ | libp2p-based networking |
pkg/store/ | Persistent storage |
pkg/da/ | DA layer abstraction |
Block Package Deep Dive
The block package is the most complex part of ev-node. See block-architecture.md for the complete breakdown.
Component Summary
Components struct:
├── Executor - Block production (Aggregator only)
├── Reaper - Transaction scraping (Aggregator only)
├── Syncer - Block synchronization
├── Submitter - DA submission and inclusion
└── Cache - Unified state caching
Entry Points
NewAggregatorComponents()- Full node that produces and syncs blocksNewSyncComponents()- Non-aggregator that only syncs
Key Data Types
Header - Block metadata (height, time, hashes, proposer) Data - Transaction list with metadata SignedHeader - Header with proposer signature State - Chain state (last block, app hash, DA height)
Block Production Flow (Aggregator)
Sequencer.GetNextBatch()
│
▼
Executor.ExecuteTxs()
│
├──► SignedHeader + Data
│
├──► P2P Broadcast
│
└──► Submitter Queue
│
▼
DA Layer
Block Sync Flow (Non-Aggregator)
┌─────────────────────────────────────┐
│ Syncer │
├─────────────┬─────────────┬─────────┤
│ DA Worker │ P2P Worker │ Forced │
│ │ │ Incl. │
└──────┬──────┴──────┬──────┴────┬────┘
│ │ │
└─────────────┴───────────┘
│
▼
processHeightEvent()
│
▼
ExecuteTxs → Update State
Data Availability Layer
The DA layer abstracts blob storage. ev-node uses Celestia but the interface is pluggable. See da-sequencing.md for full details.
Namespaces
DA uses 29-byte namespaces (1 byte version + 28 byte ID). Three namespaces are used:
| Namespace | Purpose |
|---|---|
| Header | Block headers |
| Data | Transaction data (optional, can share with header) |
| Forced Inclusion | User-submitted txs for censorship resistance |
DA Client Interface
type Client interface {
Submit(ctx, data [][]byte, gasPrice, namespace, options) ResultSubmit
Retrieve(ctx, height uint64, namespace) ResultRetrieve
Get(ctx, ids []ID, namespace) ([]Blob, error)
}
Key Files
| File | Purpose |
|---|---|
pkg/da/types/types.go | Core types (Blob, ID, Commitment) |
pkg/da/types/namespace.go | Namespace handling |
block/internal/da/client.go | DA client wrapper |
block/internal/da/forced_inclusion_retriever.go | Forced tx retrieval |
Sequencing
Sequencers order transactions for block production. See da-sequencing.md for full details.
Two Modes
| Mode | Mempool | Forced Inclusion | Use Case |
|---|---|---|---|
| Single | Yes | Yes | Traditional rollup |
| Based | No | Only source | High liveness guarantee |
Sequencer Interface
type Sequencer interface {
SubmitBatchTxs(ctx, req) (*SubmitBatchTxsResponse, error)
GetNextBatch(ctx, req) (*GetNextBatchResponse, error)
VerifyBatch(ctx, req) (*VerifyBatchResponse, error)
SetDAHeight(height uint64)
GetDAHeight() uint64
}
ForceIncludedMask
Batches include a mask distinguishing tx sources:
type Batch struct {
Transactions [][]byte
ForceIncludedMask []bool // true = from DA (must validate)
}
This allows the execution layer to skip validation for already-validated mempool txs.
Key Files
| File | Purpose |
|---|---|
core/sequencer/sequencing.go | Core interface |
pkg/sequencers/single/sequencer.go | Hybrid sequencer |
pkg/sequencers/based/sequencer.go | Pure DA sequencer |
pkg/sequencers/common/checkpoint.go | Shared checkpoint logic |
Forced Inclusion
Forced inclusion prevents sequencer censorship:
- User submits tx directly to DA layer
- Syncer detects tx in forced-inclusion namespace
- Grace period starts (adjusts based on block fullness)
- If not included by sequencer within grace period → sequencer marked malicious
- Tx gets included regardless
Key Files
| File | Purpose |
|---|---|
block/public.go | Exported types and factories |
block/components.go | Component creation |
block/internal/executing/executor.go | Block production |
block/internal/syncing/syncer.go | Sync orchestration |
block/internal/submitting/submitter.go | DA submission |
block/internal/cache/manager.go | Unified cache |
Common Questions
How does block production work?
The Executor runs executionLoop():
- Wait for block time or new transactions
- Get batch from sequencer
- Execute via execution layer
- Create SignedHeader + Data
- Broadcast to P2P
- Queue for DA submission
How does syncing work?
The Syncer coordinates three workers:
- DA Worker - Fetches confirmed blocks from DA
- P2P Worker - Receives gossiped blocks
- Forced Inclusion - Monitors for censored txs
All feed into processHeightEvent() which validates and executes.
What happens if DA submission fails?
Submitter has retry logic with exponential backoff. Status codes:
TooBig- Splits blob into chunksAlreadyInMempool- Skips (duplicate)NotIncludedInBlock- Retries with backoffContextCanceled- Request canceled
How is state recovered after crash?
The Replayer syncs execution layer from disk:
- Load last committed height from store
- Check execution layer height
- Replay any missing blocks
- Ensure consistency before starting
Architecture Diagrams
For detailed component diagrams and state machines, see block-architecture.md.
You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversExplore event-driven architecture metadata easily with EventCatalog, your dynamic server for event discovery and archite
Sketch processes design files, extracts internal structure, and renders SVGs for automated design analysis and design-to
Create modern React UI components instantly with Magic AI Agent. Integrates with top IDEs for fast, stunning design and
Access shadcn/ui v4 components, blocks, and demos for rapid React UI library development. Seamless integration and sourc
Empower your workflows with Perplexity Ask MCP Server—seamless integration of AI research tools for real-time, accurate
Transform Figma designs into high-quality code with AI. Seamless figma to code and figma to html workflows for efficient
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.