pub fn reverse_endianness(bytes: &[u8]) -> Vec<u8>
Expand description

Reverses endianness of the value

let bytes = bitcoin::utils::reverse_endianness(&[1, 2, 3]);
assert_eq!(&bytes, &[3, 2, 1])