Enum fuel_crypto::Error
source · [−]pub enum Error {
InvalidSecretKey,
InvalidPublicKey,
InvalidMessage,
InvalidSignature,
KeyNotFound,
KeystoreNotAvailable,
NotEnoughMemory,
InvalidMnemonic,
Bip32Error,
}
Expand description
Crypto error variants
Variants
InvalidSecretKey
Invalid secp256k1 secret key
InvalidPublicKey
Invalid secp256k1 public key
InvalidMessage
Invalid secp256k1 signature message
InvalidSignature
Invalid secp256k1 signature
KeyNotFound
The provided key wasn’t found
KeystoreNotAvailable
The keystore isn’t available or is corrupted
NotEnoughMemory
Out of preallocated memory
InvalidMnemonic
Invalid mnemonic phrase
Bip32Error
Bip32-related error
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Error for Error
Available on crate feature std
only.
impl Error for Error
Available on crate feature
std
only.sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Bip32Error> for Error
Available on crate feature std
only.
impl From<Bip32Error> for Error
Available on crate feature
std
only.sourcefn from(_: Bip32Error) -> Self
fn from(_: Bip32Error) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for Error
Available on crate feature std
only.
impl From<Error> for Error
Available on crate feature
std
only.sourcefn from(secp: Secp256k1Error) -> Self
fn from(secp: Secp256k1Error) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for Infallible
impl From<Error> for Infallible
sourcefn from(_: Error) -> Infallible
fn from(_: Error) -> Infallible
Converts to this type from the input type.
sourceimpl From<Infallible> for Error
impl From<Infallible> for Error
sourcefn from(_: Infallible) -> Error
fn from(_: Infallible) -> Error
Converts to this type from the input type.
sourceimpl From<MnemonicError> for Error
Available on crate feature std
only.
impl From<MnemonicError> for Error
Available on crate feature
std
only.sourcefn from(_: MnemonicError) -> Self
fn from(_: MnemonicError) -> Self
Converts to this type from the input type.
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more