diff --git a/datchain/.idea/misc.xml b/datchain/.idea/misc.xml deleted file mode 100644 index bdc94d8..0000000 --- a/datchain/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/datchain/.idea/modules.xml b/datchain/.idea/modules.xml deleted file mode 100644 index 702b2f3..0000000 --- a/datchain/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/datchain/datchain.iml b/datchain/datchain.iml deleted file mode 100644 index e23119d..0000000 --- a/datchain/datchain.iml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/datchain/src/dk/aau/cs/a311c/datchain/Block.java b/datchain/src/dk/aau/cs/a311c/datchain/Block.java index 039004e..3ebae9a 100644 --- a/datchain/src/dk/aau/cs/a311c/datchain/Block.java +++ b/datchain/src/dk/aau/cs/a311c/datchain/Block.java @@ -70,6 +70,4 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(getIdentity(), getIdentityDOB(), getIdentityPublicKey(), getPrevHash(), getHash(), getTimestamp()); } -} - - +} \ No newline at end of file diff --git a/datchain/src/dk/aau/cs/a311c/datchain/cryptography/SHA.java b/datchain/src/dk/aau/cs/a311c/datchain/cryptography/SHA.java index 5533900..d756dec 100644 --- a/datchain/src/dk/aau/cs/a311c/datchain/cryptography/SHA.java +++ b/datchain/src/dk/aau/cs/a311c/datchain/cryptography/SHA.java @@ -15,7 +15,6 @@ public static String computeHash(String hashInput) { } catch (NoSuchAlgorithmException e) { System.out.println("ERROR: System does not support cryptographic hash algorithm: " + e.getMessage()); } - //TODO might be redundant or not proper error-handling assert messageDigest != null; //get hashInput as bytes and update messageDigest