Bitcoin Forum

Other => Beginners & Help => Topic started by: furionman on May 14, 2013, 08:07:51 AM



Title: Help me out with my litecoin miner
Post by: furionman 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.


Title: Re: Help me out with my litecoin miner
Post by: hobbes0110 on September 30, 2013, 06:15:02 PM
Hi are you still working on this? I am doing something similar maybe we can collaborate.


Title: Re: Help me out with my litecoin miner
Post by: Brandon1000 on October 01, 2013, 01:08:21 AM
Like the concept, let me know how it goes! Wonder if you could maybe make it a browser based miner compatible with maybe smaller Alt coins that use Scrypts :D


Title: Re: Help me out with my litecoin miner
Post by: b!z on October 02, 2013, 02:13:49 PM
Check the Mining software subforum. I'm sure you can contact more talented devs who can help you finish your project :)