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

Cartouche library to generate Ethereum key pairs.

# `generate_keypair`

```elixir
@spec generate_keypair() :: {&lt;&lt;_::160&gt;&gt;, &lt;&lt;_::256&gt;&gt;}
```

Generates a new keypair as an `{eth_address, private_key}`.

## Examples

    iex> {address, priv_key} = Cartouche.Keys.generate_keypair()
    iex> {byte_size(address), byte_size(priv_key)}
    {20, 32}

---

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