1use ckb_error::{def_error_base_on_kind, prelude::*};
4
5#[derive(Error, Copy, Clone, Eq, PartialEq, Debug)]
7pub enum ErrorKind {
8 #[error("The count of sigs should be less than privkeys.")]
10 SigCountOverflow,
11 #[error("The count of sigs is less than threshold.")]
13 SigNotEnough,
14 #[error("Failed to meet threshold {threshold}, actual: {pass_sigs}.")]
16 Threshold {
17 threshold: usize,
19 pass_sigs: usize,
21 },
22}
23
24def_error_base_on_kind!(Error, ErrorKind, "Multi-signature error.");