Enum ethers::core::types::SignatureError [−][src]
pub enum SignatureError {
InvalidLength(usize),
DecodingError(FromHexError),
VerificationError(H160, H160),
K256Error(Error),
RecoveryError,
}
Expand description
An error involving a signature.
Variants
InvalidLength(usize)
Tuple Fields
0: usize
Invalid length, secp256k1 signatures are 65 bytes
DecodingError(FromHexError)
Tuple Fields
0: FromHexError
When parsing a signature from string to hex
VerificationError(H160, H160)
Thrown when signature verification failed (i.e. when the address that produced the signature did not match the expected address)
K256Error(Error)
Tuple Fields
0: Error
Internal error during signature recovery
RecoveryError
Error in recovering public key from signature
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SignatureError
impl Send for SignatureError
impl Sync for SignatureError
impl Unpin for SignatureError
impl !UnwindSafe for SignatureError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more