pub trait ChainWithTransactions: Chain {
type AccountKeyPair: Pair + Clone + Send + Sync;
type SignedTransaction: Clone + Debug + Codec + Send + 'static;
// Required method
fn sign_transaction(
param: SignParam<Self>,
unsigned: UnsignedTransaction<Self>,
) -> Result<Self::SignedTransaction, Error>
where Self: Sized;
}
Expand description
Substrate-based chain transactions signing scheme.
Required Associated Types§
sourcetype AccountKeyPair: Pair + Clone + Send + Sync
type AccountKeyPair: Pair + Clone + Send + Sync
Type of key pairs used to sign transactions.
sourcetype SignedTransaction: Clone + Debug + Codec + Send + 'static
type SignedTransaction: Clone + Debug + Codec + Send + 'static
Signed transaction.
Required Methods§
sourcefn sign_transaction(
param: SignParam<Self>,
unsigned: UnsignedTransaction<Self>,
) -> Result<Self::SignedTransaction, Error>where
Self: Sized,
fn sign_transaction(
param: SignParam<Self>,
unsigned: UnsignedTransaction<Self>,
) -> Result<Self::SignedTransaction, Error>where
Self: Sized,
Create transaction for given runtime call, signed by given account.
Object Safety§
This trait is not object safe.