Skip to main content

SMP Commands

Draft

This section is under construction.

Command Encoding

SMP commands are transmitted within the 16KB block format. Each transmission includes:

  • Correlation ID: Links responses to requests
  • Queue ID: Identifies the target queue
  • Command: The operation and its parameters
  • Authentication: Ed25519 signature (for authenticated commands)

Recipient Commands

CommandPurpose
NEWCreate a new queue
SUBSubscribe to receive messages
KEYSecure queue with sender's key
ACKAcknowledge message receipt
DELDelete a queue
OFF / ONSuspend / Resume a queue

Sender Commands

CommandPurpose
SENDSend a message to a queue
SKEYSet sender key

Server Responses

ResponsePurpose
OKOperation successful
ERRError with error code
MSGMessage delivery
IDSQueue IDs (response to NEW)