Struct substrate_subxt::PairSigner[][src]

pub struct PairSigner<T: Runtime, P: Pair> { /* fields omitted */ }

Extrinsic signer using a private key.

Implementations

impl<T, P> PairSigner<T, P> where
    T: Runtime,
    T::Signature: From<P::Signature>,
    <T::Signature as Verify>::Signer: From<P::Public> + IdentifyAccount<AccountId = T::AccountId>,
    P: Pair
[src]

pub fn new(signer: P) -> Self[src]

Creates a new Signer from a Pair.

pub fn set_nonce(&mut self, nonce: T::Index)[src]

Sets the nonce to a new value.

pub fn increment_nonce(&mut self)[src]

Increment the nonce.

pub fn signer(&self) -> &P[src]

Returns the signer.

Trait Implementations

impl<T: Clone + Runtime, P: Clone + Pair> Clone for PairSigner<T, P> where
    T::AccountId: Clone,
    T::Index: Clone
[src]

impl<T: Debug + Runtime, P: Debug + Pair> Debug for PairSigner<T, P> where
    T::AccountId: Debug,
    T::Index: Debug
[src]

impl<T, P> Signer<T> for PairSigner<T, P> where
    T: Runtime,
    T::AccountId: Into<T::Address> + 'static,
    <<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send,
    P: Pair + 'static,
    P::Signature: Into<T::Signature> + 'static, 
[src]

Auto Trait Implementations

impl<T, P> RefUnwindSafe for PairSigner<T, P> where
    P: RefUnwindSafe,
    <T as System>::AccountId: RefUnwindSafe,
    <T as System>::Index: RefUnwindSafe

impl<T, P> Send for PairSigner<T, P>

impl<T, P> Sync for PairSigner<T, P>

impl<T, P> Unpin for PairSigner<T, P> where
    P: Unpin,
    <T as System>::AccountId: Unpin,
    <T as System>::Index: Unpin

impl<T, P> UnwindSafe for PairSigner<T, P> where
    P: UnwindSafe,
    <T as System>::AccountId: UnwindSafe,
    <T as System>::Index: 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> DynClone for T where
    T: Clone
[src]

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

impl<T> Instrument for T[src]

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

impl<T> IsType<T> for 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> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,