1
2
3
4
5
6
7
8
9
use thiserror::Error;

#[derive(Error, Debug, Clone, Copy)]
pub enum CommitmentError {
    #[error(
        "the length of the given blinders ({0}) don't match the length of the commitment ({1})"
    )]
    BlindersDontMatch(usize, usize),
}