to_bytes

Function to_bytes 

Source
pub fn to_bytes<T: Encodable + GetSize>(src: T) -> Result<Vec<u8>, Error>
Expand description

Converts the provided SV2 data type to a byte vector based on the SV2 encoding format.