NoSoliciting/NoSoliciting/Ml/Manifest.cs
Anna Clemens 15c1aff05a
feat: add checksum validation for models
Also truncate new model zips before writing, fixing a long-standing issue.
2021-04-25 11:42:50 -04:00

14 lines
349 B
C#

using System;
namespace NoSoliciting.Ml {
[Serializable]
public class Manifest {
public uint Version { get; set; }
public Uri ModelUrl { get; set; }
public string ModelHash { get; set; }
public Uri ReportUrl { get; set; }
public byte[] Hash() => Convert.FromBase64String(this.ModelHash);
}
}