Class Manifest
What a release says about itself, and what a device checks it against.
public sealed record Manifest : IEquatable<Manifest>
- Inheritance
-
Manifest
- Implements
- Inherited Members
Constructors
Manifest(ulong, byte[], byte[], byte, byte[], uint, ulong, byte, byte)
What a release says about itself, and what a device checks it against.
public Manifest(ulong Sequence, byte[] VendorId, byte[] ClassId, byte Storage, byte[] Digest, uint Size, ulong Expires = 0, byte Format = 1, byte StructureVersion = 1)
Parameters
SequenceulongRises with every release, which is what stops an older image being replayed at a device.
VendorIdbyte[]Who built the image, as 16 bytes.
ClassIdbyte[]Which kind of device it is for, as 16 bytes.
StoragebyteWhich slot the payload belongs in.
Digestbyte[]The SHA-256 of the payload, as 32 bytes.
SizeuintThe payload length in bytes.
ExpiresulongWhen the release stops being offered, in seconds since the Unix epoch, or 0 to never expire.
FormatbyteHow the payload is encoded.
StructureVersionbyteWhich iteration of the manifest format this is.
Properties
ClassId
Which kind of device it is for, as 16 bytes.
public byte[] ClassId { get; init; }
Property Value
- byte[]
Digest
The SHA-256 of the payload, as 32 bytes.
public byte[] Digest { get; init; }
Property Value
- byte[]
Expires
When the release stops being offered, in seconds since the Unix epoch, or 0 to never expire.
public ulong Expires { get; init; }
Property Value
Format
How the payload is encoded.
public byte Format { get; init; }
Property Value
Sequence
Rises with every release, which is what stops an older image being replayed at a device.
public ulong Sequence { get; init; }
Property Value
Size
The payload length in bytes.
public uint Size { get; init; }
Property Value
Storage
Which slot the payload belongs in.
public byte Storage { get; init; }
Property Value
StructureVersion
Which iteration of the manifest format this is.
public byte StructureVersion { get; init; }
Property Value
VendorId
Who built the image, as 16 bytes.
public byte[] VendorId { get; init; }
Property Value
- byte[]