(bytes: impl AsRef<[u8]>)
| 51 | } |
| 52 | |
| 53 | pub fn hash_bytes(bytes: impl AsRef<[u8]>) -> Hash { |
| 54 | Hash::from_byte_array(Keccak256::digest(bytes).into()) |
| 55 | } |
| 56 | |
| 57 | impl fmt::Display for Hash { |
| 58 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
no outgoing calls
no test coverage detected
searching dependent graphs…