pub fn encode_licenses(licenses: &[LicenseUsed]) -> Vec<u8>
Bincode serialize and deflate the licenses.
Panics in case of any error.