# `Spectre.Gate.Receipt.Ref`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/gate/receipt/ref.ex#L1)

Content-addressed identity of a governance gate receipt.

# `t`

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

# `new`

```elixir
@spec new(Spectre.Gate.Receipt.t()) :: t()
```

# `parse`

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

# `to_string`

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

# `valid?`

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

# `verify`

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

---

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