Create a hash ```rust use utils::crypto::hash; let message = b"The message"; let hashed = hash(message); assert_eq!(hashed, [ 174, 253, 38, 204, 75, 207, 36, 167, 252, 109, 46, 248, 163, 40, 95, 14, 14, 198, 197, 2, 119, 153, 141, 102, 195, 214, 250, 111, 247, 123, 45, 64 ]); ```
(bytes: &[u8])
| 137 | /// ]); |
| 138 | /// ``` |
| 139 | pub fn hash(bytes: &[u8]) -> [u8; 32] { |
| 140 | Keccak256::digest(bytes).into() |
| 141 | } |
| 142 | |
| 143 | /// Sign a message with a private key |
| 144 | /// |
no outgoing calls