Type Alias local_runtime::SignedPayload

source ·
pub type SignedPayload = SignedPayload<RuntimeCall, SignedExtra>;
Expand description

The payload being signed in transactions.

Aliased Type§

struct SignedPayload(/* private fields */);

Implementations

§

impl<Call, Extra> SignedPayload<Call, Extra>
where Call: Encode, Extra: SignedExtension,

pub fn new( call: Call, extra: Extra ) -> Result<SignedPayload<Call, Extra>, TransactionValidityError>

Create new SignedPayload.

This function may fail if additional_signed of Extra is not available.

pub fn from_raw( call: Call, extra: Extra, additional_signed: <Extra as SignedExtension>::AdditionalSigned ) -> SignedPayload<Call, Extra>

Create new SignedPayload from raw components.

pub fn deconstruct( self ) -> (Call, Extra, <Extra as SignedExtension>::AdditionalSigned)

Deconstruct the payload into it’s components.

Trait Implementations

§

impl<Call, Extra> Encode for SignedPayload<Call, Extra>
where Call: Encode, Extra: SignedExtension,

§

fn using_encoded<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

Get an encoded version of this payload.

Payloads longer than 256 bytes are going to be blake2_256-hashed.

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

fn encode_to<T>(&self, dest: &mut T)
where T: Output + ?Sized,

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

impl<Call, Extra> EncodeLike for SignedPayload<Call, Extra>
where Call: Encode, Extra: SignedExtension,