This directory contains the infrastructure-as-code and orchestration configurations for the Sakshya Protocol. It supports both local development and cloud-based deployment.
- Docker: Local orchestration for services (
gateway-tee,engine-fhe). - Terraform: Provisioning cloud infrastructure (AWS Nitro Enclaves).
- FHE Engine: ProofSakshya/engine-fhe
- Gateway TEE: ProofSakshya/gateway-tee
Quickly spin up the Sakshya stack using Docker Compose.
Important
This setup expects the engine-fhe and gateway-tee repositories to be cloned in the same parent directory as the infrastructure directory.
From the infrastructure/docker directory:
# Build and start services
docker-compose up --build
# Run in background
docker-compose up -dServices:
gateway-tee: Accessible athttp://localhost:8080.engine-fhe: Backend computation engine.
Infrastructure for running Sakshya in the cloud with TEE support.
- Terraform
- AWS CLI configured with appropriate credentials.
The current setup provisions an AWS Nitro Enclaves-ready EC2 instance.
From the infrastructure/terraform directory:
# Initialize Terraform
terraform init
# Preview changes
terraform plan
# Apply changes
terraform applydocker-compose down --volumesterraform destroy