Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Commit

Permalink
Modify SSZ#merkleHash to have public visibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
schroedingerscode committed Mar 25, 2019
1 parent 3b881bf commit 29ebdc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ssz/src/main/java/net/consensys/cava/ssz/SSZ.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ public static Bytes32 hashTreeRoot(Bytes... bytes) {
* Hashes a list of homogeneous values.
*
* @param values a list of homogeneous values
*
* @return the merkle hash of the list of values
*/
static Bytes merkleHash(List<Bytes> values) {
public static Bytes merkleHash(List<Bytes> values) {
Bytes littleEndianLength = Bytes.ofUnsignedInt(values.size(), LITTLE_ENDIAN);
Bytes32 valuesLength = Bytes32.rightPad(littleEndianLength);

Expand Down

0 comments on commit 29ebdc9

Please sign in to comment.