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

Description
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.