pub enum Error {
Show 21 variants
ThresholdEncryptionError(Error),
DealerNotInValidatorSet(EthereumAddress),
UnknownDealer(EthereumAddress),
DuplicateDealer(EthereumAddress),
InvalidPvssTranscript(EthereumAddress),
InsufficientValidators(u32, u32),
InvalidTranscriptAggregate,
ValidatorPublicKeyMismatch,
BincodeError(Error),
ArkSerializeError(SerializationError),
InvalidByteLength(usize, usize),
InvalidVariant(String),
InvalidDkgParameters(u32, u32),
InvalidShareIndex(u32),
InvalidShareUpdate,
InvalidDkgParametersForPrecomputedVariant(u32, u32),
DuplicatedShareIndex(u32),
NoTranscriptsToAggregate,
InvalidAggregateVerificationParameters(u32, u32),
TooManyTranscripts(u32, u32),
DuplicateTranscript(EthereumAddress),
}Variants§
ThresholdEncryptionError(Error)
DealerNotInValidatorSet(EthereumAddress)
DKG validator set must contain the validator with the given address
UnknownDealer(EthereumAddress)
DKG received an unknown dealer. Dealer must be the part of the DKG validator set.
DuplicateDealer(EthereumAddress)
DKG received a PVSS transcript from a dealer that has already been dealt.
InvalidPvssTranscript(EthereumAddress)
DKG received an invalid transcript for which optimistic verification failed
InsufficientValidators(u32, u32)
Not enough validators to perform the DKG for a given number of shares
InvalidTranscriptAggregate
Transcript aggregate doesn’t match the received PVSS instances
ValidatorPublicKeyMismatch
The validator public key doesn’t match the one in the DKG
BincodeError(Error)
ArkSerializeError(SerializationError)
InvalidByteLength(usize, usize)
Invalid byte length
InvalidVariant(String)
Invalid variant
InvalidDkgParameters(u32, u32)
DKG parameters validation failed
Failed to access a share for a given share index
Failed to verify a share update
InvalidDkgParametersForPrecomputedVariant(u32, u32)
Failed to produce a precomputed variant decryption share
DKG may not contain duplicated share indices
NoTranscriptsToAggregate
Creating a transcript aggregate requires at least one transcript
InvalidAggregateVerificationParameters(u32, u32)
The number of messages may not be greater than the number of validators
TooManyTranscripts(u32, u32)
Too many transcripts received by the DKG
DuplicateTranscript(EthereumAddress)
Received a duplicated transcript from a validator
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<SerializationError> for Error
impl From<SerializationError> for Error
Source§fn from(source: SerializationError) -> Self
fn from(source: SerializationError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more