Switch account hashing to blake3 (#11969) (#11992)

* Switch account hashing to blake3

Co-authored-by: Carl <carl@solana.com>
(cherry picked from commit af08221aec)

Co-authored-by: carllin <wumu727@gmail.com>
This commit is contained in:
mergify[bot]
2020-09-02 08:40:07 +00:00
committed by GitHub
parent a5832366a7
commit 2f3fced8a8
11 changed files with 330 additions and 110 deletions

View File

@@ -10,7 +10,7 @@ pub const HASH_BYTES: usize = 32;
Serialize, Deserialize, Clone, Copy, Default, Eq, PartialEq, Ord, PartialOrd, Hash, AbiExample,
)]
#[repr(transparent)]
pub struct Hash([u8; HASH_BYTES]);
pub struct Hash(pub [u8; HASH_BYTES]);
#[derive(Clone, Default)]
pub struct Hasher {