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.
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.
A label is not the signed payload.
Four responsibilities with explicit boundaries.
- 01
Logical model
What the object meansTypes, authority, values and allowed actions.
- 02
Canonical binary
Exact protocol bytesDefined serialization for hashing, signing and interchange.
- 03
Defined text profile
Structured text where specifiedLogs or APIs; canonical rules required when used for signing or hashing.
- 04
Human display
Readable presentationLabels, shortened IDs and formatted amounts do not redefine the object.
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
| 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.