Skip to main content

Module atproto_cbor

Module atproto_cbor 

Source
Expand description

Explicit public AT Protocol CBOR boundary over the existing value type.

Public DAG-CBOR orders text map keys by encoded bytes: UTF-8 byte length first, then lexical bytes. The existing native codec has a different order and is retained for already-signed artifacts. Neither decoder falls back to the other’s order. This module does not change existing record, commit, MST or identity call sites, and does not establish public repository readiness.

Integer-only AT data uses signed 64-bit integers. The public encoder checks this and validates map structure/depth before invoking the existing scalar writer. The decoder retains minimal-width, tag, UTF-8, duplicate-key and bounded-depth checks. Floats remain unsupported by the AT data model.

Structs§

AtprotoRecord
A generic public AT Protocol repository record.
AtprotoRecordKey
A validated AT Protocol record key.

Functions§

decode
Decode exactly one strictly canonical public AT Protocol value. No legacy/native ordering fallback is permitted.
encode
Encode a value in the public AT Protocol format without mutating it. This is canonical serialization, not schema validation or authorization.