Skip to content

Repository files navigation

AuthProof Server

Privacy First

A simple server that allows users to authenticate themselves using a zero-knowledge proof protocol. The server will generate a challenge for the user to solve, and the user must solve the challenge to authenticate themselves.

Important

BSc Final Project developed at UBI - Portugal.

This project is not intended to be used in production environments, it runs on a Hyperledger Fabric development network.

This project is composed by three main parts:

  • The Hyperledger Fabric network;
  • The chaincode that runs on the Hyperledger Fabric network;
  • The web server that serves the user interface and communicates with the Hyperledger Fabric network.

How to use

You need to make sure that you follow this guide to install the prerequisites for the project.

Make sure that you install all docker images and binaries of Hyperledger Fabric by running the following commands:

curl -sSLO https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh && chmod +x install-fabric.sh
./install-fabric.sh d b

Clone the repository and navigate to the root directory of the project.

git clone https://github.com/joelvaz0x01/AuthProof-server.git
cd AuthProof-server

Start the Hyperledger Fabric network

Run the following command to start and compile the chaincode into the Hyperledger Fabric network.

./network.sh up createChannel -c mychannel -ca
./network.sh deployCC -ccn basic -ccp chaincode/logger-javascript/ -ccl javascript -ccep "AND('Org1MSP.peer')"

Note: The word basic is the name of the chaincode, you can change it to any other name, but make sure to change it in the web server as well.

Start the web server

Follow the instructions in the web server directory to start the web server.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

About

A server for a privacy-friendly authentication based on zero-knowledge proof.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages