Utility function to hash two nodes together
(left: [u8; 32], right: [u8; 32])
| 16 | |
| 17 | /// Utility function to hash two nodes together |
| 18 | pub fn hash_pair(left: [u8; 32], right: [u8; 32]) -> [u8; 32] { |
| 19 | let mut hasher = Sha256::default(); |
| 20 | hasher.update(left); |
| 21 | hasher.update(right); |
| 22 | hasher.finalize().into() |
| 23 | } |
no test coverage detected