Skip to content

Binary formats, schemas and verifiable encodings ​

A primary-source catalog of twenty-nine systems for describing bytes, serializing values and committing to data with hashes. Its purpose is to inform a reconsideration of the sparkles:wired Flat draft, not to revise that specification. The first consumers are a font catalog and glyph-atlas cache, built at package-build time and read from mapped files or Android assets. Describing OpenType's bounded foreign layouts is a separate stress test from designing that cache's own arena.

This survey answers nine questions:

  1. Which in-place formats bound verification work? Access and validation separates eager verification, checked views and traversal accounting, then evaluates WFL23–WFL24.
  2. Can one mechanism describe foreign bytes and build an arena? Relative offsets and foreign layouts compares base-relative pointers, sibling counts and tagged layouts with formats that own their encoding.
  3. Host-language schema or separate IDL? Declaration strategy prices Flat's D-types-and-attributes bet against generators and combinators.
  4. Is rebuilding instead of migrating sound? Evolution distinguishes disposable caches from separately distributed, long-lived files.
  5. What exactly should a content key identify? Determinism and hashing distinguishes repeatable builders, canonical values, output digests and build-input keys.
  6. Which Merkle structure fits partial atlas verification? Tree constructions compares typed roots, byte-range proofs, object DAGs and append-only logs.
  7. What do byte order and alignment really require? Alignment separates portable accessors from native references and examines the APK alignment constraint.
  8. Which real parser failures matter to Flat? Hostile input maps implementation incidents and differential risks to requirements and gaps.
  9. What should the owner keep, change, add or defer? The delta table names the draft's WFL IDs and links each recommendation to evidence.

Last reviewed: October 17, 2026

IMPORTANT

Flat is a draft, not a delivered implementation. The baseline is pinned at 8a454ce151c23b3608467cf8e19821678583ecb3 from the docs/wired-flat branch. Its specification, delivery plan and open issues are cited externally because this catalog is independent of that branch. Performance claims about Flat remain proposed acceptance criteria.

Master catalog ​

The category describes the system's primary role, not an exclusivity claim: CDDL describes CBOR, while DAG-CBOR constrains CBOR for content addressing. All deep-dives use the same ten dimensions.

SubjectCategorySchema or framing authorityDistinguishing propertyLink
ASN.1: BER, DER, PERDescription languageASN.1 types + encoding rulesCanonical restrictions versus schema-driven bit packingDeep-dive
DFDLDescription languageAnnotated XML SchemaDescribes existing text and binary representationsDeep-dive
CDDLDescription languageData-definition grammarConstrains CBOR values, not native memory layoutDeep-dive
OMG IDL / CDR / XCDR2Description languageIDL + representation and extensibility rulesAlignment, byte order and evolution are protocol choicesDeep-dive
Kaitai StructDescription languageDeclarative .ksySeeks, counts and switches over foreign bytesDeep-dive
ConstructDescription languagePython combinator objectsContext-sensitive parsing and buildingDeep-dive
Protocol BuffersSchema-driven protocol.proto field numbersTagged fields; deterministic is not canonicalDeep-dive
Apache ThriftSchema-driven protocolThrift IDL + chosen protocolBinary and compact encodings share field IDsDeep-dive
Apache AvroSchema-driven protocolWriter schema + reader resolutionPositional encoding and schema fingerprintsDeep-dive
FlatBuffersSchema-driven protocol.fbsVtable-based in-place access with explicit verifierDeep-dive
Cap'n ProtoSchema-driven protocol.capnpWord-oriented pointers; traversal budgetsDeep-dive
Simple Binary EncodingSchema-driven protocolXML message schemaFixed block plus sequential groups and tailsDeep-dive
BebopSchema-driven protocol.bopFixed structs versus evolvable framed messagesDeep-dive
MessagePackSelf-describing encodingType-marker grammarCompact dynamically typed valuesDeep-dive
CBORSelf-describing encodingRFC 8949Generic encoding plus deterministic profilesDeep-dive
BSONSelf-describing encodingDocument grammarLength-delimited typed elements with namesDeep-dive
SmileSelf-describing encodingJackson Smile grammarJSON tokens with shared-name/value referencesDeep-dive
UBJSONSelf-describing encodingMarker grammarJSON model with typed/counted container optimizationDeep-dive
Ethereum SSZMerkleized formatConsensus types and boundsCanonical serialization and separate typed Merkle rootsDeep-dive
IPLDContent-addressed formatsData model + codec + CIDDAG-CBOR / DAG-PB and algorithm-labelled linksDeep-dive
Tendermint / CometBFTMerkleized protocolProtobuf schemas and consensus rulesAmino migration; simple RFC 6962-style treeDeep-dive
COSE / deterministic CBOR / dCBORSigning and encoding profilesRFCs and versioned dCBOR workExact signed bytes versus value-normalization rulesDeep-dive
Git objectsContent-addressed framingType, size and payloadObject identity precedes zlib storageDeep-dive
Plutus Core DataLedger encodingAlgebraic values + ledger CBOR rulesDatum hashes are not automatically a Merkle treeDeep-dive
iroh / BaoVerified byte framingBLAKE3 tree and transfer grammarRange verification with separate outboard nodesDeep-dive
BitTorrent v2Merkleized distributionBEP 52Per-file SHA-256 piece treesDeep-dive
Certificate TransparencyVerifiable log framingRFC 6962 and tiled/static APIsTyped leaves, signed roots and append-only proofsDeep-dive
TUF / in-totoSigned metadataMetadata schemas, canonical JSON, envelopesAuthentication and rollback policy above payload layoutDeep-dive
HypercoreSigned append-only logBlock/tree and manifest encodingsFlat-tree indexing with signed commitmentsDeep-dive

Taxonomy ​

By encoding style ​

Encoding styleSubjectsImportant boundary
Describes another formatDFDL, Kaitai, ConstructDescription power does not imply allocation-free views
Schema-defined positional or bit-orientedPER, CDR, Avro, SBE, SSZWriter and reader must share enough schema context
Tagged fields or valuesBER/DER, protobuf, Thrift, Bebop messages, MessagePack, CBOR, BSON, Smile, UBJSONA value type marker is not an application field ID
Pointer/offset layoutFlatBuffers, Cap'n Proto, SSZ variable partsOffset base and target extent differ across formats
Encoding profile or data modelCDDL, IPLD, COSE/dCBOR, Plutus DataSchema, canonicalization and signing need separate rules
Object, blob or log framingGit, Bao, BitTorrent v2, CT, TUF/in-toto, Hypercore, CometBFTIntegrity structure is not the application's memory layout

By access model ​

Access modelExamplesCost that remains
Direct accessor viewsFlatBuffers, Cap'n Proto, SBE fixed blocksBounds/verification, pointer following, version or byte-order checks
Fixed part plus variable tailSSZ, SBE, BebopDynamic-element boundaries or sequential scans
Sequential token/object decodingprotobuf, Thrift, Avro, MessagePack, CBOR, BSON, Smile, UBJSON, BER/PER, CDRMaterialization and indexing depend on implementation
Declarative parsing or validationKaitai, DFDL, Construct, CDDLGenerated/interpreted parse work; not a native-reference proof
Authenticated retrievalIPLD, Git, Bao, BitTorrent, CT, CometBFT, Hypercore, TUF/in-toto, COSE, PlutusFetching, hashing or signature verification before trust

By canonical-form contract ​

ContractExamplesCaution
Encoding constrained for a specified type/profileDER, SSZ, DAG-CBOR, dCBORType, profile revision and value equivalence remain part of the contract
Generic format with deterministic/canonical profileCBOR, Cap'n Proto, TUF canonical JSONOrdinary valid input need not satisfy the profile
Repeatable producer, not general canonicalityprotobuf, FlatBuffersField order, builder history or representations can differ
Exact-byte commitmentGit, Bao, BitTorrent, COSE, DSSE, CT, CometBFT, Hypercore, Plutus datum hashesA different encoding legitimately has a different identity
No general canonical profile established by the base formatThrift, Avro, SBE, Bebop, MessagePack, BSON, Smile, UBJSON, CDRSchema canonicalization or one encoder's stable output is not a universal value-encoding rule
Description, not a unique byte encodingDFDL, CDDL, Kaitai, ConstructCanonicality belongs to the described format/profile, not to the declaration mechanism

The synthesis examines formats without a single general canonical form, including name order, numeric representations, optional defaults and implementation-specific settings; absence is not permission to hash decoded values without defining their equivalence.

By merkleization ​

StructureSubjectsWhat the root means
Typed value treeSSZA value under its type, bounds and mixing rules
Content-addressed object DAGIPLD, GitEncoded blocks linked by hashes
Byte chunk treeBao, BitTorrent v2Byte ranges under a particular tree construction
Append-only log treeCT, CometBFT simple tree, HypercoreOrdered leaves; log protocols add history and signatures
Whole encoded value or signed metadata, not inherently a treePlutus datum hash, COSE/dCBOR, TUF/in-totoExact scope and signature envelope must be read separately
No built-in Merkle constructionASN.1, DFDL, CDDL, CDR, Kaitai, Construct, protobuf, Thrift, Avro, FlatBuffers, Cap'n Proto, SBE, Bebop, MessagePack, CBOR, BSON, Smile, UBJSONApplications may layer one on top

Analysis spine ​

Every deep-dive answers these ten dimensions, including why an absent capability does not apply:

  1. Schema source of truth.
  2. Wire encoding.
  3. Access model.
  4. Variable-length and optional data.
  5. Evolution and compatibility.
  6. Determinism and canonical form.
  7. Merkleization and content addressing.
  8. Hostile-input safety.
  9. Describing foreign formats.
  10. Implementation and performance evidence.

Milestones ​

These are dated standards or first-party historical markers, not claims about which implementation invented an idea. Edition-specific details live in the linked deep-dives.

DateMilestoneEvidence
1988ASN.1 / BER appear in the X.208 / X.209 lineageASN.1 standards history
2005Git makes typed, size-framed objects the unit of identityGit objects
June 2013RFC 6962 standardizes Certificate Transparency's tree and signed structuresRFC 6962
October 2013RFC 7049 publishes CBORRFC 7049
June 2019RFC 8610 publishes CDDLRFC 8610
December 2020RFC 8949 replaces RFC 7049, specifying core deterministic encodingRFC 8949
August 2022RFC 9052 / RFC 9053 specify the revised COSE structures and algorithmsCOSE
Revision-dependentSSZ progressive types, dCBOR and static/tiled log APIs must be read at the surveyed revision, not as timeless deployment claimsSSZ, dCBOR, CT

Suggested reading paths ​

Sources ​

Each subject page names its source revision, official specification sections, implementation paths and evidence limitations. Tool-produced bytes are labelled as observations; upstream vectors and illustrative derivations are not claimed as local benchmark measurements. Cross-subject recommendations are in comparison.

Existing research is linked rather than replicated: content addressing owns file-tree hashing and serde owns the lineage of sparkles:wired's shared schema. This catalog adds byte framing, access contracts, canonical encodings and typed or intra-file verification.