Skip to main content

Header

The v1 header contains 3 fields to denote the type of the .stone file as well as a count of the payloads. These are contained within the 24-byte data field of the agnostic header.

Fields

FieldSizeDescription
num_payloads2 bytesNumber of all payloads within the archive
padding_chk21 bytesSimple corruption check (fixed content)
type1 byteDenotes the archive type

The padding check

While building the stone format, we built-in the .data field to permit future extensions in subsequent stone versions. As of v1, the .padding_chk field contains a statically initialised array as a mild corruption check.

const INTEGRITY_CHECK: [u8; 21] = [
0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7,
];

Types

NameValueDescription
Binary1Standard package
Delta2currently unused
Repository3A package repository index
BuildManifest4A build-time artefact containing the yield potential of a package