QuantumChain QTCN
MenuClose menu
Documentation QTCN / NETWORK

QUANTUMCHAIN

Explore the docs

Architecture · Payments · Protocol

PROTOCOL · DESIGN GUIDE

Networking & transaction relay

How peers establish context, exchange bounded messages and propagate transactions without confusing delivery with settlement.

8 min readReviewed 24 November 2026Markdown ↗

Follow one transaction between peers

The wire specification describes several relay styles. This example follows an announcement, a request for missing data and transfer of canonical transaction bytes. A peer that already has the transaction can suppress the duplicate.

Receiving bytes is not accepting a transaction into a block. Each node still checks the transaction and applies its admission policy; the consensus commit rule determines finality.

01 / A MESSAGE IS NOT A SETTLEMENT

Announce. Request. Verify.

One possible relay path after the connection handshake.

APeer APeer BB
  1. A → BAnnouncement

    Transaction identifier and bounded hints

  2. B → ARequest

    Ask for the transaction only if needed

  3. A → BCanonical bytes

    Return the full transaction for verification

PEER B · LOCAL CHECKSDecode → validate → apply admission policy

Accepted for relay or queuing does not mean finalized.

Illustrative sequence · no peer connection or transaction submission.

Establish the connection context first

Peer identity is not validator authority. Advertising a validator role does not grant consensus voting rights. A claimed capability also does not prove that returned data is correct.

Establish the connection context first
CheckPurpose
Chain and network bindingReject traffic for another context
Protocol compatibilityNegotiate supported versions without changing canonical rules
Peer identityBind the session to the intended network peer
CapabilitiesDiscover supported relay, proof, snapshot or archive services
Channel policyApply required authentication, limits and role restrictions

Bound the message before processing its payload

The design calls for typed, length-bounded frames and deterministic binary payloads. Protocol version, message type, flags, length and any request correlation must have explicit encoding rules.

Human-readable JSON can support tools, but it must not become a second definition of canonical network semantics. Limits on repeated fields, message size and outstanding work help constrain resource use.

Different traffic has different urgency

Prioritization protects responsiveness under load; it does not make an invalid vote or transaction valid. Role-specific connectivity and service limits must remain explicit.

Different traffic has different urgency
Traffic familyOperational concern
Proposals, votes and certificatesAuthenticated, timely delivery for consensus participants
Transaction announcements and bodiesValidation, duplicate suppression and bounded relay
Recent headers and blocksCorrect linkage, missing-data retrieval and validation
Snapshots and archive backfillLarge transfers that must respect backpressure
Proof requests and responsesRequest-cost limits and verification against accepted roots

Discovery finds peers; verification establishes trust

The specification considers bootstrap records, static peers and policy-controlled peer exchange. Bootstrap authenticity and peer-table diversity matter because an attacker may try to surround a node with misleading peers.

Encrypted links protect transport, but do not prove the truth of every message or eliminate traffic-analysis risks. Block, transaction and proof validation still apply after a successful handshake.

  • Bound connection attempts, message rates and outstanding requests.
  • Suppress duplicate announcements and reject malformed traffic early.
  • Budget expensive proof requests and large transfers.
  • Maintain diverse peers and distinguish availability from correctness.

What a usable networking release still needs

A runnable implementation needs concrete frame schemas, authenticated bootstrap records, resource limits, transport choices and interoperability tests. Malformed messages, wrong-network connections, duplicate traffic and slow peers should be exercised in an isolated harness.

This guide explains the architecture. It does not open peer connections, report live topology or establish measured network throughput.