Hi,

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

281dd50f6f56bc6e867fe73dd614a73c55a647a479704f64804b574cafb0f5c5

How is the hash calculated? What am I doing wrong?

Thanks!