Skip to content

Fixed length encoding of CBOR maps #44

@DhanusML

Description

@DhanusML

During serialization, most of the maps in this crate are initialized
as serializer.serialize_map(None). This causes ciborium to serialize
the maps using indefinite length encoding. Hence deterministic
encoding requirements cannot be met. The CoSERV data format,
which derives many data types from CoRIM, requires CBOR definite
length encoding to be used (at least for query). Initializing the maps
(at least the ones used in CoSERV) with number of elements would
enable a CoSERV implementation using definitions from this crate to
comply with the specifications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions