Last active
January 2, 2018 08:30
-
-
Save mehmetcemyucel/59f63d6e4da701856399adf3cc5a1e7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private String generateHash(long index, String previousHash, String timestamp, | |
List<String> transactionList, long nonce) { | |
return org.apache.commons.codec.digest.DigestUtils | |
.sha256Hex(index + previousHash + timestamp + transactionList + nonce); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment