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§
- Codec
Error - 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.