Skip to main content

Crate confium_privacy

Crate confium_privacy 

Source
Expand description

Privacy-preserving cryptographic primitives.

§Example

use confium_privacy::privacy_and_dist_patterns::dp_query;

// Apply differential privacy noise to a numeric value.
// ε = 0.5 gives moderate privacy; lower ε = more noise = more privacy.
let true_value = 1234.0;
let perturbed = dp_query(true_value, /* sensitivity */ 1.0, /* epsilon */ 0.5);
assert!(perturbed.is_finite());

Modules§

adaptor_sig
Adaptor signatures — pre-signature + completion with witness.
blind_ecdsa
Blind ECDSA — sign without seeing the message.
differential
Differential testing framework.
distributed_prf
Distributed pseudorandom function (PRF).
distributed_prg
Distributed pseudo-random generator (PRG).
jsonld_signing
JSON-LD document signing.
multi_sig
Multi-signature aggregation.
oblivious_transfer
Oblivious Transfer (OT).
privacy_and_dist_patterns
Privacy-preserving computation + distributed systems patterns.
proxy_reencryption
Proxy re-encryption.
secure_aggregation
Secure aggregation protocol.
side_channel
Side-channel timing test framework.
threshold_decryption
Threshold decryption coordinator.
vdf
Verifiable Delay Function (VDF).
vrf
Verifiable Random Function (VRF).