/zkp-auth-py

ZKP Protocol for Authentication

Primary LanguagePythonApache License 2.0Apache-2.0

zkp-auth-py

ZKP Protocol for Authentication in Python 3.7

It is using Chaum-Pedersen proof to prove the equality of exponents of two modular exponentiation with different bases.

New Python Project Setup

1. Check you have Python 3.7 installed and available

python3.7 --version
pip3 --version

If you do not have python3.7 then look for Python installer for your OS

2. Clone project

git clone https://github.com/andrewboss/zkp-auth-py.git
cd zkp-auth-py

3. Install virtualenv python module

pip3 install --user virtualenv

4. Create virtual python environment

python3.7 -m virtualenv venv

5. Activate virtual environment

source venv/bin/activate

6. Install project modules

pip install --upgrade -r requirements.txt

7. Run unit tests:

Main integration test Prover with Verifier:

python -m unittest -v tests/sigma_protocols/chaum_pederson/test_prover_with_verifier.py

or all tests:

python -m unittest discover tests