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.

Field Type Size (bytes) Description
num_payloads uint 2 Number of payloads within the stone.
padding_chk blob 21 Corruption check (fixed content).
type uint 1 Denotes 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.

Value Type Description
1 Binary Standard package.
2 Delta Currently unused.
3 Repository Index of a repository of packages.
4 BuildManifest Build-time artefact containing the yield potential of a package.