← All Products
Confium Privacy
Build privacy-preserving applications on proven crypto.
Privacy App DevelopersResearchersCompliance Engineers
API reference
Canonical code shapes for Confium Privacy, with per-language tabs. Copy-paste-runnable.
PSI (ECDH-based)
{`use confium_privacy::psi::EcdhPsi;
let server = EcdhPsi::new(["a@example.com".to_string()]);
let req = server.request();
let resp = server.respond(["a@example.com".as_bytes(), "b@example.com".as_bytes()]);
let intersection = EcdhPsi::client_compute(&req, &resp);`}