Crate paillier_zk
source ·Expand description
§paillier-zk
This crate provides ZK-proofs for some properties about paillier encryption. See the module docs for the properties and examples of usage.
This library is built on top of fast-paillier crate. This crate and the underlying big integer implementation are reexported for the consumer to be able to use them, instead of trying to match a version.
Re-exports§
pub use fast_paillier;
pub use rug;
Modules§
- ZK-proof, called Пlog* or Rlog* in the CGGMP21 paper.
- Optimized multiexponentiation with precomputations
- ZK-proof for factoring of a RSA modulus. Called Пfac or Rfac in the CGGMP21 paper.
- ZK-proof of paillier operation with group commitment in range. Called Пaff-g or Raff-g in the CGGMP21 paper.
- ZK-proof of Paillier-Blum modulus. Called Пmod or Rmod in the CGGMP21 paper.
- ZK-proof of paillier encryption in range. Called Пenc or Renc in the CGGMP21 paper.
Macros§
- Refer to
examples/pregenerate.rs
to see how data is pregenerated
Structs§
- Error indicating that computation cannot be evaluated because of bad exponent
- Library general error type
- An arbitrary-precision integer.
- Error indicating that proof is invalid
- Error indicating that encryption failed