solana_zk_token_sdk

Module encryption

Source
Expand description

Collection of encryption-related data structures and algorithms used in the Solana zk-token protocol.

The module contains implementations of the following cryptographic objects:

  • Pedersen commitments that uses the prime-order Ristretto representation of Curve25519. curve25519-dalek is used for the Ristretto group implementation.
  • The twisted ElGamal scheme, which converts Pedersen commitments into a public-key encryption scheme.
  • Basic type-wrapper around the AES-GCM-SIV symmetric authenticated encryption scheme implemented by aes-gcm-siv crate.

Modulesยง

auth_encryption
Authenticated encryption implementation.
discrete_log
The discrete log implementation for the twisted ElGamal decryption.
elgamal
The twisted ElGamal encryption implementation.
grouped_elgamal
The twisted ElGamal group encryption implementation.
pedersen
Pedersen commitment implementation using the Ristretto prime-order group.