mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 06:57:58 +00:00
Application Crypto cleanup (#13746)
* Adjust application crypto docs * Blanket implementation for 'RuntimeAppPublic' trait * Blanket implementation for 'BoundToRuntimeAppPublic' for 'RuntimeAppPublic' * Relax type bounds * Docs fix * restore MaybeHash * Commit suggestion Co-authored-by: Anton <anton.kalyaev@gmail.com> --------- Co-authored-by: Anton <anton.kalyaev@gmail.com>
This commit is contained in:
@@ -26,7 +26,7 @@ use crate::{
|
||||
PostDispatchInfoOf, SignedExtension, ValidateUnsigned,
|
||||
},
|
||||
transaction_validity::{TransactionSource, TransactionValidity, TransactionValidityError},
|
||||
ApplyExtrinsicResultWithInfo, CryptoTypeId, KeyTypeId,
|
||||
ApplyExtrinsicResultWithInfo, KeyTypeId,
|
||||
};
|
||||
use serde::{de::Error as DeError, Deserialize, Deserializer, Serialize, Serializer};
|
||||
use sp_core::{
|
||||
@@ -115,7 +115,6 @@ impl UintAuthorityId {
|
||||
|
||||
impl sp_application_crypto::RuntimeAppPublic for UintAuthorityId {
|
||||
const ID: KeyTypeId = key_types::DUMMY;
|
||||
const CRYPTO_ID: CryptoTypeId = CryptoTypeId(*b"dumm");
|
||||
|
||||
type Signature = TestSignature;
|
||||
|
||||
@@ -157,10 +156,6 @@ impl OpaqueKeys for UintAuthorityId {
|
||||
}
|
||||
}
|
||||
|
||||
impl crate::BoundToRuntimeAppPublic for UintAuthorityId {
|
||||
type Public = Self;
|
||||
}
|
||||
|
||||
impl traits::IdentifyAccount for UintAuthorityId {
|
||||
type AccountId = u64;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user