GithubHelp home page GithubHelp logo

chaum_pedersen's Introduction

ZKP Auth protocol

A proof of concept application implementing the Chaum–Pedersen Protocol as an authentication service.

See Cryptography: An Introduction (3rd Edition) Nigel Smart for more details about the protocol.

Implementation

The protocol is implemented as simple server and client applications. The server functions as the "Verifier", whereas the client functions as the "Prover". The main implementation code is in the zkp_auth directory. Simple wrappers are also provided in the server and client directories.

The protobuf is included in auth.proto.

Server

In order to start the server simply run

go run ./server/server.go

This stands up a server listening on port 50051 providing three RPC methods defined in the protobuf, namely - Register, CreateAuthenticationChallenge and VerifyAuthentication.

Client

The client provides two simple functions Register and Login making it easy to integrate into any client-side code. There is an example integration in the wrapper code.

Docker

Both the server and the client codes are dockerised using the corresponding docker files: Dockerfile-server and Dockerfile-client.

A docker-compose is also provided for convenience. Running docker-compose up --build stands up the server and the client in separate docker containers, and runs the test client code.

The test client code includes two tests: (1) Registration + successful login attempt (2) Registration + unsuccessful login attempt.

chaum_pedersen's People

Contributors

anjor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.