This repository is a collection of examples for Homomorphic Numpy (HNP), a prototype released by Zama to turn Numpy programs into their homomorphic equivalent.
HNP is currently only available as a docker image. To install it just use:
docker pull zamafhe/hnp
Default entrypoint for the image is to launch a jupyter notebook inside the HNP environment on port 8888 so that you could run easily examples from this repository:
git clone https://github.com/zama-ai/hnp-examples
cd hnp-examples
docker run -p 8888:8888 -v "$(pwd)"/examples:/data zamafhe/hnp
Then on stdout you should see the notebook link:
[...]
http://127.0.0.1:8888/?token=[...]
Every files you add in the examples
directory will be shown in the default notebook directory
inside the container: /data
.
If you are satisfied with your current example do not hesitate to open a PR to share it with the community.
HNP documentation is available here
If you have any question, leave us a message here