pub enum RootError {
InvalidConfig {
reason: String,
},
CanonicalEncoding {
detail: String,
},
Frost {
detail: String,
},
ThresholdNotMet {
required: u16,
supplied: u16,
},
SignatureRejected {
reason: String,
},
BundleRejected {
reason: String,
},
PortalRejected {
reason: String,
},
ProtectionFailed {
reason: String,
},
}Expand description
Failures returned by root genesis ceremony, DKG, signing, portal, and share protection operations.
Variants§
InvalidConfig
Ceremony policy or roster validation failed.
CanonicalEncoding
Canonical CBOR encoding failed before hashing or signing.
Frost
FROST DKG or threshold signing failed.
ThresholdNotMet
The supplied signer set does not satisfy the configured threshold.
SignatureRejected
A root signature or certifier envelope signature did not verify.
BundleRejected
Root trust bundle contents are inconsistent with their signature or ID.
PortalRejected
Portal relay policy rejected an envelope.
ProtectionFailed
Share sealing, opening, or pairwise payload protection failed.
Trait Implementations§
impl Eq for RootError
Source§impl Error for RootError
impl Error for RootError
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()
impl StructuralPartialEq for RootError
Auto Trait Implementations§
impl Freeze for RootError
impl RefUnwindSafe for RootError
impl Send for RootError
impl Sync for RootError
impl Unpin for RootError
impl UnsafeUnpin for RootError
impl UnwindSafe for RootError
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
Mutably borrows from an owned value. Read more