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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.