ConsenSysMesh / cava

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

SSZ allow lists with elements of variable length #141

Closed atoulme closed 5 years ago

atoulme commented 5 years ago

This was just changed in the SSZ spec - it is now possible to have lists with variable element length.

See this PR for context: https://github.com/ethereum/eth2.0-specs/pull/484

atoulme commented 5 years ago

I am adding a test specifically showing we can read values of variable length.

I am not however changing the API so we can write unsigned integers of variable size yet, because I can't think of a valid use case. Writing the values using the container approach seems a better bet.