Git Product home page Git Product logo

Comments (9)

omershlo avatar omershlo commented on May 26, 2024

Is it possible that this is the same as ZenGo-X/zk-paillier#3 ?
I think the right place for that is in zk-paillier library.
Voting is a cool application! If I recall that is not a very complex proof.

from rust-paillier.

phayes avatar phayes commented on May 26, 2024

Yes that's the same proof!

from rust-paillier.

omershlo avatar omershlo commented on May 26, 2024

@phayes do you want to take the lead on that?

from rust-paillier.

phayes avatar phayes commented on May 26, 2024

Hi @omershlo,

I'm honestly not super familiar with paillier internals, and would rather leave it to someone who does.

However, looking at the paper it doesn't look terribly difficult.

from rust-paillier.

phayes avatar phayes commented on May 26, 2024

Regardless of who does it though, it might be a good idea to have @tfdahlin review it, as they were the one that authored the referenced paper.

from rust-paillier.

omershlo avatar omershlo commented on May 26, 2024

good point.
Anyway - I will start working on it on zk-paillier library.

from rust-paillier.

tfdahlin avatar tfdahlin commented on May 26, 2024

I'd be happy to take a look at it for you when it's written, but it might take me a while.

It's been a while since I worked on that project, so I'd need to refamiliarize myself with it, and I've never touched Rust so getting used to that code might take a bit.

You might also reference https://github.com/DaylightingSociety/Paillier/blob/master/lib/paillier/zkp.rb#L163 for my implementation in Ruby.

from rust-paillier.

omershlo avatar omershlo commented on May 26, 2024

HI @phayes I wrote the rust version of the proof in the zk-paillier library (@tfdahlin your ruby code was a really valuable reference):
https://github.com/KZen-networks/zk-paillier/blob/master/src/zkproofs/correct_message.rs
I added one test for correctness and one test for soundness.
I will close this issue but you are more than welcome to review and add to the code in zk-paillier. Plenty optimisations are possible.

I do want to give a disclaimer:
I did not find a security proof anywhere for this protocol. I cannot attest to its security (until I will write the proof myself)

cheers.

from rust-paillier.

phayes avatar phayes commented on May 26, 2024

Thank you! 🎉

from rust-paillier.

Related Issues (20)

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.