Skip to main content

clone_spl_token_confidential_transfer_proof_generation/
errors.rs

1use {
2    clone_solana_zk_sdk::zk_elgamal_proof_program::errors::ProofGenerationError, thiserror::Error,
3};
4
5#[derive(Error, Clone, Debug, Eq, PartialEq)]
6pub enum TokenProofGenerationError {
7    #[error("inner proof generation failed")]
8    ProofGeneration(#[from] ProofGenerationError),
9    #[error("not enough funds in account")]
10    NotEnoughFunds,
11    #[error("illegal amount bit length")]
12    IllegalAmountBitLength,
13    #[error("fee calculation failed")]
14    FeeCalculation,
15    #[error("ciphertext extraction failed")]
16    CiphertextExtraction,
17}