How marlinprotocol/oyster-monorepo works
Main Component Groups
a) Attestation Layer
• Attestation servers (standard, custom, mock) at the top
• To verifier components (standard, enclave, RISC-zero)
b) Serverless Infrastructure
• Gateway and executor components centrally
• HTTP-over-vsock communication paths
• Transaction manager component
c) Networking Layer
• TCP and Raw proxies
• Connection to initialization services
• Performance monitoring (iperf3)
d) Smart Contract Layer
• Contracts at the bottom
• Indexer component
• Interaction with gateway
Component Relationships
[Attestation Servers] → [Verifiers]
• ↓
[Gateway Enclave] ←→ [Executor]
• ↕
[Smart Contracts] ←→ [Indexer]
Specific Implementation Details
Technical elements:
• VSOCK communication channels between components
• Initialization flow with init-server
• Control plane management interface
• SDK integration points (Go/Rust)
Component Grouping
Create distinct zones for:
• Infrastructure components (kernels, networking)
• Runtime components (executor, gateway)
• Management components (control-plane, quota-monitor)
• Development tools (SDKs, initialization)
Critical Details
Aspects:
• Security boundaries between enclave and non-enclave components
• Integration points with AWS infrastructure
• Transaction flow paths
• Attestation verification chains
Implementation Notes
Annotations for:
• Supported kernel variants
• SDK integration points
• Contract interaction flows
• Initialization sequences
Remember to indicate the scalability points and potential bottlenecks, as this will be valuable for understanding system limitations and expansion capabilities.
This system design should clearly show how Oyster combines secure enclaves, blockchain technology, and serverless computing into a cohesive platform while maintaining security and verifiability through its attestation system.