# `Insider.Sentinel.Dedup.Receipt`
[🔗](https://github.com/hiivemarkets/insider/blob/v0.1.0/tools/insider_lab/lib/insider/sentinel/dedup/receipt.ex#L1)

A privacy-minimal, canonical outcome record for offline Sentinel deduplication.

A receipt retains only content-addressed artifact references, a hashed group
identifier, a bounded evidence-byte total, and bounded accepted-artifact
counters. It never embeds a capsule, proposal, candidate diff, finding
payload, or caller-supplied secret-capable data.

# `t`

```elixir
@type t() :: %Insider.Sentinel.Dedup.Receipt{
  artifacts: term(),
  capacity: term(),
  counts: term(),
  evidence_bytes: term(),
  group: term(),
  id: term(),
  integrity: term(),
  outcome: term(),
  schema: term()
}
```

# `canonical_binary`

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

# `decode`

```elixir
@spec decode(term()) :: {:ok, t()} | {:error, Insider.Protocol.Error.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()
```

# `validate`

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

---

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