Class ProofHashes

java.lang.Object
com.exonum.binding.common.proofs.ProofHashes

public final class ProofHashes
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    static void checkSha256Hash​(HashCode hash)
    Checks that the given hash is a SHA-256 hash.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • checkSha256Hash

      public static void checkSha256Hash​(HashCode hash)
      Checks that the given hash is a SHA-256 hash.
      Throws:
      java.lang.IllegalArgumentException - if the hash size is not equal to 256 bits