public static Hash wrap(final Bytes32 bytes) {
    if (bytes instanceof Hash) {
      return (Hash) bytes;
    }
    return new Hash(bytes);
  }
Wrap bytes to hash.

@param bytes the bytes
@return the hash
datatypes/src/main/java/org/hyperledger/besu/datatypes/Hash.java