hamiyoca icon indicating copy to clipboard operation
hamiyoca copied to clipboard

I need your help to understand this piece of Art.

Open Nawter opened this issue 7 years ago • 1 comments

Hi Jan, how are you?, I'll try to understand your code, so I need to ask you some questions:

  1. 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 is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad?
  2. What is the purpose of these variables in your code: data, midstate, hash1, hash, target?
  3. Why in your code you did twice reset and update, one for midstate and data, the other is for hash, because in the sequential code, I saw it only once, and this is the reference of the sequential code.
  4. What is the purpose of the function toRGBA?
  5. Do you an email to reach you instead of posting message on github. Cheers.

Nawter avatar Aug 13 '17 18:08 Nawter

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.

davidawad avatar Aug 15 '17 16:08 davidawad