pub enum ErrorKind {
Msg(String),
Io(Error),
IntegerParsingError(ParseIntError),
ThresholdTooBig(u8, u8),
ThresholdTooSmall(u8),
SecretTooBig(usize, usize),
InvalidShareCountMax(u8, u8),
InvalidShareCountMin(u8, u8),
EmptySecret,
EmptyShares,
IncompatibleSets(Vec<HashSet<u8>>),
MissingShares(usize, u8),
InvalidSignature(u8, String),
MissingSignature(u8),
SecretDeserializationError,
ShareParsingError(String),
ShareParsingErrorEmptyShare(u8),
ShareParsingInvalidShareId(u8),
ShareParsingInvalidShareThreshold(u8, u8),
InvalidSS1Parameters(usize, usize),
InvalidSplitParametersZero(u8, u8),
CannotGenerateRandomNumbers,
DuplicateShareId(u8),
InconsistentSecretLengths(u8, usize, Vec<u8>, usize),
InconsistentShares,
InconsistentThresholds(u8, u8, Vec<u8>, u8),
// some variants omitted
}
A convenient variant for String.
CannotGenerateRandomNumbers
A string describing the error kind.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more