pub struct DecodedSignPayload {
pub genesis_hash: [u8; 32],
pub block_hash: [u8; 32],
pub spec_version: u32,
pub tx_version: u32,
pub metadata_hash: Option<[u8; 32]>,
pub call_data_and_extra: Vec<u8>,
}Expand description
Decoded fields from a Substrate extrinsic signing payload.
See module documentation for layout details and limitations.
Fields§
§genesis_hash: [u8; 32]Genesis hash of the target chain (32 bytes).
block_hash: [u8; 32]Block hash for the mortality window (32 bytes).
For immortal transactions this equals genesis_hash.
spec_version: u32Runtime spec version.
tx_version: u32Transaction format version.
metadata_hash: Option<[u8; 32]>Metadata hash from CheckMetadataHash extension, if active with mode=1.
call_data_and_extra: Vec<u8>Raw bytes containing call data concatenated with signed-extension extra data (era, nonce, tip, and any other extension-specific bytes).
Splitting call data from extensions requires runtime metadata. Without metadata, this blob can still be displayed as hex for user confirmation.
Trait Implementations§
Source§impl Clone for DecodedSignPayload
impl Clone for DecodedSignPayload
Source§fn clone(&self) -> DecodedSignPayload
fn clone(&self) -> DecodedSignPayload
Returns a duplicate 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 DecodedSignPayload
impl Debug for DecodedSignPayload
Source§impl PartialEq for DecodedSignPayload
impl PartialEq for DecodedSignPayload
impl StructuralPartialEq for DecodedSignPayload
Auto Trait Implementations§
impl Freeze for DecodedSignPayload
impl RefUnwindSafe for DecodedSignPayload
impl Send for DecodedSignPayload
impl Sync for DecodedSignPayload
impl Unpin for DecodedSignPayload
impl UnsafeUnpin for DecodedSignPayload
impl UnwindSafe for DecodedSignPayload
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