# `ExGAM.Audit.Export`
[🔗](https://github.com/elchemista/ex_gam/blob/0.1.0/lib/ex_gam/audit/export.ex#L1)

Self-contained, canonical input for an independent semantic audit.

An export contains only the portable Domain ledger, the exact Constitution
whose digest is pinned by Genesis, and the trusted Domain time at which the
export was captured. It contains no projection, Grant, credential, process
identifier or store configuration.

# `t`

```elixir
@type t() :: %{required(String.t()) =&gt; term()}
```

# `decode`

```elixir
@spec decode(binary(), keyword()) :: {:ok, t()} | {:error, term()}
```

Decodes and validates a canonical audit export without creating atoms.

# `encode`

```elixir
@spec encode(t(), keyword()) :: {:ok, binary()} | {:error, term()}
```

Encodes an audit export with the deterministic ExGAM value codec.

# `from_data`

```elixir
@spec from_data(map()) :: {:ok, t()} | {:error, term()}
```

Validates an already decoded audit export.

# `new`

```elixir
@spec new(map(), map(), non_neg_integer()) :: {:ok, t()} | {:error, term()}
```

Builds and validates a self-contained audit export.

# `verify`

```elixir
@spec verify(t() | binary(), non_neg_integer() | nil, keyword()) ::
  {:ok, ExGAM.Audit.report()} | {:error, term()}
```

Runs the independent semantic auditor over an export.

---

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