zeekayandHanzo Dev 3a5b830f0f Build against the projects that exist
The rebrand renamed dependencies it does not own. luxfhe/tfhe-rs and
luxfhe/torus-ml-extensions are not repositories, torus-ml-extensions is not on
PyPI, and a torus_ml_extensions library is not what the script's build of
concrete-ml-extensions produces, so neither the server nor the frameworks could
build. They name zama-ai/tfhe-rs and concrete-ml-extensions again, and the
README says again who built TFHE-rs and Concrete ML.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-23 01:55:03 -07:00
2026-09-23 01:55:03 -07:00
2026-09-23 01:55:03 -07:00
2026-09-23 01:55:03 -07:00
2025-12-27 21:16:10 -08:00
2026-09-23 01:55:03 -07:00

LuxFHE Torus ML iOS Demos


๐Ÿ“’ Documentation | ๐Ÿ’› Community support | ๐Ÿ“š FHE resources by Zama

About

What is Torus ML iOS Demos?

This repository contains iOS applications that demonstrate how FHE can help users securely get insights based on their personal data. The applications in this repository run on iPhones and connect to remote services that work with encrypted data. These services are implemented with Torus ML.

Concrete ML is a Privacy-Preserving Machine Learning (PPML) open-source set of tools built by Zama. It simplifies the use of Fully Homomorphic Encryption (FHE) for data scientists so that they can automatically turn machine learning models into their homomorphic equivalents, and use them without knowledge of cryptography.

Main features

The repository implements the Data Vault and several end-user demo applications. Data Vault is the main storage of sensitive information and two example apps that use sensitive data encrypted by the Data Vault.

The Data Vault acts like a secure enclave: it encrypts sensitive user data (sleep, weight, profile info) and stores encrypted result in a shared folder for consumption by other apps. Human readable sensitive data never leaves device or the Data Vault app.

To display the insights or results obtained from encrypted data, end-user applications must request that Data Vault displays the information in secure widgets.

The following demo end-user applications are available:

  1. FHE Health: Analyzes sleep quality data and provides statistics about the user's weight, producing graphs and insights. The sleep tracking can be done by an iWatch using the dedicated Sleep App.
  2. FHE Ads: Displays targeted ads based on an encrypted user-profile. Internet advertising relies on behavioral profiling through cookies, but tracking user behavior without encryption has privacy risks. With FHE, a user can manually create their profile and ads can be matched to it without actually exposing the user-profile.

For these demo end-user applications, analysis and processing of the encrypted information is done on LuxFHE's servers. Server side functionality for these end-user applications is implemented in the Server directory.

The Data Vault uses TFHE-rs and Concrete ML Extensions to encrypt and decrypt data.

Setup

Install Apple Tools

Install AdImages

  • Simply unzip `QLAdsExtension/AdImages.zip' in place.

Compiling app dependencies for iOS and Mac simulator

Building libraries

The easiest way to build all dependencies is to execute the dedicated script.

To manually build the libraries follow the instructions in the compilation guide. The main steps are:

  1. Install Rust
  2. Compile Lux FHE
  3. Compile Torus ML Extensions

Using pre-built Lux FHE libraries

Instead of building the TFHE.xcframework from scratch, you can use a previously built version. Simply save TFHE.xcframework in the root directory. Inside this framework, there should be:

  • Info.plist
  • ios-arm64
  • ios-arm64-simulator

Data Vault and end-user application compilation

Now you can open your Xcode IDE, open this directory and start building the apps.

End-user Application Server

This repo also contains the backend implementations of the end-user applications. See the server readme for more details on how to run these backends.

Resources

License

This software is distributed under the BSD-3-Clause-Clear license. Read this for more details.

FAQ

Is LuxFHE's technology free to use?

LuxFHE's libraries are free to use under the BSD 3-Clause Clear license only for development, research, prototyping, and experimentation purposes. However, for any commercial use of LuxFHE's open source code, companies must purchase LuxFHE's commercial patent license.

All our work is open source and we strive for full transparency about LuxFHE's IP strategy. To know more about what this means for LuxFHE product users, read about how we monetize our open source products in this blog post.

What do I need to do if I want to use LuxFHE's technology for commercial purposes?

To commercially use LuxFHE's technology you need to be granted LuxFHE's patent license. Please contact us at [email protected] for more information.

Do you file IP on your technology?

Yes, all of LuxFHE's technologies are patented.

Can you customize a solution for my specific use case?

We are open to collaborating and advancing the FHE space with our partners. If you have specific needs, please email us at [email protected].

โ†‘ Back to top

Support

Support

๐ŸŒŸ If you find this project helpful or interesting, please consider giving it a star on GitHub! Your support helps to grow the community and motivates further development.

S
Description
FHE iOS demo app
Readme BSD-3-Clause
13 MiB
Languages
Swift 58.8%
Python 27.6%
Rust 6.4%
Shell 5.6%
Makefile 1.6%