pub enum IntegrityIssue {
ZeroScalar,
ScalarLength {
actual: usize,
},
ScalarOutOfRange,
PartyIdxZero,
PartyIdxExceedsCount {
party_idx: u32,
party_count: u32,
},
ThresholdExceedsCount {
threshold: u32,
party_count: u32,
},
ZeroThreshold,
PublicKeyLength {
actual: usize,
},
PublicKeyHex(String),
ScalarHex(String),
}Expand description
A specific integrity issue found in a share.
Variants§
ZeroScalar
Scalar is zero (invalid for any threshold scheme).
ScalarLength
Scalar bytes are wrong length.
ScalarOutOfRange
Scalar is >= curve order.
PartyIdxZero
Party index is zero (must be 1-based).
PartyIdxExceedsCount
Party index exceeds party count.
ThresholdExceedsCount
Threshold exceeds party count.
ZeroThreshold
Threshold is zero.
PublicKeyLength
Public key is wrong length.
PublicKeyHex(String)
Public key hex is invalid.
ScalarHex(String)
Scalar hex is invalid.
Trait Implementations§
Source§impl Clone for IntegrityIssue
impl Clone for IntegrityIssue
Source§fn clone(&self) -> IntegrityIssue
fn clone(&self) -> IntegrityIssue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntegrityIssue
impl Debug for IntegrityIssue
Source§impl Display for IntegrityIssue
impl Display for IntegrityIssue
impl Eq for IntegrityIssue
Source§impl Error for IntegrityIssue
impl Error for IntegrityIssue
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for IntegrityIssue
impl PartialEq for IntegrityIssue
Source§fn eq(&self, other: &IntegrityIssue) -> bool
fn eq(&self, other: &IntegrityIssue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IntegrityIssue
Auto Trait Implementations§
impl Freeze for IntegrityIssue
impl RefUnwindSafe for IntegrityIssue
impl Send for IntegrityIssue
impl Sync for IntegrityIssue
impl Unpin for IntegrityIssue
impl UnsafeUnpin for IntegrityIssue
impl UnwindSafe for IntegrityIssue
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Mutably borrows from an owned value. Read more