Add integrity check for signed extensions (#1780)

* Add integrity check for signed extensions

* Remove unneeded type specification
This commit is contained in:
Serban Iorga
2023-01-18 12:47:20 +02:00
committed by Bastian Köcher
parent 4cdb85247e
commit 2ff3a7aa38
13 changed files with 64 additions and 19 deletions
@@ -66,7 +66,7 @@ impl ChainWithTransactions for BridgeHubRococo {
) -> Result<Self::SignedTransaction, SubstrateError> {
let raw_payload = SignedPayload::new(
unsigned.call,
bp_bridge_hub_rococo::BridgeSignedExtension::from_params(
bp_bridge_hub_rococo::SignedExtension::from_params(
param.spec_version,
param.transaction_version,
unsigned.era,
@@ -21,14 +21,14 @@
use codec::{Decode, Encode};
use scale_info::TypeInfo;
use bp_bridge_hub_rococo::BridgeSignedExtension;
use bp_bridge_hub_rococo::SignedExtension;
pub use bp_header_chain::BridgeGrandpaCallOf;
pub use bp_parachains::BridgeParachainCall;
pub use bridge_runtime_common::messages::BridgeMessagesCallOf;
pub use relay_substrate_client::calls::SystemCall;
/// Unchecked BridgeHubRococo extrinsic.
pub type UncheckedExtrinsic = bp_bridge_hub_rococo::UncheckedExtrinsic<Call, BridgeSignedExtension>;
pub type UncheckedExtrinsic = bp_bridge_hub_rococo::UncheckedExtrinsic<Call, SignedExtension>;
// The indirect pallet call used to sync `Wococo` GRANDPA finality to `BHRococo`.
pub type BridgeWococoGrandpaCall = BridgeGrandpaCallOf<bp_wococo::Wococo>;