Enum bc_components::SSKRError
source · pub enum SSKRError {
Show 14 variants
DuplicateMemberIndex,
GroupCountInvalid,
GroupThresholdInvalid,
MemberCountInvalid,
MemberThresholdInvalid,
NotEnoughGroups,
SecretLengthNotEven,
SecretTooLong,
SecretTooShort,
ShareLengthInvalid,
ShareReservedBitsInvalid,
SharesEmpty,
ShareSetInvalid,
ShamirError(Error),
}Expand description
Errors that can occur when using the SSKR library.
Variants§
DuplicateMemberIndex
When combining shares, the provided shares contained a duplicate member index.
GroupCountInvalid
When creating a split spec, the group count is invalid.
GroupThresholdInvalid
When creating a split spec, the group threshold is invalid.
MemberCountInvalid
When creating a group spec, the member count is invalid.
MemberThresholdInvalid
When creating a group spec, the member threshold is invalid.
NotEnoughGroups
When combining shares, the provided shares did not contain enough groups.
SecretLengthNotEven
When creating a secret, the secret is not of even length.
SecretTooLong
When creating a secret, the secret is too long.
SecretTooShort
When creating a secret, the secret is too short.
When combining shares, the provided shares did not contain enough serialized bytes.
When combining shares, the provided shares contained invalid reserved bits.
When combining shares, the provided shares were empty.
When combining shares, the provided shares were invalid.
ShamirError(Error)
An error returned from the bc-shamir crate.