Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

Structs' fields should be serialized in lexicographical order #4

Open
@gsomix

Description

@gsomix

Structs are encoded as dictionaries, so fields' names (keys) should be serialized in the in lexicographical order. In accordance with specification:

For each possible (complex) value, there is only a single valid 1coding; i.e. there is a bijection between values and their encodings.
...
A dictionary is encoded as d<contents>e. The elements of the dictionary are 1coded each key immediately followed by its value. All keys must be byte strings and must appear in lexicographical order.

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