Skip to content

P2PMessage

Purpose

A signed message sent between peers.

Type

Reception:

P2PMessageV1

Record with fields:

  • sig: Signature

    Signature over the above fields by src

Triggers:

EngineMessage

Behaviour

The Router verifies the signature, and if valid, it processes the contained EngineMessage or RelayMessage. Otherwise discards the message, and disconnects from the peer by sending a DisconnectRequest message to Transport.

Message flow

sequenceDiagram

%% --8<-- [start:sequence]
Transport -) Router: P2PMessage
Router -) Any Local Engine: EngineMessage
%% --8<-- [end:sequence]