Skip to content

Instantly share code, notes, and snippets.

@cyberpirate92
Created May 14, 2019 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyberpirate92/873f998a17246c1c13025908983d1b73 to your computer and use it in GitHub Desktop.
Save cyberpirate92/873f998a17246c1c13025908983d1b73 to your computer and use it in GitHub Desktop.
public String getHash() throws NoSuchAlgorithmException {
return CryptoHelper.sha256(transactionData + String.valueOf(timestamp)
+ String.valueOf(previousBlockHash)
+ String.valueOf(nonce));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment