pub enum FrostBackupDecodeError {
Bech32DecodeError(Error),
WrongBech32Variant(Variant),
InvalidSecretShareScalar,
InvalidHumanReadablePrefix,
UnknownShareIndexLength,
InvalidShareIndexScalar,
ShareIndexIsZero,
}
Expand description
An error encountered when encoding a Frostsnap backup.
Variants§
Bech32DecodeError(Error)
Decode error from bech32 library
WrongBech32Variant(Variant)
Tried to decode a bech32 variant that was not bech32m
Decoded secret share is not a valid secp256k1 scalar
InvalidHumanReadablePrefix
Tried to decode backup with unknown prefix
The share index data length doesn’t match expected for SmallIndex nor Scalar
Decoded share index is not a valid secp256k1 scalar
Decoded share index is zero
Trait Implementations§
source§impl Clone for FrostBackupDecodeError
impl Clone for FrostBackupDecodeError
source§fn clone(&self) -> FrostBackupDecodeError
fn clone(&self) -> FrostBackupDecodeError
Returns a copy of the value. Read more
1.0.0 · 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 FrostBackupDecodeError
impl Debug for FrostBackupDecodeError
source§impl Display for FrostBackupDecodeError
impl Display for FrostBackupDecodeError
source§impl Error for FrostBackupDecodeError
impl Error for FrostBackupDecodeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Copy for FrostBackupDecodeError
Auto Trait Implementations§
impl RefUnwindSafe for FrostBackupDecodeError
impl Send for FrostBackupDecodeError
impl Sync for FrostBackupDecodeError
impl Unpin for FrostBackupDecodeError
impl UnwindSafe for FrostBackupDecodeError
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