Operated by VTI Foundation, Inc.

Annex A — Canonical Serialization

Trust-State Standard v1.0
Status: Official Release
Publication Date: February 2026
Published by VTI Foundation, Inc.

This annex defines mandatory canonical serialization requirements for all Trust-State evaluation inputs, rule definitions, and conformity artifacts.

1. Scope

Canonical serialization ensures deterministic byte representation of structured data prior to hashing, replay validation, or artifact issuance.

All systems claiming alignment with the Trust-State Standard SHALL implement canonical serialization exactly as defined in this annex.

2. Encoding Requirements

3. Object Member Ordering

JSON object members SHALL be ordered lexicographically by key using Unicode code point ordering.

4. Data Normalization Rules

5. Canonical Form Definition

The canonical form of a structured object is defined as the UTF-8 encoded byte sequence resulting from:

  1. Recursive lexicographic ordering of all object keys.
  2. Removal of non-semantic whitespace.
  3. Preservation of exact string and numeric representations.

The resulting byte sequence SHALL be used for all hash computations defined in subsequent annexes.

6. Determinism Requirement

Given identical structured input, canonical serialization MUST produce a byte-identical output across independent implementations.

Any deviation in byte sequence SHALL constitute non-conformance.

7. Relationship to Hashing

All hash derivations defined in the Trust-State Standard SHALL operate exclusively on canonical serialized byte sequences produced under this annex.