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,
impl<Call, Extra> SignedPayload<Call, Extra>where
Call: Encode,
Extra: SignedExtension,
pub fn new(
call: Call,
extra: Extra
) -> Result<SignedPayload<Call, Extra>, TransactionValidityError>
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>
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)
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,
impl<Call, Extra> Encode for SignedPayload<Call, Extra>where
Call: Encode,
Extra: SignedExtension,
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Get an encoded version of this payload.
Payloads longer than 256 bytes are going to be blake2_256
-hashed.
§fn encode_to<T>(&self, dest: &mut T)where
T: Output + ?Sized,
fn encode_to<T>(&self, dest: &mut T)where
T: Output + ?Sized,
Convert self to a slice and append it to the destination.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more