solana_zk_token_sdk/encryption/mod.rs
1//! Collection of encryption-related data structures and algorithms used in the Solana zk-token
2//! protocol.
3//!
4//! The module contains implementations of the following cryptographic objects:
5//! - Pedersen commitments that uses the prime-order Ristretto representation of Curve25519.
6//! [curve25519-dalek](https://docs.rs/curve25519-dalek/latest/curve25519_dalek/ristretto/index.html)
7//! is used for the Ristretto group implementation.
8//! - The twisted ElGamal scheme, which converts Pedersen commitments into a public-key encryption
9//! scheme.
10//! - Basic type-wrapper around the AES-GCM-SIV symmetric authenticated encryption scheme
11//! implemented by [aes-gcm-siv](https://docs.rs/aes-gcm-siv/latest/aes_gcm_siv/) crate.
12
13pub mod auth_encryption;
14pub mod discrete_log;
15pub mod elgamal;
16pub mod grouped_elgamal;
17pub mod pedersen;