# Artifact

Defined in: [packages/cas/src/artifact.ts:13](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/cas/src/artifact.ts#L13)

One artifact a store can address: the inputs of a `knotkit/wire` envelope, without its magic and without its optional integrity section.

The store owns both of those. One store addresses one family, so the magic is a property of the store rather than of each artifact, and the store always writes the integrity section itself so no caller can choose a framing that would address the same content differently. An artifact is opaque beyond this: the store frames and hashes it, and never looks inside a section.

## Properties

### payloadVersion

> `readonly` **payloadVersion**: `number`

Defined in: [packages/cas/src/artifact.ts:15](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/cas/src/artifact.ts#L15)

The owning package’s payload version, inside the shared envelope version.

***

### packageHeader

> `readonly` **packageHeader**: `Uint8Array`

Defined in: [packages/cas/src/artifact.ts:17](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/cas/src/artifact.ts#L17)

The owning package’s opaque header, up to 65,535 bytes.

***

### sections

> `readonly` **sections**: readonly [`WireSection`](/reference/knotkit/wire/interfaces/wiresection/)\[]

Defined in: [packages/cas/src/artifact.ts:19](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/cas/src/artifact.ts#L19)

The owned opaque sections, at most 65,535 of them.
