Skip to main content

Module codec

Module codec 

Source
Expand description

Codec module for RFC-compliant serialization.

Supports both CBOR (primary, RFC 8949) and JSON (legacy) encoding for Proof-of-Process evidence packets.

Modules§

cbor
CBOR encoding/decoding for RFC 8949 compliance.
json
JSON encoding/decoding for backwards compatibility.

Enums§

CodecError
Encoding/decoding errors for CBOR and JSON codecs.
Format
Wire serialization format selector.

Constants§

CBOR_TAG_ATTESTATION_RESULT
Alias for engine-era constant names.
CBOR_TAG_COMPACT_REF
CBOR semantic tag for Compact Evidence Reference. Tag value: 1129336657 (0x43504F51 = “CPOQ”)
CBOR_TAG_CPOP
CBOR semantic tag for Compact Proof-of-Process (CPOP) evidence packet. Tag value: 1129336656 (0x43504F50 = “CPOP” in ASCII) Per draft-condrey-rats-pop CDDL and IANA CBOR tag registry.
CBOR_TAG_CWAR
CBOR semantic tag for Compact Writers Attestation Result (CWAR). Tag value: 1129791826 (0x43574152 = “CWAR” in ASCII) Per draft-condrey-rats-pop CDDL and IANA CBOR tag registry.
CBOR_TAG_EVIDENCE_PACKET
Alias for engine-era constant names.
IANA_PEN
IANA Private Enterprise Number for WritersLogic Inc.

Functions§

decode
Deserialize a value from the specified format.
decode_attestation
Deserialize CBOR-tagged bytes into an AttestationResult.
decode_auto
Auto-detect format and deserialize.
decode_evidence
Deserialize CBOR-tagged bytes into an EvidencePacket.
decode_from
Deserialize a value from a reader in the specified format.
encode
Serialize a value in the specified format.
encode_attestation
Serialize an AttestationResult to CBOR with the registered tag.
encode_evidence
Serialize an EvidencePacket to CBOR with the registered tag.
encode_to
Serialize a value into a writer in the specified format.

Type Aliases§

Result