private static Bytes32 format(final BigInteger data) {
    return Bytes32.leftPad(Bytes.of(data.toByteArray()).trimLeadingZeros());
  }
Helps to create a new range according to the last data obtained. This happens when a peer
doesn't return all of the data in a range.

@param worldstateRootHash the root hash
@param proofs proof received
@param endKeyHash the end of the range initially wanted
@param receivedKeys the last key received
@return begin of the new range
ethereum/trie/src/main/java/org/hyperledger/besu/ethereum/trie/RangeManager.java