5 releases

0.4.4 Dec 26, 2022
0.4.3 Apr 3, 2022
0.4.2 Oct 19, 2021
0.4.1 Oct 7, 2021
0.4.0 Jun 16, 2021

#1973 in Cryptography

Download history 1141/week @ 2024-07-22 709/week @ 2024-07-29 1258/week @ 2024-08-05 1259/week @ 2024-08-12 942/week @ 2024-08-19 724/week @ 2024-08-26 710/week @ 2024-09-02 751/week @ 2024-09-09 527/week @ 2024-09-16 588/week @ 2024-09-23 477/week @ 2024-09-30 496/week @ 2024-10-07 403/week @ 2024-10-14 318/week @ 2024-10-21 409/week @ 2024-10-28 292/week @ 2024-11-04

1,435 downloads per month
Used in 4 crates (2 directly)

GPL-3.0-or-later

96KB
2K SLoC

Build Status Latest version Docs License

Zero Knowledge Paillier

This library contains a collection of Paillier cryptosystem zero knowledge proofs written in Rust. Each proof can be used as a stand alone proof but usually it will be used as part of another protocol. For each proof we state in comments what are the security assumptions required. Pay special attention to proofs that require more assumptions than just DCRA which is the assumption used in Paillier cryptosystem.

Currently implemented proofs

Usage

There is no unified API at the moment, please follow the test attached to each proof for example usage.

Legacy

Rust-paillier was orignally a library that implemented the basic Paillier cryptosystem with main contributors from Snips. Catalyzed by KZen needs for paillier zero knowledge proofs the original library was forked and another layer of proofs was added. As more and more zk-proofs were being added we realized that the base paillier cryptosystem layer is at a point of stability and only minor changes are required once in a while where on the other hand the second layer of zk-proofs are evolving at a much faster pace and the code should be considered more experimental. At this point we agreed to divide the library to the base layer (rust-paillier) and zk-paillier which is the current library.

Finally. we would like to thank Morten Dahl,lead maintainer of rust-paillier and KZen advisor. another thank you goes to Pascal Paillier.

Development Process

the Rust utilities wiki contains information on workflow and environment set-up.

Feel free to reach out or join the KZen Research Telegram for discussions on code and research.

License

zk-paillier is released under the terms of the GPL-3.0 license. See LICENSE for more information.

Contact

Feel free to reach out or join the KZen Research Telegram for discussions on code and research.

Dependencies

~16MB
~258K SLoC