Skip to main content

Module net

Module net 

Source
Expand description

TCP network protocol for coordinator ↔ signer communication.

Wire format: 4-byte big-endian length prefix + JSON payload.

Messages flow in both directions:

  • Signer → Coordinator: Register, Commitment, Share
  • Coordinator → Signer: Registered, SessionPending, CommitmentsReady, Signature
  • Client → Coordinator: CreateSession, GetStatus
  • Coordinator → Client: SessionCreated, Signature, Error

Enums§

ProtocolMessage
Protocol message exchanged over TCP between coordinator, signers, and clients.

Functions§

recv_message
Receive a protocol message from any readable stream.
send_message
Send a protocol message over any writable stream.