You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuweni.apache.org by GitBox <gi...@apache.org> on 2020/02/27 02:08:35 UTC

[GitHub] [incubator-tuweni] franck44 opened a new issue #49: SSZ encoding of list of booleans

franck44 opened a new issue #49: SSZ encoding of list of booleans
URL: https://github.com/apache/incubator-tuweni/issues/49
 
 
   The encoding (serialisation) fo list of booleans seem to produce 
   1. a unit32 with the size of the list
   2. a sequence of Bytes each one encoding a bit in the list. 
   
   This is according to the implementation
   https://github.com/apache/incubator-tuweni/blob/03c08eeeba108670938252fef1fee209bdf435fe/ssz/src/main/java/org/apache/tuweni/ssz/SSZ.java#L1221
   
   and test 
   https://github.com/apache/incubator-tuweni/blob/03c08eeeba108670938252fef1fee209bdf435fe/ssz/src/test/java/org/apache/tuweni/ssz/BytesSSZWriterTest.java#L415
   
   If this is correct, it does not seem to correctly implement the format of the Eth2.0 spec https://github.com/ethereum/eth2.0-specs/blob/dev/ssz/simple-serialize.md#bitlistn
   
   which specifies that the bits should be put together in Bytes (which seems to a good idea as produces more compact encodings).
   
   Is that going to be problem when communicating with clients that do implement the spec?
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tuweni.apache.org
For additional commands, e-mail: dev-help@tuweni.apache.org


[GitHub] [incubator-tuweni] atoulme commented on issue #49: SSZ encoding of list of booleans

Posted by GitBox <gi...@apache.org>.
atoulme commented on issue #49: SSZ encoding of list of booleans
URL: https://github.com/apache/incubator-tuweni/issues/49#issuecomment-592312193
 
 
   The current SSZ implementation fell behind the spec. It needs to update to the latest eth2 tests and adapt.
   
   I recently added the eth2 spec tests as a submodule to allow for this, but haven't pushed for running the tests yet.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tuweni.apache.org
For additional commands, e-mail: dev-help@tuweni.apache.org


[GitHub] [incubator-tuweni] franck44 commented on issue #49: SSZ encoding of list of booleans

Posted by GitBox <gi...@apache.org>.
franck44 commented on issue #49: SSZ encoding of list of booleans
URL: https://github.com/apache/incubator-tuweni/issues/49#issuecomment-592319498
 
 
   Thanks @atoulme 
   
   I am interested in getting the test results when it is set up to run.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tuweni.apache.org
For additional commands, e-mail: dev-help@tuweni.apache.org