I'm trying to calculate the hash of an offstream data chunk.
Executing storechunk "deadbeef" with MultiChain 2.0 alpha 3 returns the hash c5f5b0af4c574b80644f7079a447a6553ca714d63de77f866ebc566f0fd51d28. Digging through MultiChain's source code, I got the impression that this is the result of hashing the data two times with sha256. However, using these bash commands, I get a different result:
printf "deadbeef" | xxd -r -p | sha256sum | xxd -r -p | sha256sum
How is the hash calculated? What am I doing wrong?