PROTOCOL · DESIGN GUIDE
Storage, archives & historical evidence
Separate canonical history, current state and derived views, then understand what a historical query actually proves.
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.
Records. State. Views.
Logical responsibilities in the intended QuantumDB integration.
Canonical history
Preserve the record
- Blocks & transactions
- Receipts & events
- Finality evidence
Active state
Enforce current rules
- Spendable value objects
- Descriptors & registries
- Asset state & locks
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.
| Record | Relevant context |
|---|---|
| Transaction or receipt | Canonical identifier, containing block and the relevant commitment |
| Historical state | The specific finalized state root and height or epoch |
| Consensus history | Certificates and the applicable validator context |
| Snapshot | Manifest identity, scope and accepted root |
| Query summary | Source 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.
| Storage tier example | Typical purpose |
|---|---|
| Hot | Recent data with frequent access |
| Warm | Indexed historical queries |
| Cold | Older retained segments |
| Proof archive | Material 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.