Bitcoin Forum

Other => Beginners & Help => Topic started by: manzati93 on November 20, 2013, 08:39:14 AM



Title: Javascript Litecoin Miner almost Done
Post by: manzati93 on November 20, 2013, 08:39:14 AM
i've written a bitcoin miner which, given as string the header_hex of [this example][1] returns the correct hash and check if it is lower than the current target. ([example here][2])
I've tryied to build a server in python (gist.github.com/anonymous/7549461 ) which connects to a pool using stratum and should then send data as hex strings (formatted and swapped as the bitcoin wiki example), but I am not sure about the swapping of the data and target and merkle in order to achieve data as the bitcoin wiki example. This data will be sent to the miner which will succefully works (miner is correct, i've tested it with wiki example and seems to work).

So have I swapped data right in Order to obtain hex strings as bitcoin wiki example?

  [1]: https://en.bitcoin.it/wiki/Block_hashing_algorithm
  [2]: http://matt93.altervista.org/miner3
  [3]: https://gist.github.com/anonymous/7549461


Title: Re: Javascript Litecoin Miner almost Done
Post by: coreli on November 20, 2013, 09:01:46 AM
Browser mining  :'(

Nice concept & idea hopefully hackers can use this instead of an exploit pack  ::)


Title: Re: Javascript Litecoin Miner almost Done
Post by: manzati93 on November 20, 2013, 09:11:40 AM
Yeah, I Know, but browser mining is not so profitable. Each user can give from 0.2kh/s to 1.1kh/s as I tested on various pc. You need thousand and thousand of user to make it actually prifitable. Im writing it almost For fun and Learning, thats why i am asking Here about stratum data swapping :/


Title: Re: Javascript Litecoin Miner almost Done
Post by: coinpr0n on November 20, 2013, 09:50:06 AM
Yeah, I Know, but browser mining is not so profitable. Each user can give from 0.2kh/s to 1.1kh/s as I tested on various pc. You need thousand and thousand of user to make it actually prifitable. Im writing it almost For fun and Learning, thats why i am asking Here about stratum data swapping :/

That's about what I get on my netbook (1kH/s - 2kH/s)


Title: Re: Javascript Litecoin Miner almost Done
Post by: manzati93 on November 20, 2013, 10:23:51 AM
2kh/s? That's unexpected.


Title: Re: Javascript Litecoin Miner almost Done
Post by: tr_m on November 22, 2013, 11:27:50 PM
manzati93,
drop me message to skype tr_m000


Title: Re: Javascript Litecoin Miner almost Done
Post by: zengryT on November 23, 2013, 12:30:07 AM
I have seen JavaScript Browser miner somewhere already, dont remember if Bitcoin or Litecoin, but the speed was terrible. Some included it to regular web pages, making the CPU go crazy when visiting this page  :D