pub enum AtmsError {
RegisterExistingKey(PublicKey),
InvalidMerkleProof,
InvalidKey,
InvalidPoP,
NonRegisteredParticipant,
FoundDuplicates(PublicKey),
TooMuchOutstandingSigners(usize),
InvalidSignature,
InvalidAggregation,
SerializationError,
UnexpectedBlstTypes,
}Expand description
Errors associated with Atms
Variants§
RegisterExistingKey(PublicKey)
This error occurs when one tries to register an existing key
InvalidMerkleProof
The proof that a batch of PKs are members of the MerkleTree is false
InvalidKey
A key submitted for aggregation is invalid.
InvalidPoP
A key submitted contains an invalid PoP.
NonRegisteredParticipant
This error occurs when we try to aggregate a signature from a participant that is not registered
FoundDuplicates(PublicKey)
Duplicate non-signers in signature
TooMuchOutstandingSigners(usize)
Non-signers sum to the given stake, which is more than half of total
InvalidSignature
Underlying signature scheme failed to verify
InvalidAggregation
The given public key does not correspond to the aggregation of the given set of keys
SerializationError
This error occurs when the the serialization of the raw bytes failed
UnexpectedBlstTypes
This error occurs when the underlying function is passed infinity or an element outsize of the group
Trait Implementations§
Source§impl Error for AtmsError
impl Error for AtmsError
1.30.0 · 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
use the Display impl or to_string()