# Identifiers & canonical formats

Understand which object an identifier names, which context it binds to and why display text is different from canonical signing bytes.

Canonical page: https://quantumchain.info/docs/reference/identifiers-and-formats

Category: Reference · Reviewed: 24 November 2026

## One meaning, distinct representations

The encoding specification separates logical objects, canonical binary, defined text profiles and human-facing display. A UI label or shortened address must not redefine protocol meaning.

These layers describe responsibilities. They are not an implemented byte grammar or a ready-to-use encoding library.

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

## Name the identifier’s domain

| Identifier family | Names | Do not substitute |
| --- | --- | --- |
| Transaction ID | A canonical protocol action | Payment request or invoice reference |
| Block ID | A protocol block under its identity rules | A display height alone |
| Descriptor ID | An authorization description and its context | Contact label or login name |
| Asset / object ID | A typed value class or stateful object | Symbol or media filename alone |
| Receipt / event ID | An outcome or event in its originating context | A duplicate service notification |
| Domain / route ID | A scoped environment or defined route | An arbitrary endpoint URL |

## Determinism needs exact rules

Different implementations must agree on canonical bytes. A parser accepting a friendly read-API representation does not establish that those bytes are suitable for a protocol signature.

- Define field order, type/version tags and optional-field presence.
- Bound variable-length data and repeated fields.
- Reject duplicate keys and ambiguous numeric representations.
- Specify list order and any required map or set ordering.
- Bind hashes and signing messages to their suite, version and relevant context.

## Preserve amounts exactly

This is an arithmetic illustration, not QTCN precision or a wire encoding. Protocol-significant amounts use exact integer-scaled representations under the asset’s rules; display formatting must preserve their value.

Negative values, overflow, excessive decimals and rounding require explicit schema rules. Do not use binary floating-point serialization for protocol amounts.

| Illustration | Value |
| --- | --- |
| Hypothetical precision | 2 decimal places |
| Displayed amount | 12.34 example units |
| Scaled integer | 1234 smallest units |

## Bind identity to the intended context

Network and, where relevant, domain binding prevent an object from silently being reused in the wrong environment. Checksums can detect certain encoding or transcription errors; they do not establish ownership or authorize spending.

Multi-party signing must bind every participant to the same canonical message. A shortened address or an informal text explanation is not a replacement for the signed payload.

## Verify formats before publishing executable examples

A canonical parser should reject invalid alternatives, apply explicit unknown-field rules and preserve exact bytes through canonical round trips: serializing a parsed canonical object must reproduce the original canonical bytes.

Exact prefixes, field tags, widths, hash/signature exclusions and test vectors need a reconciled implementation-level specification. This guide supplies no invented valid address, signing payload or transaction hex.

> **Reference boundary**
> The existing architecture sources define encoding discipline. Executable examples require verified schemas, vectors and released software; a conceptual table is not an API contract.

## Related reading

- [Transaction structure](<https://quantumchain.info/docs/protocol/transaction-format>)
- [Addresses & descriptors](<https://quantumchain.info/docs/wallets/addresses-and-descriptors>)
- [Testing & conformance](<https://quantumchain.info/docs/developers/testing-and-conformance>)
- [QuantumChain whitepaper](<https://quantumchain.info/whitepaper>)
