Important
This PoC is currently NOT compatible with Scone but compatible with TDX.
Please use it with the iExec SDK 8.13.0-tdx (If you do not have access to it, please contact us).
The Image Generator iApp is a Confidential Computing application that generates an image based on a provided text prompt. It leverages iExec's Trusted Execution Environments (TEE) and the CompVis/stable-diffusion-v1-4 model from Hugging Face for secure, private computation.
- Confidential Computing ensures that prompts remain private and are processed securely.
- Decentralized Execution using the iExec network.
- CompVis/stable-diffusion-v1-4 model-based image generation to generate an image based on its textual description.
Follow the iExec guide for setting up a local iApp:
🔗 Your First iExec App
-
Build the docker image:
docker build . -t image-generator
-
Prepare input file:
Create a folder callediexec_in
and put inside a prompt.txt file containing your prompt. -
Run the iApp in Docker:
docker run --rm \ -v ./iexec_in:/iexec_in \ -v ./iexec_out:/iexec_out \ -e IEXEC_IN=/iexec_in \ -e IEXEC_OUT=/iexec_out \ -e IEXEC_REQUESTER_SECRET_1="your prompt" \ image-generator
1️⃣ Build and Push Image to Docker Hub
docker build . -t yourdockerhubusername/image-generator:1.0.0
docker push yourdockerhubusername/image-generator:1.0.0
2️⃣ Deploy Your iApp on iExec
Follow the official iExec guide to deploy a TDX iApp:
🔗 Deploy a TDX iApp
3️⃣ Publish a iApp Order
Once deployed, you must publish a iApp order to allow usage:
🔗 Manage App Orders
1️⃣ Deploy your requester secret on iExec
This PoC uses requester secrets. In order to use it, please follow the official iExec guide:
🔗 Create Requester Secret
- Dapp Address:
0xDEBE66164C0026f2dBCcaCF2364F07a42c441f2f
iexec app run --secret 1=$YOUR_SECRET --workerpool tdx-labs.pools.iexec.eth --tag tee,tdx 0xDEBE66164C0026f2dBCcaCF2364F07a42c441f2f