cuprate_cryptonight

Function cryptonight_hash_v1

Source
pub fn cryptonight_hash_v1(buf: &[u8]) -> Result<[u8; 32], DataCanNotBeHashed>
Expand description

Calculates the CryptoNight v1 hash of buf.

This will return an error if buf is less than 43 bytes.