You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains ready-to-deploy examples demonstrating how to build and run applications on [dstack](https://github.com/Dstack-TEE/dstack), the developer-friendly SDK for deploying containerized apps in Trusted Execution Environments (TEE).
21
21
22
-
The examples are organized to follow the **TEE+EVM design patterns** from [ERC-733](https://erc733.org), walking through the key architectural layers: attestation, gateway/interoperability, key management, and on-chain interaction.
23
-
24
22
## Prerequisites
25
23
26
24
- Access to a dstack environment (self-hosted or [Phala Cloud](https://cloud.phala.network))
@@ -37,67 +35,62 @@ cd dstack-examples
37
35
38
36
## Use Cases
39
37
40
-
Real-world applications that serve as **reference implementations** for ERC-733 TEE+EVM patterns.
38
+
Real-world applications you can build with dstack.
41
39
42
40
| Example | Description | Status |
43
41
|---------|-------------|--------|
44
-
|[8004-agent](./8004-agent)| Trustless AI agent (ERC-8004) with on-chain attestation, LLM access via TLS| Coming Soon |
42
+
|[8004-agent](./8004-agent)| Trustless AI agent with on-chain attestation and LLM access | Coming Soon |
|[custom-domain](./custom-domain)| Custom domain with automatic TLS via zt-https (model of dstack gateway) |
73
-
74
-
**What you learn:** TLS termination in enclave, DNS → TLS → route pattern, reverse proxy.
70
+
|[dstack-ingress](./custom-domain/dstack-ingress)|**Complete ingress solution** — auto SSL via Let's Encrypt, multi-domain, DNS validation, evidence generation with TDX quote chain |
71
+
|[custom-domain](./custom-domain/custom-domain)| Simpler custom domain setup via zt-https |
75
72
76
-
### 3. Keys & Replication Layer
73
+
### Keys & Persistence
77
74
78
-
Production reality: persistent keys across machines, crash recovery, upgrades.
75
+
Persistent keys across deployments via KMS.
79
76
80
77
| Example | Description | Status |
81
78
|---------|-------------|--------|
82
-
|[get-key-basic](./get-key-basic)|`dstack.get_key()` — same key identity across deployments| Coming Soon |
79
+
|[get-key-basic](./get-key-basic)|`dstack.get_key()` — same key identity across machines| Coming Soon |
83
80
84
-
**What you learn:** KMS interaction, secrets replication, upgrade policies, dev-proofness.
81
+
### On-Chain Interaction
85
82
86
-
### 4. On-Chain Interaction Layer
87
-
88
-
Blockchain integration: light client for reading chain state, coprocessor pattern for anchoring outputs.
83
+
Light client for reading chain state, anchoring outputs.
89
84
90
85
| Example | Description |
91
86
|---------|-------------|
92
87
|[lightclient](./lightclient)| Ethereum light client (Helios) running in enclave |
93
88
94
-
**What you learn:** Light client in TEE, verifying on-chain state, coprocessor receipts.
95
-
96
89
---
97
90
98
91
## Dev Scaffolding
99
92
100
-
Development and debugging tools. **Not for production** — useful during development.
93
+
Development and debugging tools. **Not for production.**
101
94
102
95
| Example | Description |
103
96
|---------|-------------|
@@ -109,7 +102,7 @@ Development and debugging tools. **Not for production** — useful during develo
109
102
110
103
## Tech Demos
111
104
112
-
Interesting demonstrations — cool tech but not yet fully developed use cases with clear security stories.
105
+
Interesting demonstrations.
113
106
114
107
| Example | Description |
115
108
|---------|-------------|
@@ -119,7 +112,7 @@ Interesting demonstrations — cool tech but not yet fully developed use cases w
119
112
120
113
## Details
121
114
122
-
Implementation details and infrastructure patterns. Not primary use cases.
115
+
Implementation details and infrastructure patterns.
123
116
124
117
| Example | Description |
125
118
|---------|-------------|
@@ -134,7 +127,6 @@ Implementation details and infrastructure patterns. Not primary use cases.
134
127
135
128
-**[dstack Documentation](https://docs.phala.network/dstack)** - Official platform documentation
0 commit comments