Bitcoin Forum
May 13, 2024, 05:48:27 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Javascript Litecoin Miner almost Done  (Read 1005 times)
manzati93 (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
November 20, 2013, 08:39:14 AM
 #1

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
1715579307
Hero Member
*
Offline Offline

Posts: 1715579307

View Profile Personal Message (Offline)

Ignore
1715579307
Reply with quote  #2

1715579307
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
coreli
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
November 20, 2013, 09:01:46 AM
 #2

Browser mining  Cry

Nice concept & idea hopefully hackers can use this instead of an exploit pack  Roll Eyes
manzati93 (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
November 20, 2013, 09:11:40 AM
 #3

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 :/
coinpr0n
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000



View Profile
November 20, 2013, 09:50:06 AM
 #4

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)

manzati93 (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
November 20, 2013, 10:23:51 AM
 #5

2kh/s? That's unexpected.
tr_m
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 22, 2013, 11:27:50 PM
 #6

manzati93,
drop me message to skype tr_m000
zengryT
Hero Member
*****
Offline Offline

Activity: 745
Merit: 500



View Profile
November 23, 2013, 12:30:07 AM
 #7

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  Cheesy

Not managing signature campaigns anymore.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!