# `ExWapp.Noise.ClientPayload`
[🔗](https://github.com/elchemista/ex_wapp/blob/v0.1.5/lib/ex_wapp/noise/client_payload.ex#L1)

Builds the protobuf client payload encrypted into the Noise handshake.

It selects registration or login fields from persisted pairing state and
returns updated client or Signal data when key material is initialized.

# `build`

```elixir
@spec build(ExWapp.Noise.t()) ::
  {:ok, binary()} | {:ok, binary(), map()} | {:error, term()}
```

# `build`

```elixir
@spec build(ExWapp.Noise.t(), map()) ::
  {:ok, binary()} | {:ok, binary(), map()} | {:error, term()}
```

---

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