| 10 | #[derive(Debug)] |
| 11 | #[cfg_attr(feature = "serde", derive(Serialize))] |
| 12 | pub enum SchnorrError { |
| 13 | ExpectedSameSizeSequences(usize, usize), |
| 14 | IndexOutOfBounds(usize, usize), |
| 15 | InvalidResponse, |
| 16 | #[cfg_attr(feature = "serde", serde(with = "ArkSerializationError"))] |
| 17 | Serialization(SerializationError), |
| 18 | ValueMustNotBeEqual, |
| 19 | InvalidProofOfEquality, |
| 20 | MissingBlindingAtIndex(usize), |
| 21 | MissingResponseAtIndex(usize), |
| 22 | FoundCommonIndexInOwnAndReceivedResponses(usize), |
| 23 | NotAProduct, |
| 24 | NotASquare, |
| 25 | NotAnInverse, |
| 26 | } |
| 27 | |
| 28 | impl From<SerializationError> for SchnorrError { |
| 29 | fn from(e: SerializationError) -> Self { |
no outgoing calls
no test coverage detected