Skip to content
Snippets Groups Projects
Commit 8e10f366 authored by Spencer Judge's avatar Spencer Judge Committed by GitHub
Browse files

Make AccountId32 hashable (#5405)


* Make AccountId32 hashable

* Only implement Hash in std

Co-Authored-By: default avatarNikolay Volf <nikvolf@gmail.com>

Co-authored-by: default avatarNikolay Volf <nikvolf@gmail.com>
parent d474864d
No related merge requests found
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment