Skip to content
forked from zama-ai/demo_z8z

Demo using Concrete library to implement exact homomorphic computation with 3-bit integers

License

Notifications You must be signed in to change notification settings

ibarrond/demo_z8z

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo Z/8Z

This demo uses Concrete library to implement exact homomorphic computation with 3-bit integers.

The following functions are implemented:

  • addition between a ciphertext and a constant
  • subtraction between a ciphertext and a constant
  • multiplication between a ciphertext and a constant
  • addition between two ciphertexts
  • subtraction between two ciphertexts
  • multiplication between two ciphertexts
  • max between two ciphertexts

Install

To run this demo, you have to install Rust and Concrete Library.

Key Generation

By default in the main and in the test we call the setup function which takes quite some time to generate the bootstrapping key and to write it in a file. It only needs to be done once, then you can use the setup_load function instead which will simply load the key from the local file.

Makefile

  • make test: to run hundreds of homomorphic additions multiplications and more
  • make build: to build
  • make run: to run the simple main program

Links for Concrete Library

License

This software is distributed under the AGPL-v3 license. If you have any question, please contact us at hello@zama.ai.

About

Demo using Concrete library to implement exact homomorphic computation with 3-bit integers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.9%
  • Makefile 1.1%