Metakit / @doeixd/metakit/tooling

ManifestDefinition

interface · packages/metakit/src/toolingManifest.ts:38

interface ManifestDefinition {
  readonly kind: DefinitionKind
  readonly hash: Digest
  readonly contract: Digest
  readonly references: ReadonlyArray<Digest>
  readonly canonical: {
    readonly executable: string
    readonly contract: string
  }
}

One definition of a manifest.

Members

ManifestDefinition.kind

property · packages/metakit/src/toolingManifest.ts:39

readonly kind: DefinitionKind

ManifestDefinition.hash

property · packages/metakit/src/toolingManifest.ts:41

readonly hash: Digest

The executable hash.

ManifestDefinition.contract

property · packages/metakit/src/toolingManifest.ts:43

readonly contract: Digest

The contract hash, which names the definition in the manifest. An expression claims nothing: its contract is its hash.

ManifestDefinition.references

property · packages/metakit/src/toolingManifest.ts:45

readonly references: ReadonlyArray<Digest>

The contract hash of each definition this one's hashes hold, sorted: the derived operations it calls, a machine's transitions.

ManifestDefinition.canonical

property · packages/metakit/src/toolingManifest.ts:47

readonly canonical: {
  readonly executable: string
  readonly contract: string
}

The text each hash is the SHA-256 of: the canonical JSON of [tag, payload].