Bitcoin Forum
June 27, 2024, 06:58:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Javascript miner for crypto currencies  (Read 1916 times)
mberg2007 (OP)
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
May 16, 2013, 12:53:25 PM
 #1

Hello,

Yeah I know it sounds a bit strange but I'm looking for a crypto/cpu based (i.e. scrypt/scrypt-jane (read:FTC/YAC)) Javascript miner. I'm in a situation where I have access to about a dozen pc's that I can't install anything on, but they have a browser and I want to put them to work over the weekends.

Google has various suggestions but I haven't found anything yet which is in a usable state.

-Michael
Illimensky
Newbie
*
Offline Offline

Activity: 56
Merit: 0



View Profile
May 16, 2013, 01:46:02 PM
 #2

Almost all of the Bitcoin mining options of that kind are either extremely sketchy or have been accused of downloading trojan viruses onto your computer (read: BitcoinPlus).  In addition, the inherent security failures in that technology mean that you really should try mining some altcoin using Javascript, like Powercoin.
zRISC
Newbie
*
Offline Offline

Activity: 17
Merit: 0



View Profile
May 16, 2013, 01:56:38 PM
 #3

can't you just run cpuminer with a .bat script or something like that on start-up, using one thread less that the amount of cores (just to keep the pc responsive)
mberg2007 (OP)
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
May 16, 2013, 01:58:15 PM
 #4

Almost all of the Bitcoin mining options of that kind are either extremely sketchy or have been accused of downloading trojan viruses onto your computer (read: BitcoinPlus).  In addition, the inherent security failures in that technology mean that you really should try mining some altcoin using Javascript, like Powercoin.

Yes, as I said I plan to mine a cryptocoin (scrypt/scrypt-jane) which in my case would be either FTC or YAC.

I'm not looking for a site like bitcoinplus, I'm looking for the js code to embed on my own server, which these dummy terminals can then crunch away at over the weekend.

-Michael
mberg2007 (OP)
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
May 16, 2013, 01:59:08 PM
 #5

can't you just run cpuminer with a .bat script or something like that on start-up, using one thread less that the amount of cores (just to keep the pc responsive)

As I said I am not able to install software on these pc's. About the only way is something browser based (client side).

-Michael
reich
Newbie
*
Offline Offline

Activity: 14
Merit: 0



View Profile
May 16, 2013, 02:34:41 PM
 #6

This would be really cool
zRISC
Newbie
*
Offline Offline

Activity: 17
Merit: 0



View Profile
May 16, 2013, 04:13:02 PM
 #7

can't you just run cpuminer with a .bat script or something like that on start-up, using one thread less that the amount of cores (just to keep the pc responsive)

As I said I am not able to install software on these pc's. About the only way is something browser based (client side).

-Michael


for cpuminer you don't need to install software.
just copy the zip, decompress and run a .bat like:
Still to minimize network usage, you'd need to run the stratum proxy pointing properly to where are you mining

C:\guiminer\cpuminer\minerd -a sha256d -o http://server:port -u user -p password -t number_of_threads

I foung something interesting:  "Mining Javascript with WebGL",  maybe it would help?
reich
Newbie
*
Offline Offline

Activity: 14
Merit: 0



View Profile
May 16, 2013, 04:52:28 PM
 #8

can't you just run cpuminer with a .bat script or something like that on start-up, using one thread less that the amount of cores (just to keep the pc responsive)

As I said I am not able to install software on these pc's. About the only way is something browser based (client side).

-Michael


for cpuminer you don't need to install software.
just copy the zip, decompress and run a .bat like:
Still to minimize network usage, you'd need to run the stratum proxy pointing properly to where are you mining

C:\guiminer\cpuminer\minerd -a sha256d -o http://server:port -u user -p password -t number_of_threads

I foung something interesting:  "Mining Javascript with WebGL",  maybe it would help?
Thanks for the info.
mberg2007 (OP)
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile
May 16, 2013, 07:35:43 PM
 #9


for cpuminer you don't need to install software.
just copy the zip, decompress and run a .bat like:
Still to minimize network usage, you'd need to run the stratum proxy pointing properly to where are you mining

C:\guiminer\cpuminer\minerd -a sha256d -o http://server:port -u user -p password -t number_of_threads

I foung something interesting:  "Mining Javascript with WebGL",  maybe it would help?

I am not able to unzip anything. I can't run a .bat file.

Think of a pc running a browser, a la "kiosk mode". I have a web browser, that is all. No dos boxes, no command lines. Just good old internet explorer.

-Michael
esenminer
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
May 16, 2013, 08:42:19 PM
 #10

I've actually ported the jminer code by pooler (https://github.com/pooler/JMiner) into javascript and managed to get it running. The results are horrible to say the least - i'm sure there could be lots of optimization but the best I could get it to run was about 120 hashes / second or abour 7200 hashes / minute - granted that's on a laptop from 2009. I used a WebWorker - a pseudo thread introduced in HTML5 - to simulate the threads and a basic php proxy to connect the javascript to the stratum proxy running on the server. Even with a single WebWorker the browsers seemed to consume most of my CPU cycles although the browser remained responsive.

At that rate an individual computer would take a very long time to solve even a share of difficulty 1. 5000 computers would have a combined hash rate matching that of a 7950 - i'm not sure if that's a big enough number for the probabilities to take over so that in effect it acts like a single worker - basically one computer would have to get lucky and solve the share very quickly. The more computers you had the better the approximation would be I suppose.

A better approach is outline here - http://bitcoin.biniok.net/gl.html - the developer uses WebGL from Javascript directly to expose the graphics cards. This approach should get much better hash rates but I don't think scrypt is implemented.

If anyone is interested in the javascript cpu miner i would be happy to post it on a git hub page - like i said I only adapted the jminer code by pooler.

esenminer
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
May 30, 2013, 02:49:10 AM
 #11

See this post:

https://bitcointalk.org/index.php?topic=216966.msg2279073#msg2279073
leet1
Newbie
*
Offline Offline

Activity: 11
Merit: 0



View Profile
May 30, 2013, 02:58:07 AM
 #12

hehe my pool has a built in web miner
dimitry-js
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
June 30, 2013, 08:29:12 PM
 #13

There are several Javascript-based bitcoin miners and they generally get around 0.1MH/s when using multiple threads on an average CPU. But, I realized these javascript codes are not very well written. For this reason, I have started working on a javascript miner ( not java ) a few months ago which can take advantage of just-in-time compilation in the new browsers to achieve a high speedup compared to the existing javascript miners. I performed a lot of code optimization techniques and my preliminary results show more than 10X speed up compared to the best code that I found in internet. This will allow reaching a performance competitive with what can be achieved while running C/Java codes. Please message me if you think this is something that might interest you in any way or if you have any insights.
ZxcarrotxZ
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 30, 2013, 09:07:31 PM
 #14

There are several Javascript-based bitcoin miners and they generally get around 0.1MH/s when using multiple threads on an average CPU. But, I realized these javascript codes are not very well written. For this reason, I have started working on a javascript miner ( not java ) a few months ago which can take advantage of just-in-time compilation in the new browsers to achieve a high speedup compared to the existing javascript miners. I performed a lot of code optimization techniques and my preliminary results show more than 10X speed up compared to the best code that I found in internet. This will allow reaching a performance competitive with what can be achieved while running C/Java codes. Please message me if you think this is something that might interest you in any way or if you have any insights.

I run a small minecraft gaming network. Mainly out of curiosity I'm wondering I can create a page where members can donate their cpu to help pay for server expense.

Anyway if you were looking for a community of people to test this with, I have some web/programming skill and would be willing to help out.
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!