Feat/stx validator#18
Open
filmakarov wants to merge 113 commits into
Open
Conversation
added 30 commits
November 21, 2025 15:54
feat: stx validator: resolve conflicts with develop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
StxValidator: Modular ERC-7579 Validator for MEE SuperTransactions
Overview
This PR introduces StxValidator, a next-generation ERC-7579 compatible validator module that replaces the legacy
K1MeeValidatorwith a modular, extensible architecture designed for validating MEE (Modular Execution Environment) SuperTransactions.Key Innovation: While
K1MeeValidatorwas tightly coupled to secp256k1 (EOA) signatures, StxValidator implements a signature-agnostic architecture that supports multiple signing schemes including EOA, Passkeys (P256/secp256r1), Safe multisig, and any custom signature format implementing ERC-7780.What are MEE SuperTransactions?
MEE SuperTransactions (Stx) are versatile data structures that enable users to execute complex, multi-chain operations with a single signature. They can contain:
StxValidator validates both the UserOps and arbitrary signed data objects that comprise these SuperTransactions.
Architecture
Two-Layer Modular Design
StxValidator implements a clean separation of concerns through two distinct validation layers:
1️⃣ Stx Mode Verification (
IStxModeVerifier)Validates that a UserOp or data object is part of a SuperTransaction. Supported modes:
2️⃣ Signature Verification (
IStatelessValidator/ ERC-7780)Cryptographic validation of signatures, fully decoupled from signing scheme:
IStatelessValidatorConfiguration Management
The validator uses a flexible per-account configuration system (ConfigManager.sol):
(stxModeVerifier, statelessValidator)pairs viaconfigIdMajor Changes
🗑️ Removed
NoMeeFlowLib,PermitValidatorLib,SafeAccountValidatorLib,SimpleValidatorLib)✨ Added
Core Validator
Stx Mode Verifiers
Stateless Validators
Interfaces
🔄 Modified
Testing
Comprehensive test coverage with 23 test files covering:
End-to-End Tests
Unit Tests
Test Structure: Reorganized from
test/unit/totest/unit-and-e2e/to better reflect test types.Key Features
🔐 Signature Agnostic
Unlike K1MeeValidator (EOA-only), StxValidator supports:
🎯 Modular & Extensible
🌐 ERC-7739 Support
Full nested typed data sign support for:
⚙️ Flexible Configuration
🔄 Backwards Compatible
Deployment
Updated deployment scripts with:
Deployment Artifacts: See
script/deploy/artifacts/stx-validator/for all deployed contract addresses and verification data.Migration from K1MeeValidator
For existing users of K1MeeValidator:
Related Standards & Documentation
Statistics
Breaking Changes
Checklist
This PR represents a significant architectural improvement that positions the validator for future extensibility while maintaining full backwards compatibility with existing MEE SuperTransaction flows.