Helper function to hash bytes and convert to a Message
(message: &[u8])
| 237 | |
| 238 | // Helper function to hash bytes and convert to a Message |
| 239 | pub fn hash_message(message: &[u8]) -> Result<Message> { |
| 240 | let hashed = hash(message); |
| 241 | Message::from_slice(&hashed).map_err(|e| UtilsError::CreateMessage(e.to_string())) |
| 242 | } |
| 243 | |
| 244 | /// Encode items in a RlpStream |
| 245 | /// |
no test coverage detected