ajsutton opened a new issue #62: hash_tree_root for vector of basic changed 
between 0.9 and 0.10
URL: https://github.com/apache/incubator-tuweni/issues/62
 
 
   Between version 0.9 and 0.10, the result of `HashTreeUtil.hash_tree_root` 
for `VECTOR_OF_BASIC` has changed.  This has caused reference test failures in 
Teku suggesting the new value is incorrect.
   
   Test case to demonstrate:
   ```
     @Test
     public void shouldHashTreeRootCorrectly() {
       final Bytes input =
           Bytes.fromHexString(
               
"0xA99A76ED7796F7BE22D5B7E85DEEB7C5677E88E511E0B337618F8C4EB61349B4BF2D153F649F7B53359FE8B94A38E44C");
       final Bytes expected =
           
Bytes.fromHexString("0x89E40BFF069E391CA393901DA3287BBE35DC429265927ABE3C3F06BEC8E0B9CD");
       final Bytes32 actual = 
HashTreeUtil.hash_tree_root(SSZTypes.VECTOR_OF_BASIC, input);
       assertEquals(expected, actual);
     }
   ```
   
   The expected value is the one that 0.9 gives.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to