A bounded content-addressed reference to evidence kept outside a capsule.
References contain no path, URL, credentials, or inline bytes. Offline capsule
validation proves the reference shape, not availability of the referenced
content. A consumer verifies retrieved content against sha256 and
byte_size before use.
Summary
Types
@type t() :: %Insider.Incident.ArtifactReference{ byte_size: pos_integer(), media_type: String.t(), role: String.t(), sha256: String.t() }
Functions
@spec decode_map(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
@spec new(keyword()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}