# `EEVM.StateRoot`
[🔗](https://github.com/mw2000/eevm/blob/main/lib/eevm/state_root.ex#L1)

Computes Ethereum storage roots and state roots from the current `EEVM.Database`.

# `compute_state_root`

```elixir
@spec compute_state_root(EEVM.Database.t()) :: binary()
```

# `compute_storage_root`

```elixir
@spec compute_storage_root(EEVM.Database.t(), non_neg_integer()) :: binary()
```

---

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