# `Cartouche.Address`
[🔗](https://github.com/zenhive/cartouche/blob/main/lib/cartouche/address.ex#L1)

Helpers for Ethereum addresses.

# `from_public_key`

```elixir
@spec from_public_key(binary()) :: &lt;&lt;_::160&gt;&gt;
```

Returns an Ethereum address from a given DER-encoded public key.

## Examples

    iex> use Cartouche.Hex
    iex> public_key = ~h[0x0422]
    iex> Cartouche.Address.from_public_key(public_key)
    ...> |> Cartouche.Hex.encode_hex()
    "0x759f1afdc24aba433a3e18b683f8c04a6eaa69f0"

---

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