2022-01-04 05:13:54 -08:00
|
|
|
//! Errors related to proving and verifying range proofs.
|
2022-12-01 03:29:14 -08:00
|
|
|
use {
|
|
|
|
crate::errors::{ProofVerificationError, TranscriptError},
|
|
|
|
thiserror::Error,
|
|
|
|
};
|
2022-01-04 04:18:10 -08:00
|
|
|
|
|
|
|
#[derive(Error, Clone, Debug, Eq, PartialEq)]
|
2022-12-01 03:29:14 -08:00
|
|
|
#[error("range proof verification failed: {0}")]
|
|
|
|
pub struct RangeProofError(#[from] pub(crate) ProofVerificationError);
|
|
|
|
impl_from_transcript_error!(RangeProofError);
|