pub enum ExtrinsicError {
PayloadHashed,
InvalidLayout {
actual: usize,
},
}Expand description
Errors from extrinsic signing payload decoding.
Variants§
PayloadHashed
The payload is exactly 32 bytes, which strongly suggests it has already been blake2b-256 hashed (Substrate hashes payloads > 256 bytes before signing). A hash cannot be decoded into structured fields.
InvalidLayout
The payload is too short or has an unrecognizable layout. None of the three known additional-signed tail interpretations (with metadata hash Some, with metadata hash None, or without CheckMetadataHash) produced a valid result with a non-empty call-data prefix.
Trait Implementations§
Source§impl Debug for ExtrinsicError
impl Debug for ExtrinsicError
Source§impl Display for ExtrinsicError
impl Display for ExtrinsicError
Source§impl Error for ExtrinsicError
impl Error for ExtrinsicError
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()
Source§impl PartialEq for ExtrinsicError
impl PartialEq for ExtrinsicError
impl StructuralPartialEq for ExtrinsicError
Auto Trait Implementations§
impl Freeze for ExtrinsicError
impl RefUnwindSafe for ExtrinsicError
impl Send for ExtrinsicError
impl Sync for ExtrinsicError
impl Unpin for ExtrinsicError
impl UnsafeUnpin for ExtrinsicError
impl UnwindSafe for ExtrinsicError
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