# `Insider.Incident.ArtifactReference`
[🔗](https://github.com/hiivemarkets/insider/blob/v0.1.0/lib/insider/incident/artifact_reference.ex#L1)

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.

# `t`

```elixir
@type t() :: %Insider.Incident.ArtifactReference{
  byte_size: pos_integer(),
  media_type: String.t(),
  role: String.t(),
  sha256: String.t()
}
```

# `decode_map`

```elixir
@spec decode_map(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
```

# `new`

```elixir
@spec new(keyword()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}
```

# `to_wire_map`

```elixir
@spec to_wire_map(t()) :: map()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
