Skip to content

Execution Environment

The Execution Environment forms the computational core of IOST 3.0's Layer 2 platform. This page details the architectural design and technical innovations that enable high-throughput transaction processing while maintaining compatibility with existing standards.

Execution Architecture

IOST 3.0's execution layer employs a modular architecture that separates core execution logic from domain-specific optimizations:

Application Layer
dApps
Smart Contracts
Native Modules
Domain-Specific Environments
Payment VM
RWA VM
DID VM
General EVM
Core Execution Engine
Transaction Scheduler
Parallel Executor
State Manager
Virtual Machine Hub

Multi-Environment Support

IOST 3.0 provides multiple execution environments optimized for different use cases:

  1. Standard EVM Environment

    • Full Ethereum Virtual Machine compatibility
    • Support for existing Solidity contracts and tools
    • Gas optimization for Layer 2 execution
  2. Domain-Specific Virtual Machines

    • Purpose-built execution environments for specialized domains
    • Custom instruction sets optimized for domain operations
    • Reduced computational overhead compared to general-purpose VMs
  3. Native Execution Extensions

    • High-performance pre-compiled modules for cryptographic operations
    • Direct system-level execution for core platform functions
    • Zero-knowledge circuit integration

INFO

The multi-environment architecture allows developers to choose between general compatibility (EVM) and optimized performance (domain-specific VMs) based on their application requirements.

Transaction Processing Pipeline

Transactions flow through a sophisticated processing pipeline designed for maximum throughput:

1. Transaction Intake

  • Transaction validation and signature verification
  • Fee market mechanics and prioritization
  • Initial dependency analysis

2. Transaction Classification

  • Automatic routing to appropriate execution environment
  • Domain-specific pre-processing
  • Execution grouping based on state access patterns

3. Parallel Scheduling

  • Non-conflicting transaction identification
  • Dynamic sharding based on state access patterns
  • Execution lane allocation

4. VM Execution

  • Just-in-time compilation for performance
  • Environment-specific optimizations
  • Execution result capture

5. State Application

  • Atomic state updates
  • Post-execution validation
  • Event emission and indexing

Parallel Execution Framework

IOST 3.0 employs sophisticated techniques to process multiple non-conflicting transactions simultaneously:

Dependency Analysis

The execution engine performs real-time analysis of transaction dependencies:

  • State Access Pattern Detection: Identifying which state objects each transaction reads or modifies
  • Conflict Prediction: Determining potential state conflicts before execution
  • Dependency Graph Construction: Building directed acyclic graphs of transaction dependencies

Traditional Sequential Execution

TX 1
TX 2
TX 3
TX 4
TX 5
  • Single transaction at a time
  • Underutilized computing resources
  • Linear scaling with resources

IOST 3.0 Parallel Execution

TX 1
TX 4
TX 2
TX 5
TX 3
  • Multiple transactions in parallel
  • Optimized resource utilization
  • Super-linear scaling potential

Concurrency Control

To ensure deterministic execution results despite parallelization:

  • Optimistic Concurrency Control: Execute transactions in parallel and validate results
  • Conflict Resolution: Deterministic resolution of transaction conflicts
  • Execution Speculation: Predictive execution paths based on historical patterns

WARNING

While parallel execution significantly increases throughput, certain complex transactions with broad state dependencies may still require sequential execution to maintain correctness.

Domain-Specific Optimizations

Each specialized domain in IOST 3.0 features custom execution optimizations:

Payment Domain Optimizations

Payment Execution Highlights

  • Specialized Instruction Set: Custom VM operations for common payment patterns
  • Batched Signature Verification: Process multiple payment signatures in a single operation
  • Account Balance Caching: Optimized memory layout for frequent balance checks
  • Payment-Specific Sharding: Non-overlapping account processing

The Payment VM delivers 10-20x higher throughput compared to general EVM execution for standard payment operations.

RWA Domain Optimizations

Key execution optimizations for real-world asset operations:

  • Compliance Rule Engine: Native execution of regulatory requirements
  • Lifecycle State Machines: Optimized state transitions for asset lifecycle events
  • Batch Transfer Optimization: Efficient processing of multi-asset transfers
  • Document Hash Verification: Accelerated verification of external documents

DID Domain Optimizations

Identity-focused execution optimizations:

  • ZK-Friendly Operations: Native support for zero-knowledge computations
  • Credential Merkle Proofs: Efficient selective disclosure verification
  • Identity Resolution Cache: High-performance DID resolution
  • Biometric Verification Extensions: Hardware-accelerated biometric matching

State Management

The execution environment implements sophisticated state management to support high-throughput processing:

State Access Patterns

  • Hot/Cold State Segregation: Frequently accessed state kept in optimized storage
  • Hierarchical Caching: Multi-level state caching for performance
  • Prefetching: Predictive loading of related state objects
  • Write-Ahead Logging: Consistent state updates with atomic transactions

Versioned State Management

  • Multi-Version Concurrency Control: Allowing multiple simultaneous readers without blocking
  • State Snapshots: Point-in-time state capture for parallel execution
  • Incremental State Updates: Efficient representation of state changes

Performance Characteristics

IOST 3.0's execution environment delivers exceptional performance metrics:

Transaction TypeThroughput (TPS)Confirmation TimeResource Utilization
Simple Payments8,000 - 12,000<2 secondsLow
Token Transfers5,000 - 8,000<2 secondsLow-Medium
Smart Contract Calls2,000 - 5,0002-3 secondsMedium
Complex DeFi Operations500 - 2,0003-5 secondsHigh
Domain-Specific Operations10,000+<2 secondsOptimized

Performance Scaling

The execution environment scales performance based on several factors:

  • Horizontal Scaling: Performance scales with validator node hardware
  • Parallel Execution Ratio: Higher parallelization potential yields better throughput
  • Domain Optimization Level: Domain-specific operations achieve highest throughput
  • Transaction Complexity: Simpler transactions process faster than complex ones

Developer Tools and SDK

IOST 3.0 provides comprehensive tools for developers to interact with the execution layer:

🧰

Multi-VM Development Kit

Tools for both EVM and domain-specific development environments

🔬

Execution Simulator

Local testing environment with detailed execution profiling

Transaction Optimizer

Smart suggestions for improving execution efficiency

🔄

Parallel Execution Analyzer

Tools to maximize transaction parallelization potential

Integration with Other Components

The execution layer interacts seamlessly with other IOST 3.0 components:

  1. Data Availability Layer: Accessing transaction data for execution
  2. Settlement Layer: Providing execution results for state commitments
  3. Domain-Specific Modules: Enhanced functionality through specialized execution

Released under the MIT License.