Created
June 21, 2018 07:09
-
-
Save felixklauke/10bdb5852a2f5382943f4244d11383b5 to your computer and use it in GitHub Desktop.
Creating the Hash of a block.
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
public String getHash() { | |
return DigestUtils.sha256Hex(timestamp + HASH_DELIMITER + transactions.toString() + HASH_DELIMITER + previousBlockHash + HASH_DELIMITER + proofOfWork); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment