Add trustless-vault example: TEE-secured fund management by 0xmatchmaker · Pull Request #84 · Dstack-TEE/dstack-examples

What this adds

A Trustless Vault example that demonstrates the one thing only TEE can do: let multiple people trust a shared pool of funds without trusting any person.

Why it matters

The existing examples show how to run code in TEE. This example shows why you'd want to — filling the trust gap between custodial funds and on-chain smart contracts.

What's included

  • vault.py — Market scanner with hardcoded risk rules (max 2% loss, 20% position, BTC/ETH/SOL only)
  • docker-compose.yaml — Single-file deployment with inline Dockerfile
  • Wallet key generated inside TEE (deterministic, unexportable)
  • HTTP API: / (state), /rules (attestable rules), /verify (verification guide)

Live instance

Key insight

Without TEE: "trust me, I won't steal your money"
With TEE: "verify the code, verify the attestation"