-
Levin Zimmermann authored
In NEO/go protocol, we describe some parameters that can be send via NEO packages with structures. On the wire all of these structures are encoded as msgpack arrays [1]. Msgpack arrays can have 1 or more bytes as a header [2]. Therefore it's better to use "ReadArrayHeaderBytes" than using >>> data = data[1:] which fails in case we have array with 3 or 5 header bytes. [1] One could also declare a protocol where these parameters aren't send as msgpack arrays but as msgpack maps. See here for the msgpack map specification: https://github.com/msgpack/msgpack/blob/9aa092d6ca81/spec.md?plain=1#L338 [2] https://github.com/msgpack/msgpack/blob/9aa092d6ca81/spec.md?plain=1#L315
4fff4d4c