Hello,
Few days ago I started a new project just for fun - javascript litecoin miner. I know it will be slow as sh** and kinda worthless, but I'm having fun on it. So now, few nights later, I'm kinda stuck.
So far, I've got:
1.) Node.js server with json-rpc wrapper for litecoind api server
2.) Websockets to communicate between server and worker (exchange work and results, auto-reload on version change, etc...)
3.) Web Worker with some functionality
The mining functionality so far is:
- Break down "data" from "getwork", flip byte order, add nonce.
- Perform Scrypt on it
So now I need to learn more to be able to resume work. I've only really written enough functionality to do what python script here does:
https://github.com/litecoin-project/litecoin/wiki/Scrypt-proof-of-workI would like to know, in pseudo code, what should happen next. What is my min/max nonce. How do I know I've hit the right result hash. What are midstate, hash1 and target.
Anyone recommending any good documentation that would explain how mining process works (from miner program perspective).
Thanks.