TEE / DStack
TinyCloud nodes are deployed inside a Trusted Execution Environment managed by DStack, so the key material and decryption the node performs stay confidential even from the node operator, and a client can remotely attest what code is running before trusting it.
Role
The TEE is what makes the node a trustworthy place to do capability-gated decryption under the current n=1,t=1 encryption-network model: the user delegates decrypt authority to a node they can attest, not to an operator they must trust by reputation. It underpins the "explicit trust + TEEs" stance of the trust-model.
Mechanics
tinycloud-node-server/src/dstack.rs wires the node into the DStack runtime; routes/attestation.rs exposes the attestation endpoint a client uses to verify the enclave's measurement before establishing trust. Inside the enclave the node holds the network key it unwraps/rewraps with and serves authorized decrypt invocations.
Relationships
Hosts the node runtime; protects encryption-networks keys + decryption; the trust basis described in trust-model; precondition for the planned threshold-decryption (which removes the single-node trust assumption).
Status & drift
Shipped — nodes are currently deployed via DStack. The single-enclave model (n=1,t=1) is what threshold-decryption is designed to generalize beyond.
Sources
tinycloud-node:tinycloud-node-server/src/dstack.rs,routes/attestation.rs