SuiStack0X is a comprehensive decentralized infrastructure platform built on the Sui blockchain, providing developers with essential services to build, deploy, and scale Web3 applications. It leverages Trusted Execution Environments (TEEs) for enhanced security and privacy.
SuiStack0X consists of four core modules:
- Compute Module - Decentralized serverless computing
- Edge Module - Decentralized content delivery network
- Index Module - High-performance blockchain data indexing
- Deploy Module - Trustless CI/CD pipeline for Web3 applications
All modules operate within a common TEE security layer and shared node infrastructure:
┌───────────────────────────────────────────────────────────┐
│ SuiStack0X │
├───────────────────────────────────────────────────────────┤
│ TEE Security Layer │
├───────────┬───────────────┬───────────────┬───────────────┤
│ │ │ │ │
│ Compute │ Edge │ Index │ Deploy │
│ Module │ Module │ Module │ Module │
│ │ │ │ │
└───────────┴───────────────┴───────────────┴───────────────┘
Unified Node & Resource Management
The Compute Module provides decentralized serverless computing with TEE-based privacy and security.
- Function Registry: On-chain registry for serverless functions
- Compute Nodes: Decentralized network of TEE-secured compute providers
- Execution Protocol: Verifiable computation with cryptographic proofs
- Function Permissions: Fine-grained access control for functions
Functions are executed in TEE-secured environments that provide:
- Verifiable Execution: Cryptographic proof that code ran as specified
- Data Privacy: Input and output data remains encrypted
- Integrity Protection: Prevents tampering during execution
- Performance Isolation: Dedicated resources for each execution
The Compute Module leverages TEEs to provide enhanced security:
- Remote Attestation: Verify TEE integrity before execution
- Memory Encryption: Data remains encrypted in memory
- Code Verification: Ensure unmodified function code
- Secure Key Management: Protected cryptographic operations
The Edge Module provides a decentralized content delivery network with routing, caching, and security features.
- Domain Registry: On-chain registry connecting SuiNS domains to content
- Edge Nodes: Decentralized network of content delivery nodes
- Routing Protocol: Intelligent request routing system
- Caching System: Optimized content caching strategies
The Edge Module seamlessly integrates with:
- SuiNS (Sui Name Service): For human-readable domain names
- Walrus: For decentralized content storage
This integration works as follows:
- SuiNS resolves domains to SuiStack0X Edge configurations
- Edge configurations reference content stored on Walrus
- Edge nodes retrieve and serve content from Walrus
- All operations are verified on-chain
Since .sui
domains aren't part of the global DNS system yet, SuiStack0X provides multiple methods for accessing .sui
domains:
- Browser Extension: The SuiStack0X browser extension intercepts requests to
.sui
domains and routes them through the decentralized edge network - Gateway Service: Access
.sui
domains throughhttps://gateway.suistack0x.io/domains/mydapp.sui
- Local DNS Resolver: Configure local DNS to resolve
.sui
domains through SuiStack0X resolvers - Modified /etc/hosts: Manually map
.sui
domains to SuiStack0X edge node IPs
SuiStack0X Edge supports advanced caching strategies:
- Standard Caching: Basic TTL-based caching
- Intelligent Caching: Content-aware caching based on usage patterns
- Geo-Distributed Caching: Location-optimized content distribution
- Conditional Caching: Cache based on content type and request patterns
The Edge Module provides robust DDoS protection through:
- Distributed Architecture: No single point of failure
- Rate Limiting: Configurable per-IP and per-region limits
- Traffic Analysis: ML-based anomaly detection
- Challenge-Response: Automatic challenge for suspicious traffic
The Index Module provides high-performance blockchain data indexing with privacy-preserving queries.
- Index Registry: On-chain registry for index configurations
- Indexer Nodes: Decentralized network of indexing providers
- Query Engine: Optimized data retrieval system
- Schema System: Flexible data modeling for blockchain data
SuiStack0X Index supports multiple data sources:
- Sui Blockchain: Events, transactions, and objects
- Cross-Chain: Data from other blockchains via bridges
- Off-Chain: Verifiable off-chain data sources
- Custom Sources: Developer-defined data sources
SuiStack0X Index provides multiple query interfaces:
- GraphQL API: Flexible querying with GraphQL
- REST API: RESTful endpoints for common queries
- WebSocket Subscriptions: Real-time updates for indexed data
Developers can define custom indexing logic:
- Event-based indexing with mappings
- Aggregation pipelines for complex metrics
- Index-specific query resolution
The Deploy Module provides trustless CI/CD pipelines for Web3 applications with verifiable builds.
- Pipeline Registry: On-chain registry for deployment configurations
- Builder Nodes: Decentralized network of build execution providers
- Verification Protocol: Reproducible build verification system
- Deployment Manager: Multi-environment deployment automation
The Deploy Module offers several important benefits for Sui developers:
- Reproducible Builds: Ensures that builds are deterministic and verifiable
- Multi-Environment Management: Seamless deployment across testnet, devnet, and mainnet
- Security Guarantees: TEE-protected build processes
- Automated Verification: Cryptographic verification of build outputs
- Approval Workflows: Multi-signature approval for sensitive deployments
The Deploy Module supports multiple deployment environments:
- Development: For rapid iteration and testing
- Testnet: For integration testing
- Devnet: For pre-production validation
- Mainnet: For production deployment
Each environment can have its own:
- Deployment configurations
- Approval requirements
- Security settings
- Resource allocations
SuiStack0X Deploy ensures build integrity through:
- Reproducible Builds: Deterministic build outputs
- TEE Protection: Secure build environments
- Source Verification: Validated source code
- Artifact Validation: Cryptographic verification of outputs
- Audit Trail: Immutable record of build process
SuiStack0X provides seamless integration between all four modules:
Serverless functions can be exposed via Edge:
- Deploy functions via Compute
- Expose functions via Edge routing configuration
Index data can be processed by Compute functions:
- Subscribe to index updates in Compute functions
- Query indexed data for processing
Deploy can update Edge and Compute configurations:
- Configure pipelines to update multiple services
- Automate deployments across environments
SuiStack0X employs a comprehensive security model:
All nodes in SuiStack0X are secured by Trusted Execution Environments:
- Code Integrity: Ensures code is unmodified
- Data Confidentiality: Protects sensitive data
- Execution Isolation: Prevents interference
- Remote Attestation: Verifies TEE authenticity
Supported TEE platforms:
- Intel SGX
- AMD SEV
- ARM TrustZone
- AWS Nitro Enclaves
SuiStack0X uses cryptographic proofs to verify:
- Node Identity: Ensure authenticity of nodes
- Computation Results: Verify correctness of execution
- Content Integrity: Validate unmodified content delivery
- Build Outputs: Confirm reproducible builds
SuiStack0X ensures privacy through:
- End-to-End Encryption: Data remains encrypted at all times
- Zero-Knowledge Proofs: Verify computation without revealing data
- Privacy-Preserving Queries: Extract insights without exposing raw data
- Confidential Transactions: Private transaction processing
SuiStack0X operates on a unified economic model with flexible resource allocation:
Node operators stake SUI tokens to participate in the network, with stake serving as:
- Security deposit against malicious behavior
- Resource commitment indicator
- Reward distribution basis
Stake is converted to Resource Credits (RCs) that can be flexibly allocated:
- Compute Credits (CCs)
- Bandwidth Credits (BCs)
- Storage Credits (SCs)
- Build Credits (BCs)
Node operators can adjust their allocation based on hardware capabilities and market demand.
Role | CPU | RAM | Storage | Network | TEE |
---|---|---|---|---|---|
Full Node | 16+ cores | 64GB+ | 2TB+ NVMe | 1Gbps | Required |
Compute-focused | 32+ cores | 128GB+ | 1TB+ NVMe | 1Gbps | Required |
Storage-focused | 8+ cores | 32GB+ | 8TB+ NVMe | 1Gbps | Required |
Edge-focused | 8+ cores | 32GB+ | 1TB+ NVMe | 10Gbps | Required |
Role | Minimum Stake |
---|---|
Basic Node | 1,000 SUI |
Service Provider | 10,000 SUI |
Validator | 100,000 SUI |
To get started with SuiStack0X, follow the instructions in the Documentation.
We welcome contributions to SuiStack0X! Please see our Contributing Guide for details.
SuiStack0X is open-source software licensed under the MIT License.