Created
September 18, 2018 21:38
-
-
Save samkirton/a0b0741e44dab4ea5c1bdcedc64d5a58 to your computer and use it in GitHub Desktop.
eos-smart-contract-sha256
This file contains hidden or 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
#include <eosiolib/crypto.h> | |
checksum256 uniqueId; | |
auto purchaseIdChar = purchaseId.c_str(); | |
sha256((char *)purchaseIdChar, sizeof(purchaseIdChar), &uniqueId); | |
printhex(&uniqueId, sizeof(uniqueId)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment