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 section Functions
Link to this function
frame(packet_type, packet_data, frame_secrets)
frame(integer, ExRLP.t, ExWire.Framing.Secrets.t) :: {frame, ExWire.Framing.Secrets.t}
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}