pub(crate) fn decode_to_slice(bytes: &[u8]) -> Result<&[u8]>
Decode an unsigned integer into a big endian byte slice with all leading zeroes removed.
Returns a byte array of the requested size containing a big endian integer.