Metakit / @doeixd/metakit/artifact

fnHashes

function · packages/metakit/src/definitionHash.ts:108

function fnHashes(
  fn: FnDefinition,
): Effect.Effect<DefinitionHashes<'fn'>, Failure>

A function's executable and contract hashes. The executable hash (metakit/fn@1) covers what decides a call: its parameters' names and interfaces (by name), its result's interface (null where it declares none), its where clauses, the intermediate checks a composed function makes, and its body. The contract hash (metakit/fn-contract@1) adds its ensures and each intermediate check's. No label is covered.