Update AccountId to use sr25519 in node-template (#2119)

This commit is contained in:
Shawn Tabrizi
2019-03-27 10:50:14 +01:00
committed by Bastian Köcher
parent 2ca08a95ba
commit b32653d0a8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ use parity_codec::{Encode, Decode};
use rstd::prelude::*;
#[cfg(feature = "std")]
use primitives::bytes;
use primitives::{ed25519, OpaqueMetadata};
use primitives::{ed25519, sr25519, OpaqueMetadata};
use runtime_primitives::{
ApplyResult, transaction_validity::TransactionValidity, generic, create_runtime_str,
traits::{self, NumberFor, BlakeTwo256, Block as BlockT, StaticLookup, Verify}
@@ -44,7 +44,7 @@ pub type AuthoritySignature = ed25519::Signature;
pub type AccountId = <AccountSignature as Verify>::Signer;
/// The type used by authorities to prove their ID.
pub type AccountSignature = ed25519::Signature;
pub type AccountSignature = sr25519::Signature;
/// A hash of some data used by the chain.
pub type Hash = primitives::H256;