Bitcoin Forum
July 29, 2024, 06:35:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Beginners & Help / Help me out with my litecoin miner on: May 14, 2013, 08:07:51 AM
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-work

I 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.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!