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

Give SSZ#merkleHash Public Visibility for Compatibility #198

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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