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§
sourcefn account_id(&self) -> &T::AccountId
fn account_id(&self) -> &T::AccountId
Return the “from” account ID.