
Config docker compose file
This Docker Compose file spins up a Jupyter Notebook environment, and importantly, it’s configured thevolumes
to connect to the Dstack API by mounting its socket file (/var/run/tappd.sock
) into the container. This allows the Jupyter Notebook running inside the TEE to interact with the Dstack service like generate a remote attestation, get a TLS key, or generate a key for chains like ETH (ECDSA, K256 curve
) or SOL (ed25519
).
For development convenience, this setup grants sudo privileges inside the container (environment
), runs the Jupyter server with root user permissions (user
), and starts the notebook with token-based authentication using the TOKEN
environment variable (command
).
Generate RA report inside your application code
In your application, you can generate the RA report using the Dstack SDK, which supports Python, JS, and Go. Theuser-data
argument allows you to attach your own data to the RA report.
Next Steps
Once you have your quote generated, you can:- Verify with API - Upload your quote to Phala Cloud for verification
- Understand the Data - Learn what each field in your quote means
- API Reference - Complete verification service documentation
Use Cases
Theuser-data
field enables powerful applications:
- Key Binding: Set a public key as user-data, then sign messages with the private key
- Identity Proof: Include application identifiers or certificates
- Challenge Response: Respond to verification challenges from remote parties