Giter VIP home page Giter VIP logo

chaum-pedersen-zk-grpc's Introduction

The Chaum-Pedersen protocol is a zero-knowledge proof used in cryptographic systems. It allows one party (the prover) to prove to another party (the verifier) that they know a secret, without revealing the secret itself.

Here's a simplified version of how the protocol works, along with the math involved:

Commitment: The prover selects a random number r. They compute t = g^r mod p and send t to the verifier. Here, g is a generator of a cyclic group of order q with modulus p.

Challenge: The verifier sends a random number c to the prover as a challenge.

Response: The prover computes s = r + c*x mod q and sends s to the verifier. Here, x is the prover's secret.

Verification: The verifier checks if g^s mod p equals t * y^c mod p. Here, y = g^x mod p is the prover's public key. If the equation holds, the verifier accepts the proof.

The protocol is zero-knowledge because the verifier learns nothing about the prover's secret x from the proof. The protocol is also interactive and requires the prover and verifier to exchange several messages.

The Chaum-Pedersen protocol is based on the hardness of the Discrete Logarithm Problem (DLP). It assumes that it's computationally infeasible to compute x given g, p, and g^x mod p, which ensures the security of the protocol.

You can run the tests using:

cargo test

Also check out the gRPC-server branch other than main.

chaum-pedersen-zk-grpc's People

Contributors

rupam-04 avatar

Stargazers

Md Amaan 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.