hamiyoca
hamiyoca copied to clipboard
I need your help to understand this piece of Art.
Hi Jan, how are you?, I'll try to understand your code, so I need to ask you some questions:
- Where I can put the message in your code to hash the message in sha256 e.g the message is
abc
and the hash-256 of the message isba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
? - What is the purpose of these variables in your code:
data, midstate, hash1, hash, target
? - Why in your code you did twice reset and update, one for
midstate
anddata
, the other is forhash
, because in the sequential code, I saw it only once, and this is the reference of the sequential code. - What is the purpose of the function
toRGBA
? - Do you an email to reach you instead of posting message on github. Cheers.
If I could add to this I'd really appreciate a guide of how this miner actually works and more comments about what these functions are doing.