spl_token_confidential_transfer_proof_extraction/
errors.rs1use thiserror::Error;
2
3#[derive(Error, Clone, Debug, Eq, PartialEq)]
4pub enum TokenProofExtractionError {
5 #[error("ElGamal pubkey mismatch")]
6 ElGamalPubkeyMismatch,
7 #[error("Pedersen commitment mismatch")]
8 PedersenCommitmentMismatch,
9 #[error("Range proof length mismatch")]
10 RangeProofLengthMismatch,
11 #[error("Fee parameters mismatch")]
12 FeeParametersMismatch,
13 #[error("Curve arithmetic failed")]
14 CurveArithmetic,
15 #[error("Ciphertext extraction failed")]
16 CiphertextExtraction,
17}