Page cover

TFHE End-to-End Demo (Sunscreen + Lattica)

What you will do

➤ Create and compile a simple TFHE program that compares two encrypted values

➤ Create a Lattica account and get access.

➤ Set up your account.

➤ Install the management client and deploy the compiled program.

➤ Install the Query Client and run an encrypted query.

➤ Clean up resources.


Part 1: Sunscreen (local)

1. Create and compile a TFHE program

Follow Sunscreen’s guidearrow-up-right to write and compile "greater than" program

Output of this step: A compiled TFHE program artifact (ELF)


Part 2: Lattica Console (Web)

2. Create a Lattica account

👉 Sign uparrow-up-right


3. Get license and buy credits

Sign in to the Consolearrow-up-right

In the Console, do both:

a. Get license

  • Go to Account / License

  • Copy your license


Part 3: Deployment & Access Management (CLI Example)

circle-info

Alternative: Use the Console

Instead of using the Management Client commands below, you can:

This demo uses CLI commands for reproducibility and automation.

4. Install Management Client


5. Deploy program and start worker

Upload the compiled program from Part 1 and start a worker.


Part 4: Code – Query

6. Install Query Client


7. Run encrypted query


Part 5: Clean up


Done.

Last updated

Was this helpful?