public static Sha256Hash computeHash(byte[] bytes){
  MessageDigest digest=getMessageDigest();
  return new Sha256Hash(digest.digest(bytes));
}

public static Sha256Hash computeHash ( byte [ ] bytes ) { MessageDigest digest = getMessageDigest ( ) ; return new Sha256Hash ( digest . digest ( bytes ) ) ; }
computes the sha - 256 hash for the given array of bytes .
