safe_zk_token_sdk/encryption/
errors.rs

1//! Errors related to the twisted ElGamal encryption scheme.
2use thiserror::Error;
3
4#[derive(Error, Clone, Debug, Eq, PartialEq)]
5pub enum DiscreteLogError {
6    #[error("discrete log number of threads not power-of-two")]
7    DiscreteLogThreads,
8    #[error("discrete log batch size too large")]
9    DiscreteLogBatchSize,
10}