Skip to main content

confium_crypto_vss/
lib.rs

1//! Verifiable secret sharing, Paillier, Schnorr, and NIZK primitives.
2//!
3//! Standalone cryptographic primitives with no dependency on the threshold
4//! session framework. Publishable to crates.io independently.
5//!
6//! # Audit status
7//!
8//! **Unaudited.** The default API surface (vss, pedersen_vss, schnorr,
9//! nizk, paillier) carries rejection-sampled reductions and paired
10//! rejects-forgery tests, but has had no external cryptographic review.
11//! Experimental modules compile only behind `unaudited-experimental`.
12
13#![forbid(unsafe_code)]
14
15pub mod nizk;
16pub mod paillier;
17pub mod pedersen_range;
18pub mod pedersen_vss;
19pub mod schnorr;
20pub mod vss;
21
22/// Experimental demonstration primitives. NOT AUDITED — known gaps
23/// documented in each module; must never be used for real security.
24/// Compile the `unaudited-experimental` feature to include them.
25#[cfg(feature = "unaudited-experimental")]
26pub mod range_proof;
27#[cfg(feature = "unaudited-experimental")]
28pub mod threshold_schnorr;