[−][src]Struct sp_runtime::generic::SignedPayload
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]
Call: Encode,
Extra: SignedExtension,
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]
call: Call,
extra: Extra,
additional_signed: Extra::AdditionalSigned
) -> Self
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]
Call: Encode,
Extra: SignedExtension,
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.
fn size_hint(&self) -> usize
[src]
fn encode_to<T>(&self, dest: &mut T) where
T: Output,
[src]
T: Output,
fn encode(&self) -> Vec<u8>
[src]
impl<Call, Extra> EncodeLike<SignedPayload<Call, Extra>> for SignedPayload<Call, Extra> where
Call: Encode,
Extra: SignedExtension,
[src]
Call: Encode,
Extra: SignedExtension,
Auto Trait Implementations
impl<Call, Extra> RefUnwindSafe for SignedPayload<Call, Extra> where
Call: RefUnwindSafe,
Extra: RefUnwindSafe,
<Extra as SignedExtension>::AdditionalSigned: RefUnwindSafe,
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,
Call: Send,
<Extra as SignedExtension>::AdditionalSigned: Send,
impl<Call, Extra> Sync for SignedPayload<Call, Extra> where
Call: Sync,
<Extra as SignedExtension>::AdditionalSigned: Sync,
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,
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,
Call: UnwindSafe,
Extra: UnwindSafe,
<Extra as SignedExtension>::AdditionalSigned: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T, X> Encode for X where
T: Encode + ?Sized,
X: WrapperTypeEncode<Target = T>,
[src]
T: Encode + ?Sized,
X: WrapperTypeEncode<Target = T>,
fn size_hint(&self) -> usize
[src]
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
[src]
F: FnOnce(&[u8]) -> R,
fn encode(&self) -> Vec<u8>
[src]
fn encode_to<W>(&self, dest: &mut W) where
W: Output,
[src]
W: Output,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Box<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> From<T> for T
[src]
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>,
[src]
S: Encode + EncodeLike<S>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
[src]
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
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]
T: RefUnwindSafe,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
[src]
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
[src]
Self: UniqueSaturatedFrom<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
[src]
Self: UniqueSaturatedInto<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
[src]
S: TryInto<T>,
T: Bounded,
fn unique_saturated_into(self) -> T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,