QuantumChain QTCN
MenuClose menu
Documentation QTCN / NETWORK

QUANTUMCHAIN

Explore the docs

Architecture · Payments · Protocol

REFERENCE · DESIGN GUIDE

Identifiers & canonical formats

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

9 min readReviewed 24 November 2026Markdown ↗

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.

02 / MEANING MUST SURVIVE REPRESENTATION

A label is not the signed payload.

Four responsibilities with explicit boundaries.

  1. 01

    Logical model

    What the object means

    Types, authority, values and allowed actions.

  2. 02

    Canonical binary

    Exact protocol bytes

    Defined serialization for hashing, signing and interchange.

  3. 03

    Defined text profile

    Structured text where specified

    Logs or APIs; canonical rules required when used for signing or hashing.

  4. 04

    Human display

    Readable presentation

    Labels, shortened IDs and formatted amounts do not redefine the object.

Same context · same canonical meaning

Network, domain where applicable, version, type and cryptographic suite must stay correctly bound.

Conceptual layers, not a byte-conversion recipe or a finalized wire schema.

Name the identifier’s domain

Name the identifier’s domain
Identifier familyNamesDo not substitute
Transaction IDA canonical protocol actionPayment request or invoice reference
Block IDA protocol block under its identity rulesA display height alone
Descriptor IDAn authorization description and its contextContact label or login name
Asset / object IDA typed value class or stateful objectSymbol or media filename alone
Receipt / event IDAn outcome or event in its originating contextA duplicate service notification
Domain / route IDA scoped environment or defined routeAn 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.

Preserve amounts exactly
IllustrationValue
Hypothetical precision2 decimal places
Displayed amount12.34 example units
Scaled integer1234 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.