mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 05:38:00 +00:00
Update AccountId to use sr25519 in node-template (#2119)
This commit is contained in:
committed by
Bastian Köcher
parent
2ca08a95ba
commit
b32653d0a8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user