Skip to content

Commit

Permalink
Implement Display for Poseidon2_12Stark and fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekvpandya committed Oct 9, 2023
1 parent 6703d3b commit c0dc585
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions poseidon2-starky/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#![deny(clippy::pedantic)]
#![deny(clippy::cargo)]
#![allow(clippy::missing_panics_doc)]
// FIXME: Remove this, when proptest's macro is updated not to trigger clippy.
#![allow(clippy::ignored_unit_patterns)]

pub mod horizen;
pub mod plonky2;
7 changes: 7 additions & 0 deletions poseidon2-starky/src/plonky2/stark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use plonky2::plonk::circuit_builder::CircuitBuilder;
use starky::constraint_consumer::{ConstraintConsumer, RecursiveConstraintConsumer};
use starky::stark::Stark;
use starky::vars::{StarkEvaluationTargets, StarkEvaluationVars};
use std::fmt::Display;
use std::marker::PhantomData;

// degree: 1
Expand Down Expand Up @@ -190,6 +191,12 @@ pub struct Poseidon2_12Stark<F, const D: usize> {
pub _f: PhantomData<F>,
}

impl<F, const D: usize> Display for Poseidon2_12Stark<F, D> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Poseidon2_12Stark")
}
}

impl<F: RichField + Extendable<D>, const D: usize> Stark<F, D> for Poseidon2_12Stark<F, D> {
const COLUMNS: usize = NUM_COLS;
const PUBLIC_INPUTS: usize = 0;
Expand Down

0 comments on commit c0dc585

Please sign in to comment.