pub enum BlsError {
ThresholdNotMet,
AggregationFailed(String),
InvalidSignature,
}Expand description
Errors during BLS operations.
Variants§
ThresholdNotMet
Fewer than T partial signatures were supplied to an aggregation call. The threshold was set during DKG; the caller must collect at least T partials before aggregating. Caller action: wait for more partials from peers.
AggregationFailed(String)
Aggregation failed — typically because the supplied partials are inconsistent (different messages, wrong group operation). The string describes the specific failure. Caller action: inspect the message; restart the round if needed.
InvalidSignature
The aggregated signature failed verification against the joint public key. Indicates either a Byzantine participant or a corrupted public key / message. Caller action: re-run the verification with a known-good key before reporting the issue.
Trait Implementations§
Source§impl Error for BlsError
impl Error for BlsError
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()