# Ledger & state

How spendable value, persistent objects and recorded history fit together—and why a balance summary is only one view of the ledger.

Canonical page: https://quantumchain.info/docs/protocol/ledger-and-state

Category: Protocol · Reviewed: 24 November 2026

## Four views of the same ledger

QuantumChain’s ledger design separates immutable history, active objects, derived indexes and proof structures. These views serve different purposes while remaining tied to the same validated state transitions. A fast balance query must not become a separate authority for spending.

Logical storage responsibilities. This is not a diagram of four separate networks.

1. **History** — Blocks, transactions, receipts and certificates record how the ledger reached its state.
2. **Active objects** — Current value, descriptors, asset definitions and locks determine what can happen next.
3. **Query indexes** — Address activity and balance summaries make those records easier to find.
4. **Proofs & snapshots** — Authenticated commitments support verification and state synchronization.

## Value objects and persistent control

The detailed ledger source uses “state object” as the umbrella term, including value objects. The architecture also uses it more narrowly for persistent records. In these guides, value objects are the consumable category; persistent objects carry continuing control or registry state.

| Object family | Purpose | Typical lifecycle |
| --- | --- | --- |
| Value | Represents units under explicit spending authority | Consume once; create new outputs |
| Asset definition | Defines an asset and its permitted operations | Persist; update only under its authority |
| Descriptor / policy | Defines who may act and under which conditions | Reference or update under the applicable rules |
| Lock / escrow | Restricts value until a permitted transition | Fund, hold, then release or settle |
| Registry | Records validators, domains or other protocol objects | Persist with authorized revisions |

## Reading an object is not spending it

A transaction must distinguish a consumptive input from a read-only reference. Spending a value object ends that object’s spendable lifecycle. Consulting an asset policy does not destroy the policy.

Object identifiers, type, domain and revision bind execution to the intended state. If two transactions attempt to spend the same value object or update the same revision, both cannot succeed against that same state. Friendly wallet names do not replace canonical references.

## Validate, then apply one complete transition

Independent object sets can support parallel work, but shared objects and limits still require deterministic conflict resolution. Parallelism is a design goal, not a published throughput measurement.

Design-level execution sequence. Invalid transitions must not leave partially updated economic state.

1. **Resolve** — Parse the transaction and resolve its referenced objects.
2. **Authorize** — Verify witnesses, validity bounds and object authority.
3. **Check** — Apply transaction-type, asset, conservation and resource rules.
4. **Commit** — Apply the complete transition, emit deterministic results and update commitments.

## Follow every unit

For an ordinary native transfer, consumed value must equal resulting outputs plus fees and any explicitly authorized sink. Minting and burning require their own permitted transaction rules; an ordinary transfer cannot create units.

| Illustrative transfer | Value |
| --- | --- |
| Consumed input | 100 units |
| Recipient output | 60 units |
| Sender change output | 39 units |
| Fee | 1 unit |
| Check | 100 = 60 + 39 + 1 |

> **Illustration only**
> The one-unit fee is arithmetic for this example, not a QuantumChain fee quote or configured network rate.

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

## Available and restricted value

The model supports available, locked, escrowed and other explicitly defined partitions. Showing an amount in a wallet does not make it spendable. The owning object’s rules determine which transitions are valid.

Institutional restrictions belong to the relevant asset and domain. Their existence does not authorize a universal administrator override of personal payments or the mutual-consent escrow profile.

> **Implementation boundary**
> Canonical object schemas, revision handling, conflict scheduling and failure-fee semantics require implementation-level conformance tests. This guide describes the ledger design.

## Related reading

- [Transaction structure](<https://quantumchain.info/docs/protocol/transaction-format>)
- [Commitments & proofs](<https://quantumchain.info/docs/protocol/commitments-and-proofs>)
- [Escrow payments](<https://quantumchain.info/docs/transactions/escrow>)
- [QuantumChain whitepaper](<https://quantumchain.info/whitepaper>)
