# Networking & transaction relay

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

Canonical page: https://quantumchain.info/docs/protocol/networking

Category: Protocol · Reviewed: 24 November 2026

## 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.

[View the diagram or interactive example](<https://quantumchain.info/docs/protocol/networking#relay>). Visual-only examples are not reproduced in this text export.

## 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.

| Check | Purpose |
| --- | --- |
| Chain and network binding | Reject traffic for another context |
| Protocol compatibility | Negotiate supported versions without changing canonical rules |
| Peer identity | Bind the session to the intended network peer |
| Capabilities | Discover supported relay, proof, snapshot or archive services |
| Channel policy | Apply 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.

> **Wire details are not finalized here**
> The reviewed specification leaves the exact transport profile, handshake schema, compact-block identifiers and discovery-record signing format open. These pages publish no invented ports, message opcodes or binary layouts.

## 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.

| Traffic family | Operational concern |
| --- | --- |
| Proposals, votes and certificates | Authenticated, timely delivery for consensus participants |
| Transaction announcements and bodies | Validation, duplicate suppression and bounded relay |
| Recent headers and blocks | Correct linkage, missing-data retrieval and validation |
| Snapshots and archive backfill | Large transfers that must respect backpressure |
| Proof requests and responses | Request-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.

## Related reading

- [Mempool & transaction ordering](<https://quantumchain.info/docs/protocol/mempool>)
- [Consensus & finality](<https://quantumchain.info/docs/protocol/consensus-and-finality>)
- [Threat model & trust boundaries](<https://quantumchain.info/docs/security/threat-model>)
- [QuantumChain whitepaper](<https://quantumchain.info/whitepaper>)
