Prerequisites
- Rust toolchain (for building the simulator)
- Git
- One of the following development environments:
- Node.js 16+ (for JavaScript SDK)
- Python 3.7+ (for Python SDK)
- Go 1.16+ (for Go SDK)
- Rust 1.70+ (for Rust SDK)
Simulator
The latest TEE simulator is available in dstack code repository. Use the following commands to build it:Build Simulator
Verifying Simulator Setup
After starting the simulator, verify the setup by checking:- The socket files exist in the simulator directory:
- The environment variable is set correctly:
Dstack API
The Dstack API provides the basic abstraction of the TEE functionalities. In general, it provides the following functions:- Get Key: Generate a cryptographic key from the specified key path and returns it along with its certificate chain.
- Get TDX Quote: Generate a TDX quote with report data. This can be further verified in our TEE Attestation Explorer to prove your application and data are in TEE.
- Get TDX Information: Retrieve worker information, one example response is like
tappd.sock
is the current TEE RPC API. For more detailed documents, check the README file.
Dstack API is now undergoing an upgrade from the legacytappd.sock
to the newdstack.sock
.tappd.sock
is still recommended until the full upgrade is done.