pub fn to_bytes<T: Encodable + GetSize>(src: T) -> Result<Vec<u8>, Error>
Converts the provided SV2 data type to a byte vector based on the SV2 encoding format.