poseidon-parameters 1.1.0

A crate for Poseidon parameters
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug)]
pub enum PoseidonParameterError {
    InvalidMatrixDimensions,
    NoMatrixInverse,
}

impl core::fmt::Display for PoseidonParameterError {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        let msg = match self {
            Self::InvalidMatrixDimensions => "Invalid matrix dimensions",
            Self::NoMatrixInverse => "No matrix inverse",
        };

        msg.fmt(f)
    }
}