Code Monkey home page Code Monkey logo

zeroknowledgeproofs's Introduction

Zero-Knowledge Proof Simulation with Elliptic Curve Cryptography

This repository contains a Python-based simulation of a Zero-Knowledge Proof (ZKP) system using elliptic curve cryptography. It demonstrates a scenario where a borrower proves they meet certain credit score criteria to a lender without revealing their actual score.

Overview

The project simulates a lending process where borrowers can prove that their credit score falls within certain categories (excellent, fair, poor, or not qualified) without disclosing the actual score. It uses elliptic curve digital signatures to create and verify proofs.

Requirements

  • Python 3.x
  • Libraries: ecdsa, ipywidgets

Installation

To set up the project, clone this repository and install the required Python libraries.

git clone https://github.com/mickymult/ZeroKnowledgeProofs.git
cd ZeroKnowledgeProofs
pip install ecdsa ipywidgets

Usage

Run the Jupyter Notebook (ZKP-ZeroKnowledgeProofs.ipynb) in a Jupyter environment or Google Colab. The notebook is divided into sections:

  1. Key Generation: Generates cryptographic keys using elliptic curve cryptography.
  2. Proof Creation: Allows a borrower to enter their credit score and generates a proof for their score category.
  3. Proof Verification: Enables a lender to verify the borrower's proof without learning the actual credit score.
  4. Interactive UI: Use sliders and buttons to simulate the process interactively.

Contributing

Contributions to this project are welcome. Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License

Acknowledgements

This project is for educational purposes and demonstrates the basic concepts of Zero-Knowledge Proofs and elliptic curve cryptography in a simplified manner.

zeroknowledgeproofs's People

Contributors

mickymultani avatar

Stargazers

 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.