QuantumChain QTCN
MenuClose menu
Documentation QTCN / NETWORK

QUANTUMCHAIN

Explore the docs

Architecture · Payments · Protocol

PROTOCOL · DESIGN GUIDE

Storage, archives & historical evidence

Separate canonical history, current state and derived views, then understand what a historical query actually proves.

9 min readReviewed 24 November 2026Markdown ↗

One ledger, several storage responsibilities

QuantumDB is the intended storage foundation for immutable records, active objects, proof structures, snapshots and role-specific views. These are logical responsibilities; the diagram is not a claim about a deployed database schema.

Derived balance summaries and indexes help users find data. They must remain consistent with canonical state and cannot create independent spending authority. Protected data may intersect several categories and requires its own access rules.

03 / KEEP THE SOURCE OF TRUTH VISIBLE

Records. State. Views.

Logical responsibilities in the intended QuantumDB integration.

VERIFICATION CONTEXTAccepted finalized history & state commitments
01

Canonical history

Preserve the record

  • Blocks & transactions
  • Receipts & events
  • Finality evidence
02

Active state

Enforce current rules

  • Spendable value objects
  • Descriptors & registries
  • Asset state & locks
03

Derived views

Make records searchable

  • Address activity indexes
  • Balance summaries
  • Reports & caches

Rebuild directionVerified records → derived indexes

Verification pathReturned fact → proof → accepted root

Responsibility map · no physical schema, retention promise or running database is implied.

Keep historical records tied to their anchors

A current-state proof does not answer every historical question. A historical response must identify the past point it refers to and the evidence linking it to accepted canonical history.

Keep historical records tied to their anchors
RecordRelevant context
Transaction or receiptCanonical identifier, containing block and the relevant commitment
Historical stateThe specific finalized state root and height or epoch
Consensus historyCertificates and the applicable validator context
SnapshotManifest identity, scope and accepted root
Query summarySource references and whether verification evidence is included

Choose retention to match the promised service

The archive specification distinguishes full-history, query-oriented, proof-oriented and other specialized profiles. A profile should state what it retains and which historical questions it can answer.

Canonical blocks, transaction bytes, receipts, state roots and finality evidence serve different reconstruction needs. Keeping a snapshot alone does not imply that every past state or receipt remains available.

Choose retention to match the promised service
Storage tier exampleTypical purpose
HotRecent data with frequent access
WarmIndexed historical queries
ColdOlder retained segments
Proof archiveMaterial needed for historical verification

A useful query and a verified fact are different outputs

An archive can return a convenient summary, canonical records or a proof-backed response. The interface should identify which was returned and preserve its scope.

A missing search result is not proof of non-existence. Coverage, indexing lag, access restrictions or unavailable history may explain the result. Proof verification needs the appropriate accepted root and finality context.

  • Identify the requested historical range and canonical objects.
  • Distinguish a summary from attached verification evidence.
  • State coverage and unavailable portions explicitly.
  • Keep exports reproducible and tied to their source anchors.

Repair derived views from verified records

Archive checks compare block linkage, transaction and receipt roots, retained state anchors and index-to-canonical alignment. Rebuilding a derived index should be deterministic and auditable.

Index repair does not authorize rewriting canonical balances. A restore must verify its source data and scope before a service resumes. Validator signing history requires separate recovery controls.

Keep heavy retrieval off the validator critical path

Validators prioritize safe, timely participation. Archives and query services prioritize completeness, retrieval and indexing. Separating these workloads can prevent expensive searches and backfills from competing with consensus-critical work.

Concrete storage formats, proof retention, access controls, migration behavior and performance need implementation evidence. The public architecture does not establish a functioning archive service or a completed QuantumDB integration.