# Solana NoStd Sha256 A more efficient implementation of Sha256 for SVM. # Installation ```cargo add solana-nostd-sha256``` # Features - Adds `hash_ref` which takes in any type that implements `>` - No `Hash` struct. Returns `[u8;32]` directly. - Makes use of MaybeUninit to skip zero allocations - Adds `hash_into` to let you hash directly into a mutable buffer. # Performance | library | function | CU cost | |----------------|-------------------|---------| | nostd-sha256 | hashv(&[b"test"]) | 100 | | nostd-sha256 | hash(b"test") | 105 | | nostd-sha256 | hash_ref("test") | 105 | | solana-program | hashv(&[b"test"]) | 120 | | solana-program | hash(b"test") | 123 |