class IbftBlockHashing {

  public static Hash calculateHashOfIbftBlockOnChain(final BlockHeader header) {
    final IbftExtraData ibftExtraData = IbftExtraData.decode(header);
    return Hash.hash(
        serializeHeader(header, ibftExtraData::encodeWithoutCommitSealsAndRoundNumber));
  }

}