> ## Documentation Index
> Fetch the complete documentation index at: https://phalanetwork.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# What is DStack?

> DStack lets you run your apps in a secure, private environment that no one else can access or tamper with - not even cloud providers or system administrators. Think of it as a protective bubble for your applications. 

## What is Solves for

When you run apps on regular cloud servers, you have to trust the cloud provider won't peek at your data, system administrators won't modify your app, and hackers won't break into the server.

**With DStack, you don't have to trust anyone.** Your app runs in special secure hardware that keeps everything private and proves it's running exactly as intended.

<img src="https://mintcdn.com/phalanetwork/EDH2CSxg-w7_HARR/docs/images/before-after-dstack.png?fit=max&auto=format&n=EDH2CSxg-w7_HARR&q=85&s=496c1c5dd78e1232dfdf97bf07319e63" alt="Before and After dstack comparison" className="my-6 mx-auto rounded-lg shadow-md w-full max-w-xl h-auto" width="1536" height="1024" data-path="docs/images/before-after-dstack.png" />

## How does it work?

DStack uses <span title="Trusted Execution Environment" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-5 h-5 mr-1 text-blue-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"><circle cx="12" cy="12" r="10" strokeWidth="2" /><path d="M12 8v4l3 3" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg>**Trusted Execution Environments (TEEs)**</span>—special security built into modern chips. This creates a private, encrypted space for your app.

**What happens:**\
<span title="Shield" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-green-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path d="M12 3l7 4v5c0 5-3.5 9.74-7 11-3.5-1.26-7-6-7-11V7l7-4z" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /></svg></span>Your app runs in a secure "bubble"—everything is encrypted.\
<span title="Eye Off" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-gray-500" fill="none" viewBox="0 0 16 16" stroke="currentColor"><circle cx="8" cy="8" r="6" strokeWidth="1.5" /><line x1="3" y1="13" x2="13" y2="3" strokeWidth="1.5" strokeLinecap="round" /></svg></span>No one can see inside—not the cloud, not hackers, not anyone.\
<span title="Check Badge" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path d="M9 12l2 2l4-4" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /><circle cx="12" cy="12" r="10" strokeWidth="2" /></svg></span>You can prove it's secure—anyone can check your app is running in real secure hardware.\
<span title="Code" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-purple-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path d="M16 18l6-6-6-6M8 6l-6 6 6 6" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>Your app works as usual—no code changes needed.

***

## Why does this matter?

<span title="Lock" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-gray-700" fill="none" viewBox="0 0 24 24" stroke="currentColor"><rect x="3" y="11" width="18" height="10" rx="2" strokeWidth="2" /><path d="M7 11V7a5 5 0 0110 0v4" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>**Privacy:** Your data stays private, even on someone else's server.\
<span title="Shield Check" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-green-700" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path d="M12 3l7 4v5c0 5-3.5 9.74-7 11-3.5-1.26-7-6-7-11V7l7-4z" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" /><path d="M9 12l2 2l4-4" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>**Trust:** Anyone can verify your app is running the code you claim.\
<span title="Alert" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-red-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path d="M12 9v2m0 4h.01M21 12c0 4.97-4.03 9-9 9s-9-4.03-9-9 4.03-9 9-9 9 4.03 9 9z" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>**Security:** Even if the server is hacked, your app and data are safe.\
<span title="Document Check" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-blue-700" fill="none" viewBox="0 0 24 24" stroke="currentColor"><rect x="4" y="4" width="16" height="16" rx="2" strokeWidth="2" /><path d="M9 12l2 2l4-4" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>**Compliance:** Great for sensitive data that needs strict privacy.

***

## What makes DStack special?

<span title="Upload" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-lime-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path d="M4 17v2a2 2 0 002 2h12a2 2 0 002-2v-2" strokeWidth="2" /><path d="M7 9l5-5 5 5M12 4v12" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>**Easy deployment:** Upload your Docker containers—no code changes.\
<span title="Globe" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-blue-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"><circle cx="12" cy="12" r="10" strokeWidth="2" /><path d="M2 12h20M12 2a15.3 15.3 0 010 20M12 2a15.3 15.3 0 000 20" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>**Portable security:** Move your secure app between clouds.\
<span title="Check Circle" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-green-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"><circle cx="12" cy="12" r="10" strokeWidth="2" /><path d="M9 12l2 2l4-4" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>**Verifiable trust:** Anyone can check your app is running in real secure hardware.\
<span title="Lock Open" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-purple-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"><rect x="3" y="11" width="18" height="10" rx="2" strokeWidth="2" /><path d="M7 11V7a5 5 0 0110 0v4" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>**Web access:** Users connect securely over HTTPS.

***

## Common use cases

<span title="Brain" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-pink-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path d="M9 9a3 3 0 016 0v6a3 3 0 01-6 0V9z" strokeWidth="2" /><path d="M12 3v2M12 19v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42" strokeWidth="2" /></svg></span>**Private AI models:** Run AI without exposing data or model weights.\
<span title="Database" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><ellipse cx="12" cy="5" rx="9" ry="3" strokeWidth="2" /><path d="M3 5v14a9 3 0 0018 0V5" strokeWidth="2" /></svg></span>**Sensitive data processing:** Analyze confidential info safely.\
<span title="Credit Card" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-yellow-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><rect x="2" y="7" width="20" height="10" rx="2" strokeWidth="2" /><path d="M2 11h20" strokeWidth="2" /></svg></span>**Financial apps:** Handle transactions and sensitive data.\
<span title="Heart" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-red-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path d="M12 21C12 21 4 13.5 4 8.5C4 5.42 6.42 3 9.5 3C11.24 3 12.91 3.81 14 5.08C15.09 3.81 16.76 3 18.5 3C21.58 3 24 5.42 24 8.5C24 13.5 16 21 16 21H12Z" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" /></svg></span>**Healthcare systems:** Process medical records with privacy.\
<span title="Users" style={{display: 'inline-flex', alignItems: 'center'}}><svg xmlns="http://www.w3.org/2000/svg" className="inline w-4 h-4 mr-1 text-indigo-600" fill="none" viewBox="0 0 24 24" stroke="currentColor"><circle cx="9" cy="7" r="4" strokeWidth="2" /><circle cx="17" cy="17" r="4" strokeWidth="2" /><path d="M17 13a4 4 0 00-8 0" strokeWidth="2" /></svg></span>**Multi-party computation:** Compute together without sharing raw data.
