gjc2 / libsnark_knn

a zkp of knn using libsnark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

knn circuit using libsnark

a zero-knowledge proof of K-Nearest Neighbor Algorithm

1 init

complete installation of libsnark

2 compile

complete build

you can make change and design your circuit and compile

rm -rf build
mkdir build && cd build &&cmake ..
make

You can find the "knn" binary under the build/knn folder.

3 run

cd build
./knn/knn

About

a zkp of knn using libsnark


Languages

Language:C++ 84.6%Language:Assembly 6.1%Language:Python 5.4%Language:C 1.2%Language:CMake 0.7%Language:Shell 0.6%Language:Makefile 0.5%Language:M4 0.3%Language:Starlark 0.2%Language:Batchfile 0.1%Language:SWIG 0.1%Language:Java 0.1%Language:Brainfuck 0.0%Language:Gnuplot 0.0%Language:Dockerfile 0.0%