Skip to content

Latest commit

 

History

History

tutorial

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Tutorial

This directory contains the tutorial codes which demostrate how to use TFHEpp to resolve 2-party Yao's Millionaires' problem. This is one of the simplest and most famous Secure Function Evaluation problem.

How to build

When building TFHEpp, give -DENABLE_TUTORIAL=ON option to cmake.

How to run

  1. Run "client" and type the integer which represents client's wealth. "client" will produce encrypted input, the secret key and the gate key.
  2. Run "cloud" and type the integer which represents cloud's wealth. "cloud" will do subtraction of two integer to compare integers and return the encrypted result.
  3. Run "verify". This will decrypt the result and print it.