mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +00:00
Make AccountId32 hashable (#5405)
* Make AccountId32 hashable * Only implement Hash in std Co-Authored-By: Nikolay Volf <nikvolf@gmail.com> Co-authored-by: Nikolay Volf <nikvolf@gmail.com>
This commit is contained in:
@@ -554,6 +554,7 @@ pub trait Public: AsRef<[u8]> + AsMut<[u8]> + Default + Derive + CryptoType + Pa
|
||||
|
||||
/// An opaque 32-byte cryptographic identifier.
|
||||
#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Default, Encode, Decode)]
|
||||
#[cfg_attr(feature = "std", derive(Hash))]
|
||||
pub struct AccountId32([u8; 32]);
|
||||
|
||||
impl UncheckedFrom<crate::hash::H256> for AccountId32 {
|
||||
|
||||
Reference in New Issue
Block a user