Struct sp_runtime::generic::SignedPayload[][src]

pub struct SignedPayload<Call, Extra: SignedExtension>(_);

A payload that has been signed for an unchecked extrinsics.

Note that the payload that we sign to produce unchecked extrinsic signature is going to be different than the SignaturePayload - so the thing the extrinsic actually contains.

Implementations

impl<Call, Extra> SignedPayload<Call, Extra> where
    Call: Encode,
    Extra: SignedExtension
[src]

pub fn new(call: Call, extra: Extra) -> Result<Self, TransactionValidityError>[src]

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::AdditionalSigned
) -> Self
[src]

Create new SignedPayload from raw components.

pub fn deconstruct(self) -> (Call, Extra, Extra::AdditionalSigned)[src]

Deconstruct the payload into it’s components.

Trait Implementations

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

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

Get an encoded version of this payload.

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

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

Auto Trait Implementations

impl<Call, Extra> RefUnwindSafe for SignedPayload<Call, Extra> where
    Call: RefUnwindSafe,
    Extra: RefUnwindSafe,
    <Extra as SignedExtension>::AdditionalSigned: RefUnwindSafe

impl<Call, Extra> Send for SignedPayload<Call, Extra> where
    Call: Send,
    <Extra as SignedExtension>::AdditionalSigned: Send

impl<Call, Extra> Sync for SignedPayload<Call, Extra> where
    Call: Sync,
    <Extra as SignedExtension>::AdditionalSigned: Sync

impl<Call, Extra> Unpin for SignedPayload<Call, Extra> where
    Call: Unpin,
    Extra: Unpin,
    <Extra as SignedExtension>::AdditionalSigned: Unpin

impl<Call, Extra> UnwindSafe for SignedPayload<Call, Extra> where
    Call: UnwindSafe,
    Extra: UnwindSafe,
    <Extra as SignedExtension>::AdditionalSigned: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

impl<T> From<T> for T[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]