Replace MultiSignature with sr25519::Signature

This commit is contained in:
Luke Parker 2022-10-20 03:40:16 -04:00
parent cc8284ad40
commit 3c6ea6e55d
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6

View file

@ -5,11 +5,12 @@
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
use sp_core::{crypto::KeyTypeId, OpaqueMetadata};
pub use sp_core::sr25519::Signature;
use sp_runtime::{
create_runtime_str, generic, impl_opaque_keys,
traits::{AccountIdLookup, BlakeTwo256, Block as BlockT, IdentifyAccount, Verify},
transaction_validity::{TransactionSource, TransactionValidity},
ApplyExtrinsicResult, MultiSignature, Perbill,
ApplyExtrinsicResult, Perbill,
};
use sp_std::prelude::*;
#[cfg(feature = "std")]
@ -34,9 +35,6 @@ use pallet_transaction_payment::CurrencyAdapter;
/// An index to a block.
pub type BlockNumber = u32;
/// Alias to 512-bit hash when used in the context of a transaction signature on the chain.
pub type Signature = MultiSignature;
/// Some way of identifying an account on the chain. We intentionally make it equivalent
/// to the public key of our transaction signing scheme.
pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;