pub fn top_encode_to_vec_u8<T: TopEncode>(
    obj: &T
) -> Result<Vec<u8>, EncodeError>