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§
source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
source§fn 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
source§impl Error for Error
Available on crate feature std
only.
impl Error for Error
Available on crate feature
std
only.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()
source§impl From<Bip32Error> for Error
Available on crate feature std
only.
impl From<Bip32Error> for Error
Available on crate feature
std
only.source§fn from(_: Bip32Error) -> Self
fn from(_: Bip32Error) -> Self
Converts to this type from the input type.
source§impl From<Error> for Error
Available on crate feature std
only.
impl From<Error> for Error
Available on crate feature
std
only.source§fn from(secp: Secp256k1Error) -> Self
fn from(secp: Secp256k1Error) -> Self
Converts to this type from the input type.
source§impl From<Error> for Infallible
impl From<Error> for Infallible
source§fn from(_: Error) -> Infallible
fn from(_: Error) -> Infallible
Converts to this type from the input type.
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(_: Infallible) -> Error
fn from(_: Infallible) -> Error
Converts to this type from the input type.
source§impl From<MnemonicError> for Error
Available on crate feature std
only.
impl From<MnemonicError> for Error
Available on crate feature
std
only.source§fn from(_: MnemonicError) -> Self
fn from(_: MnemonicError) -> Self
Converts to this type from the input type.