Pico v0.1.2 Pico.Protocol.Encoder View Source

Encode Pico messages

Link to this section Summary

Functions

Encode an unencrypted message in Pico format given an OpName and an optional data map

Encode and encrypt a message in Pico format given an OpName and an optional data map

Link to this section Functions

Link to this function

encode(opname, data) View Source
encode(String.t(), binary()) :: binary() | {:error, String.t()}

Encode an unencrypted message in Pico format given an OpName and an optional data map

Link to this function

encode(opname, data, key, iv) View Source
encode(String.t(), map() | binary(), binary(), binary()) ::
  binary() | {:error, String.t()}

Encode and encrypt a message in Pico format given an OpName and an optional data map