Trait subxt::tx::Signer

source ·
pub trait Signer<T: Config> {
    fn account_id(&self) -> &T::AccountId;
    fn address(&self) -> T::Address;
    fn sign(&self, signer_payload: &[u8]) -> T::Signature;
}
Expand description

Signing transactions requires a Signer. This is responsible for providing the “from” account that the transaction is being signed by, as well as actually signing a SCALE encoded payload.

Required Methods§

Return the “from” account ID.

Return the “from” address.

Takes a signer payload for an extrinsic, and returns a signature based on it.

Some signers may fail, for instance because the hardware on which the keys are located has refused the operation.

Implementors§