ConsenSysMesh / cava

ConsenSys core libraries for Java & Kotlin
Apache License 2.0
84 stars 34 forks source link

SSZ support for endianness #101

Closed atoulme closed 5 years ago

atoulme commented 5 years ago

There is no support for setting endianness at this time in the SSZ library. The spec was modified to allow endianness when serializing individual values.

cleishm commented 5 years ago

In the current spec, all integers and lengths are serialized in big endian. The other types do not have multi-byte sequences, so I think just doing big-endian is fine.

The spec is probably misleading.

atoulme commented 5 years ago

The spec changed - moving from specifying endianness to enforcing integer endianness to little endian.