ex_wire v0.1.1 ExWire.Framing.Frame

Handles framing a message for transport in RLPx.

This is defined in the [RLPx docs[(https://github.com/ethereum/devp2p/blob/master/rlpx.md) under Framing section.

TODO: Handle multi-frame packets, etc. TODO: Add tests, etc.

Link to this section Summary

Link to this section Types

Link to this type frame()
frame() :: binary

Link to this section Functions

Link to this function frame(packet_type, packet_data, frame_secrets)
Link to this function unframe(frame, frame_secrets)
unframe(binary, ExWire.Framing.Secrets.t) ::
  {:ok, integer, binary, binary, ExWire.Framing.Secrets.t} |
  {:error, String.t}