corepack
pub fn to_bytes<V>(value: V) -> Result<Vec<u8>, Error> where V: Serialize,
Serialize V into a byte buffer.