ExWapp.Noise.ClientPayload (ExWapp v0.1.2)

Copy Markdown View Source

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.

Summary

Functions

build(noise)

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

build(arg1, runtime_cfg)

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