# `Spectre.Experience.Evidence.Ref`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/experience/evidence/ref.ex#L1)

Content-addressed identity of redacted Experience evidence.

# `t`

```elixir
@type t() :: %Spectre.Experience.Evidence.Ref{algorithm: :sha256, digest: String.t()}
```

# `new`

```elixir
@spec new(Spectre.Experience.Evidence.t()) :: t()
```

Builds a Ref for validated Experience evidence.

# `parse`

```elixir
@spec parse(String.t()) :: {:ok, t()} | {:error, term()}
```

Parses the canonical `experience:sha256:<lowercase hex>` representation.

# `to_string`

```elixir
@spec to_string(t()) :: String.t()
```

Returns the canonical textual representation.

# `valid?`

```elixir
@spec valid?(term()) :: boolean()
```

Checks the Ref algorithm and lowercase digest shape.

# `verify`

```elixir
@spec verify(t(), Spectre.Experience.Evidence.t()) :: :ok | {:error, term()}
```

Verifies that a Ref addresses the supplied evidence.

---

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