Class PurpurService.PurpurBuild
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
A build of Purpur, and the hash their API publishes for it.
public record PurpurService.PurpurBuild : IEquatable<PurpurService.PurpurBuild>
- Inheritance
-
PurpurService.PurpurBuild
- Implements
- Inherited Members
Remarks
The hash is MD5 because it is the only checksum Purpur publishes — Paper gives SHA-256 and this one does not. It is not a downgrade waved through: the download comes over HTTPS from Purpur's own API, which is what authenticates it, and the hash is here to catch a truncated or corrupted file. MD5 is unfit for proving a file was not substituted, and nothing here relies on it for that.
Constructors
PurpurBuild(string, string, string, string, string?)
A build of Purpur, and the hash their API publishes for it.
public PurpurBuild(string Version, string Build, string FileName, string Url, string? Md5)
Parameters
Remarks
The hash is MD5 because it is the only checksum Purpur publishes — Paper gives SHA-256 and this one does not. It is not a downgrade waved through: the download comes over HTTPS from Purpur's own API, which is what authenticates it, and the hash is here to catch a truncated or corrupted file. MD5 is unfit for proving a file was not substituted, and nothing here relies on it for that.
Properties
Build
public string Build { get; init; }
Property Value
FileName
public string FileName { get; init; }
Property Value
Md5
public string? Md5 { get; init; }
Property Value
Url
public string Url { get; init; }
Property Value
Version
public string Version { get; init; }