Table of Contents

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

Version string
Build string
FileName string
Url string
Md5 string

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

string

FileName

public string FileName { get; init; }

Property Value

string

Md5

public string? Md5 { get; init; }

Property Value

string

Url

public string Url { get; init; }

Property Value

string

Version

public string Version { get; init; }

Property Value

string