Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please explain CryptoNight spec #2

Open
Vanzent opened this issue Dec 21, 2017 · 1 comment
Open

Please explain CryptoNight spec #2

Vanzent opened this issue Dec 21, 2017 · 1 comment

Comments

@Vanzent
Copy link
Vanzent commented Dec 21, 2017
IV. Real world scenario  
  -----------------------
   
  NiceHash server sends following job to miner:
   
  {"jsonrpc":"2.0","method":"job","params":{"blob":
  "0100f2fbf1ae05e778512836d3268c95b53004002f8bf0b4e591dd6c903e3620
  12b60a6eaf64cc0000003026f3436334364896a4dce0864798a16a137b9b5dc47
  a39f00a3a75077e8f14d102","job_id":"333972526853904",
  "target":"711b0d00"}}
   
  In this case; inside blob, 4 bytes of "00000000" are replaced with
  "000000030" by NiceHash. NiceHash gives miner byte "03".
   
  Miner sends found share:
   
  {"method": "submit", "params": {"id": "843393400195054", "job_id":
  "333972526853904", "nonce": "95565503", "result":
  "1b3f259aafb85c553198c2ad92392e816a8c030ac84305b89c932c8723bd0800"},
  "id":4}
   
  Nonce ends with byte "03" which is correct. Any other last byte
  of nonce would cause share above target.

I not understand. Why in json 4 bytes is 00 00 00 30. Next you wrote 00 00 00 030. 030? Where you take that? In first json nicehash byte is 30, not 03. Pleas explain.

@Vanzent Vanzent changed the title please explain xmr spec please explain CryptoNight spec Dec 21, 2017
@Vanzent Vanzent changed the title please explain CryptoNight spec Please explain CryptoNight spec Dec 21, 2017
@Kukunin
Copy link
Kukunin commented Jan 9, 2018

It's not clear to me as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants