Skip to content

Header

The v1 header is contained in Prelude’s 24-byte Data field. It contains fields to denote the type of the stone as well as the number of payloads.

FieldTypeSize (bytes)Description
num_payloadsuint2Number of payloads within the stone.
padding_chkblob21Corruption check (fixed content).
typeuint1Denotes the stone’s type.

padding_chk contains a fixed array as a mild corruption check: [0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7].

type denotes the intended use of a stone. Applications may consider the value of this field when executing logic, but it doesn’t affect the way a stone is encoded or decoded.

ValueTypeDescription
1BinaryStandard package.
2DeltaCurrently unused.
3RepositoryIndex of a repository of packages.
4BuildManifestBuild-time artefact containing the yield potential of a package.