grapevine-sonobe/src/errors.rs
src/errors.rsRaw
1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Serialize, Deserialize)]
4pub enum GrapevineError {
5 InputsEmpty,
6}
7
8impl std::fmt::Display for GrapevineError {
9 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
10 match self {
11 GrapevineError::InputsEmpty => write!(f, "No private input provided to F circuit!")
12 }
13 }
14}
15
16impl std::error::Error for GrapevineError {}