Skip to content

outsidethecode/zkp-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZKP Chaum Pedersen protocol implementation in Rust

Context

ZKP is a viable alternative to hashing in an authentication schema. This repo implements the ZKP Protocol and a Proof-of-Concept application that utilizes the protocol to register and authenticate users.

The ZKP Protocol

The ZKP protocol is described in the book "Cryptography: An Introduction (3rd Edition) Nigel Smart" page 377 section "3. Sigma Protocols" subsection "3.2. Chaum–Pedersen Protocol.". This source code adapts this protocol to support 1-factor authentication, that is, the exact matching of a number (registration password) stored during registration and another number (login password) generated during the login process.

Repo structure

This repo contains two projects: client and server.

Run the applicaton

  1. Launch Postgres database. The url of the database is configured in the file server/src/parameters.rs via the parameter DATABASE_URL.

  2. Run the server /server$ cargo run

  3. Run the client /client$ cargo run

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages