(hex_string: &str)
| 62 | ); |
| 63 | |
| 64 | fn hex_string_to_nibble_array(hex_string: &str) -> Vec<u8> { |
| 65 | hex_string |
| 66 | .chars() |
| 67 | .map(|c| c.to_digit(16).expect("Invalid hex character") as u8) // Convert each char to a nibble |
| 68 | .collect() |
| 69 | } |
| 70 | |
| 71 | fn nib_to_byte_array(digits: &[u8]) -> Vec<u8> { |
| 72 | let mut msg_bytes = Vec::with_capacity(digits.len() / 2); |
no outgoing calls
no test coverage detected