Skip to main content

encode_data_update

Function encode_data_update 

Source
pub fn encode_data_update<T: Serialize>(data: &T) -> Result<Vec<u8>>
Expand description

Encode data as a DataUpdate (convenience wrapper)

This is equivalent to to_bytes(data, true).

§Arguments

  • data - Any serializable data

§Returns

UTF-8 bytes with Constellation prefix