Skip to content

Commit

Permalink
derive Display for FriValidationError
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ferdinand committed Sep 27, 2023
1 parent 0ad4b5f commit a914360
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions triton-vm/src/fri.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use std::error::Error;
use std::fmt;
use std::marker::PhantomData;

use anyhow::bail;
use anyhow::Result;
use itertools::Itertools;
use num_traits::One;
use rayon::iter::*;
use strum_macros::Display;
use twenty_first::shared_math::b_field_element::BFieldElement;
use twenty_first::shared_math::other::log_2_ceil;
use twenty_first::shared_math::polynomial::Polynomial;
Expand All @@ -29,15 +28,7 @@ use crate::stark::MTMaker;

pub type AuthenticationStructure = Vec<Digest>;

impl Error for FriValidationError {}

impl fmt::Display for FriValidationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Deserialization error for LowDegreeProof: {self:?}")
}
}

#[derive(PartialEq, Eq, Debug)]
#[derive(PartialEq, Eq, Debug, Display)]
pub enum FriValidationError {
IncorrectNumberOfRevealedLeaves,
BadMerkleAuthenticationPath,
Expand Down

0 comments on commit a914360

Please sign in to comment.