Switch account hashing to blake3 (#11969)

* Switch account hashing to blake3

Co-authored-by: Carl <carl@solana.com>
This commit is contained in:
carllin
2020-09-02 00:37:36 -07:00
committed by GitHub
parent 2ed6a457b4
commit af08221aec
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 {