Coder Social home page Coder Social logo

Low difficulty share about coin-hive-stratum HOT 113 OPEN

andresm9 avatar andresm9 commented on July 1, 2024 2
Low difficulty share

from coin-hive-stratum.

Comments (113)

Lancelight avatar Lancelight commented on July 1, 2024 2

@focaeppe Uhm, he didnt ask who. He asked "how". You said it was easy, therefore he called you out and basically said "Oh ya? Then prove it". Obviously everything you said was a complete lie. No one has solved anything. Period. Otherwise these questions wouldnt even exist. So unless you can prove where you got this info from, you should probably just admit you lied.

ALL web mining scripts no longer work. This includes coinhive and all of it's derivatives. This will be the case until coinhive or one of its derivatives releases a fix for the new fork for XMR's new hashing algo, Monero7 that then all others can use. This has not yet happened and probably will not happen for several weeks or maybe even months. Opensource is slow.

from coin-hive-stratum.

cazala avatar cazala commented on July 1, 2024 2

Hi guys,

I couldn't spend time on this yet, but I spoke to Snipa about this and he told that "Low difficulty share" is basically an invalid share, it doesn't strictly have to do with the difficulty, it's just a wrong hash. So I think that kinda confirms what @slayerulan said (#167 (comment)) and coinhive is obfuscating the blob before sending it over the wire.

I'm on batmine's telegram and it looks like they managed to get it working, but they are not opensourcing it so ¯\_(ツ)_/¯ for the moment I'm busy with decentraland and I can't spend much time on this, maybe next weekend.

from coin-hive-stratum.

PiTi2k5 avatar PiTi2k5 commented on July 1, 2024 2

Feel free to test it.
Based on webminerpool source with a lot customizing ;)
https://www.monero.crypto-webminer.com/monero.html

from coin-hive-stratum.

gtc51 avatar gtc51 commented on July 1, 2024 2

@galatolofederico
Don't bother replying to @Lancelight.
He is just a local buffoon whom you can safely ignore.

from coin-hive-stratum.

PiTi2k5 avatar PiTi2k5 commented on July 1, 2024 1

The lastest CH js doesnt work on new forks, it switched to new algo "7" but new algo is always "low diff share" i think coinhive send a different blob and on serverside recalc this. So no ppl can use simple use coinhive script on various pools

from coin-hive-stratum.

slayerulan avatar slayerulan commented on July 1, 2024 1

@Lancelight you're right but conhive, crypto-loot, cpufan.club, webminerpool is already solved this problem. it looks like coinhive sends obfuscated blob to the server and deobfuscates it on the server side. Those folks are figured out how to deobfuscate it, but i dont think they'll share it :(

from coin-hive-stratum.

focaeppe avatar focaeppe commented on July 1, 2024 1

https://github.com/notgiven688/webminerpool

from coin-hive-stratum.

slayerulan avatar slayerulan commented on July 1, 2024 1

@cazala i reverse engineered batmine's aes+xor'ed code and they basically using webminerpool's code but claiming that they made it. you can use it freely: https://github.com/notgiven688/webminerpool

but the problem with that is it sends hashes too slow compared to coinhive :)

from coin-hive-stratum.

cazala avatar cazala commented on July 1, 2024 1

@slayerulan I was just cloning that repo (:

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024 1

Erm. Just what exactly did you "port" to webasm? Webasm is just a compiler, it's not really a "language" persay. You build something in c/c++ and then you simply compile it with the webasm output. Done. So what exactly would you need to port?

Here is the wiki on what "webasm" actually is. So as you can see, there is, shall I say, a bit of misinformation in your reply :P

https://en.wikipedia.org/wiki/WebAssembly

Pay particularly close attention to this statement: " Programs can be compiled from high-level languages into wasm modules and loaded as libraries from within JavaScript applets."

Now that we actually KNOW what webasm is, here is the compiler used to compile c/c++ apps into webasm by using emcc: https://kripken.github.io/emscripten-site/docs/tools_reference/emcc.html

So, what exactly did you 'port' to webasm now that we know there is no "porting" necessary? :D

Compiling cryptonight's c/c++ source into wasm is as simple as 1 command line call to emcc. Done. Not exactly difficult :)

from coin-hive-stratum.

hitmanex avatar hitmanex commented on July 1, 2024 1

@Lancelight what @galatolofederico is trying to say is you are a dumbass.

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024 1

@hitmanex You should take lessons on how to read thread histories and you'd see that everything galatolofederico mentioned was already covered in my post about compiling the WASM. You would also have learned that he wasnt replying to me at all and was trying to cover up his claim that he had created something, when in fact he had not. He simply used Webminers project as pointed out by slayerulan. Then I called him out on the attempted "O I ported something" bullshit, which is just that, utter fucking bullshit. He didnt port jack shit. And his claim that "Hes the only project that supports CN Heavy" or whatever is nothing spectacular. Just compile CN Heavy using 1 command line command with EMCC and there you have it, a WASM that supports CN Heavy. Wow. Thats a lotta work. Write up a quickie 10 or 15 line JS file that uses the new functions (if there are even that many that need to be used) and you can slap a price tag on it, then reply in threads defending yourself for swiping others work and claiming it as your own (ala galatolofederico) like you have made some amazing new feature.

Anyone who does not understand this fact (such as GTC51 and hitmanex) would fail to see what I am even talking about. If you look up above, I've already made notes that this project uses CH's compiled WASM and that in order for this to ever work again, they either need the sources from CH's new WASM (which isnt really possible since it's now obfuscated beyond practical use) OR compile it themselves (which I described in detail how to do and successfully did so myself as well right here in this thread). I then posted the results of that and no one understood what to do with it, so it went no where and I simply deleted the WASM file since its clear no one is going to know how to use it and I'm not about to do support for how to use it. I then found a new project suggested here in this thread by echel0n who is the only other person in this thread who even has a clue on how to fix things like this other than myself. I didnt see any point in re-inventing the wheel, so I no longer use this garbage project. I just use webminer's project as a fork instead (which is the same conclusion that Galatolofederico came to).

Therefore, you missed the fact that Galatolofederico was simply pointing at a project that was already identified by echel0n and myself as being a better project to use since it had working CN C/C++ sources from which to compile a WASM from and it also had a nice JS file already to go that uses the functions that the WASM provides (which in turn came from the c/c++ sources of a cli miner, webminer simply dropped them in his repo so that its there for others to compile the wasm themselves). Therefore, this project is now 100% dead as far as I'm concerned. It's obsoleted by weminers project. His post didnt bring in anything new that had already been covered by me and echel0n. However it did appear like he was shilling his own service (which he probably charges for and could be why he posted here to begin with). I dont take kindly to shills who shill their own pay services. I've never even looked at "Batmine" or whatever it is but I wouldnt be one bit surprised if there was some sort of pay model somewhere within it for something.

from coin-hive-stratum.

hitmanex avatar hitmanex commented on July 1, 2024 1

@Lancelight you're wrong. also didn't read

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024 1

LMFAO. Well this should be amusing. Prove it.

from coin-hive-stratum.

hitmanex avatar hitmanex commented on July 1, 2024 1

you prove it

from coin-hive-stratum.

ecSpl01t avatar ecSpl01t commented on July 1, 2024

Yeah, some problems with new algo. New CHjs doesn't work, proxy gets '{"code":-1,"message":"Low difficulty share"}'

@cazala ,
Do you know, what we can do with that ?

from coin-hive-stratum.

wonchoe avatar wonchoe commented on July 1, 2024

work with Electoneum just

from coin-hive-stratum.

focaeppe avatar focaeppe commented on July 1, 2024

Electoneum will also fork in the next month

from coin-hive-stratum.

DNNSITE avatar DNNSITE commented on July 1, 2024

Has anyone solved this problem?

from coin-hive-stratum.

focaeppe avatar focaeppe commented on July 1, 2024

@DNNSITE Yes some they solved ,it seems not very hard

from coin-hive-stratum.

ecSpl01t avatar ecSpl01t commented on July 1, 2024

@focaeppe

it seems not very hard

Hi,
so you said, you knew, how to resolve this problem ?

from coin-hive-stratum.

focaeppe avatar focaeppe commented on July 1, 2024

@ecSpl01t Who solve this problem said this, not me

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

If I had to guess, its likely going to be a fix that comes from Cryptonight. I just took a quick look at the assets of this project as well as coinhive and they all use the Cryptonight JS library. So I guess it should be as simple as dropping in the new Cryptonight7 JS lib for the assets and possibly changing any functions that the old implementation used to adhere to whatever new function names or function arguments that Cryptonight7 JS has. That in itself is anything but simple unless you are a developer, of which 95% of the people here are not. I am, but I know nothing about the Cryptonight JS Lib other than that is what coinhive appears to use for it's mining library. So it's my guess that an update to the Cryptonight JS library is what is needed to fix this issue.

from coin-hive-stratum.

focaeppe avatar focaeppe commented on July 1, 2024

@Lancelight
slayerulan answer you
Respect and don't call people liars ;)

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

Was I speaking about slayerulan? No. I was talking to YOU. You cant use someone else's reply to defend your own. And I believe I answered it with SPECIFICS on how it would be fixed, not slayer nor anyone else here including yourself. Why? Because I'm the developer, not you. lol. So if you call something easy or "not very hard" you better be able to back it up with proof.

from coin-hive-stratum.

slayerulan avatar slayerulan commented on July 1, 2024

dont be a childish guys, this is not an forum, this is an issue thread.

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

https://authedmine.com/lib/worker-v2.wasm

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

m.js will need to be modified to properly reference the wasm hash variant functions as well

from coin-hive-stratum.

wonchoe avatar wonchoe commented on July 1, 2024

i solve the problem, just start use another webminer with v7 support

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@echel0n can you provide more details? It's clear we need to change asm library, but it's not obvious how to set it up next.
@wonchoe which one?

from coin-hive-stratum.

wonchoe avatar wonchoe commented on July 1, 2024

@7evenmikser trust me, if i tell someone ".wasm" file and a link go to AV filter pretty fast :D

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

I'd suggest to decompile the wasm to wat with wabt then rename the cryptonight function names to something else but your also need to modify the m.js to ref the newly renamed functions as well. This will get around adblocks and virus scans

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

Just ignore wonchoe, he's spewed out complete trash before, he's no different than focaeppe in that they provide no useful information yet feel compelled to post anyway which makes absolutely NO sense. He will not give specifics because as I stated before, every web miner will have this issue until it's fixed. echel0n however appears to be on the right track.

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

Also for now I'm simply renaming the cryptonight_hash_variant_0 to cryptonight_hash

from coin-hive-stratum.

wonchoe avatar wonchoe commented on July 1, 2024

@Lancelight i just told about a time to use your brain and github search

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

@wonchoe Research yourself. About as far as this thread maybe. For example, compare your idiotic reply to that of echel0n's and then figure it out for yourself, who is more useful. You or echel0n.

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@echel0n I don't care about AV. I switched to new WASM, then fixed it's name in the miner.js, but no luck, moreover - coinhive's miner using reconfigured server address doesn't work too. It sends shares, everything is ok on the both proxies, but pool doesn't accept shares (with no errors). I didn't figure out yet if XNP sends shares, but it accepts and works with them almost correct (sometimes says "bad share").

Hope it can help someone.

@Lancelight got ya! ;)

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

@7evenmikser are you using m.js from here or coinhives ? reason I ask is new crypto wasm has hash variant's 0 and 1

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

@7evenmikser I have the same issue, the thing works up to the point of pools simply not acknowledging accepted shares. Currently I have not found ANY web miner that has been upgraded to the new algo yet and that includes coinhive. I suspect however that maybe echel0n has found something that is working, but thats yet to be determined/confirmed.

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

@Lancelight oh I'm not sure if I'm even close yet to getting this working but from what I can tell the wasm is the updated v7 thats required its now just a matter of re-coding the m.js to use it correctly

from coin-hive-stratum.

wonchoe avatar wonchoe commented on July 1, 2024

@Lancelight that was a question "someone solve this issue" and i answer it, can't understand what you want from me? relax and don't be nervous

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

@echel0n Thats good to hear. Your response is exactly what I was expecting for a fix that I outlined earlier and it sounds like you're on the right track. :D

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

@wonchoe spouting facts that no one can confirm is just as good as an outright lie. No one needs to hear it. Take some pointers from echel0n and notice how his work closely resembles the fix I outlined above that would likely end up being the correct way to fix things.

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@echel0n m.js from here? I didn't see any m.js in this repository.
I'm using old ch script with some custom modifications. Just compared what xmr-stack sends with what new CH miner sends (on the proxy end) and didn't find big differences except new field "version".
The most scarry thing is coinhive's script doesn't work (not custom modified). As I told before, first I simply tried "CONFIG.WEBSOCKET_SHARDS" to point to my server - and got no luck.

@Lancelight we won't find any "working webminer" need to handle this ourselves.

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

@7evenmikser That is correct, there are currently no working web miners and we'll need to figure out how to make them work either ourselves or based on someone else's work (such as coinhive, IF their stuff works of course, which I dont think it does yet, but echel0n appears to be trying their code to see if it does work at some point).

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

m.js is under the assets branch

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@Lancelight did you read my reply to @echel0n ? Coinhive's doesn't work with current proxy software. (software we have)

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

i'm just porting over coinhive's code into m.js here and will test it in a few

from coin-hive-stratum.

wonchoe avatar wonchoe commented on July 1, 2024

@Lancelight
screenshot_2

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@echel0n maybe we can use something like skype or telegram to cooperate? to not spam here

from coin-hive-stratum.

wonchoe avatar wonchoe commented on July 1, 2024

@focaeppe great job! Welcome botnet and AV again! Perfect

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

Erm. Thats a public git repo you retard. Posting links to public repo's doesnt help or hinder AV products. This is why you shouldnt be posting. You clearly dont understand anything. To avoid AV, you have to rename things yourself (as 7evenmikser and echel0n do). The issue at hand has absolutely NOTHING to do with AV at all and everything to do with a Monero Fork that took place a couple days ago that broke ALL web miners. Just let echel0n and 7evenmikser work this issue out. BTW, you can find that repo link simply by looking it up in google based on your own SS with "complete sources for a monero (aeon)". Talk about the kettle calling the pot black! lmfao.

from coin-hive-stratum.

wonchoe avatar wonchoe commented on July 1, 2024

@Lancelight i know that you can find it in google "complete sources for a monero (aeon)" thats why i send you a screen with text and probably you don't undertand how AV work, it's doesn't metter if you rename something absolutly, but who know, maybe you speaking about noobs AV like Windows Deffender, in that case you are right

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

So I was able to successfully port cyptoloot's JS code in that works with the latest cryptonight wasm file however I still am seeing invalid shares so not sure where to go from here

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@echel0n are you sure it works on the pool's side? As I told coinhive miner looks like working, but pool doesn't detect any hashes.

from coin-hive-stratum.

slayerulan avatar slayerulan commented on July 1, 2024

@Lancelight i got cancer from you dude how old are you?

from coin-hive-stratum.

slayerulan avatar slayerulan commented on July 1, 2024

@echel0n cryptoloot and coinhive or cpufan.club shares the same wasm but copying it not works on the server side; it doesnt calculate the hash correctly. theyve copied from coinhive. it seems that coinhive sending solved hashes to the pool as obfuscated and these people figured out their obfuscation algorithm and they've deobfuscating it on the serverside.

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

@slayerulan so cryptonight wasm obfuscates the hash ?

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

here's something also interesting WASM_BINARY_INLINE, appears the wasm file hex encoded into the JS file

from coin-hive-stratum.

slayerulan avatar slayerulan commented on July 1, 2024

@echel0n thats what i exactly try to tell, i almost sure that coinhives wasm library sends an obfuscated hash to the server. those people i listed figured out this method.

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

screw the method why not just wasm2wat with wabt then remove the obfuscation routine all together, i'm gonna check my decompiled version now and see if that can be done

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

ok so yeah that's gonna be harder then I was thinking lol, anyway I've attached the decompiled wasm in wat form

worker-v2.wat.txt

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@echel0n wow, this looks unreadable.
Look what I found. There is a "selfTest" funtion in the CH miner. There is blob and result there:
var testJob = { verify_id: "1", nonce: "b50caf04", result: "a206161b78840ab02479d7cedc4d10cbd8a9474a049417914c0a2de987365f00", blob: "0707b0cd9dd605d16dd9b0f5e59ce246ab39fd9413a889419b4a32385190c296e98f53f4a083470000000048eba682b41bcdd20572d5a43a585ced0ad4dd1723d0da5a79af17aa8f949eae0f" };
If you can hash this job fastly and compare it's output with selftest result, maybe we can figure out what's the difference.

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

Dumb question. Is coinhive the only project that has so far created a JS or WASM cryptonight lib? Perhaps something that doesnt even use WASM to begin with? Dealing with a WASM file without the source is surely going to pose more problems than the actual problem itself.

Perhaps just make a new WASM out of the raw c/c++ file directly from the monero project? I believe gcc/CMake can compile into WASM from a c/c++ source.

Personally I think the best option is to drop wasm completely for a pure JS implementation of cryptonight but idk if that exists or not. It would be a task to create it from scratch.

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

hey if you got raw c/c++ for cryptonight I'm sure I can compile something

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

I do, its in the ccminer project here: https://github.com/tsiv/ccminer-cryptonight

It would need to be patched for the new fork though, looks like that one is old. But really any of the normal miner apps should have cryptonight.c somewhere.

https://github.com/xmrig/xmrig/blob/master/src/crypto/CryptoNight.cpp This one looks more up to date. You'll need to compare the C functions in that source to see if they somewhat match the .js files that use cryptonight. I'd bet they are probably pretty similar.

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@echel0n can't you use xmr-stak or xmrig sources for this purposes?

@Lancelight kidding? last update is 4 years ago. We need v7 support.

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

@7evenmikser I noticed the date after I had posted :P Thats why I edited with the better resource. If you can manage to get that to compile into WASM, then the process of getting it to work can begin. Once that is complete, it should be good enough for users to obfuscate it.

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

what about going with CryptoNote instead ?

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@echel0n what do you mean?

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

As far as I know that project is dead also. I took a look at it and the guy's morals were disgusting (privatized and monetizing everything and does not allow code review). Maybe it does work, maybe it doesnt. Either way its not possible to determine if he actually uses pure JS. I tend to believe it does NOT unless someone else has seen it's source and can confirm it does. The source in the public repo is a WASM file, its not pure JS.

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

coinhive cryptonight looks rather customized so does xmrig's so not sure what would need changing as I don't have any background in c/c++ coding

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

check this out https://github.com/notgiven688/webminerpool/tree/master/hash_cn/webassembly/xmr

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

Another cpp source to compare is: https://github.com/fireice-uk/xmr-stak/blob/master/xmrstak/backend/cpu/crypto/cryptonight_common.cpp

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@echel0n hoped you have. Because I don't have any experience with C/C++ also.

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

I have c/c++ exp but have never worked with WASM. I assume its nothing more than some sort of SDK that compiles into a binary file that JS can access. This may turn out to be something I'll need to do which I was hoping to avoid lol.

from coin-hive-stratum.

old-mikser avatar old-mikser commented on July 1, 2024

@Lancelight than if you have C bacground, can you using any of CLI miners listed by you above hash this blob - "0707b0cd9dd605d16dd9b0f5e59ce246ab39fd9413a889419b4a32385190c296e98f53f4a083470000000048eba682b41bcdd20572d5a43a585ced0ad4dd1723d0da5a79af17aa8f949eae0f"?

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

This webminerpool repo seems interesting, it seems to already be setup to create a WASM file according to it's Makefile. I could easily compile it and create a WASM file. It has this in the Makefile " -s WASM=1"

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

Well I just setup EMCC which it needs to compile. I'll see if I cant get it to spit out a wasm file.

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

I've decoded and attached the files cpufan.club uses, their site claims its implemented the new Monero v7 PoW and I've managed to get the code running but still no valid hashes are being generated from what I can see.

cfc_decoded.zip

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

i'm starting to think we need to make changes to the NodeJS app here on how it handles the hash after cryptonight is done with it before its sent back into the pool, I suspect it may need to be encoded to properly be accepted. Pulling apart the VB code for webminer might prove to show how thats done as well.

from coin-hive-stratum.

focaeppe avatar focaeppe commented on July 1, 2024

This guy find a solution but unfortunately he won't share for now
*** V7 Upgrade ***
As you know all the major cryptonight coins will switch (or have switched like Monero) to cryptonight V7 (or to other cryptonight implementations). In the meantime CoinHive have switched to a StO (Security through Obscurity) protected version of their webassembly/asmjs sources so they are not longer usable to mine in custom pools.
In order to make the miner resistant against this type of network upgrades I've almost rewritten the miner from scratch and compiled the webassembly/asmjs directly from the monero implementation. The miner now works fine with cryptonightv7 and will work fine with the future network upgrades.

https://batmine.club

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

Hmm has anyone tried the wasm file that I compiled from the webminer repo? I havent looked into its source much at all but I would assume it does not have the obfuscation that the coinhive version has. All i did to test the wasm itself was used webminers own test page to see if it works on custom pools and it indeed does. It sounds like this batmine thing may also have done the same thing we tried last night which was to compile the wasm directly from a monero cli miners source ( a version of which which can be found in webminers repo and is easily compiled with gcc+emcc).

from coin-hive-stratum.

scouinou avatar scouinou commented on July 1, 2024

@Lancelight Yes i try it, but there are some memory problems to load this wasm. I investigated on that, but even i give lot of memory, the problem remains as before.

from coin-hive-stratum.

scouinou avatar scouinou commented on July 1, 2024

@PiTi2k5 That seems to be working. but it's 2-3 times slower than my test on coinhive

from coin-hive-stratum.

PiTi2k5 avatar PiTi2k5 commented on July 1, 2024

@scouinou you need a long term test. I run it for about 2 hrs and the pool stats almost equal as coinhive. The new algo is around 5% slower confirmed from official monero.
For old algo you can use the new coinhive script with customizing. It runs very good except for Graft pools. The blob sends 070 for new algo and you need to set version < 7 so old algo is used (or force the old algo)

from coin-hive-stratum.

patrickbau avatar patrickbau commented on July 1, 2024

@scouinou
I just tested on 200 miners and i confirm that the hash is more then coinhive,

from coin-hive-stratum.

patrickbau avatar patrickbau commented on July 1, 2024

@Lancelight
Yes i tested it it doesn't work :(

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

@patrickbau Hmm ok, well i'll just keep working on it when I have more time. The source for the wasm is going to be critical to have in an opensource webmining project if it expects to be successful. Without it, forks are going to be major issues.

from coin-hive-stratum.

slayerulan avatar slayerulan commented on July 1, 2024

@Lancelight webminerpool already open sourced wasm?

from coin-hive-stratum.

echel0n avatar echel0n commented on July 1, 2024

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

He did yes, thats where I swiped the source of cryptonight to compile the WASM file which some reported didnt seem to work. But I did test his project and it does indeed pass shares to all of the pools I tried. I'm not sure why the wasm didnt work, maybe I copy/pasted something wrong but it does work with his project. Maybe he uses a version of cryptonight from a completely different miner than what coinhive uses. I have no idea where coinhive derives their wasm files from (and this project uses coinhive wasm files, so the js files would be based on that assumption as well)

All I did was compile the cryptonight in his project with emcc which then created a file called "cn.html". Inside that cn.html file is a base64 encoded version of the wasm file which I then copied, de-encoded, and then tested it with wasm2wat. The wat file looked valid to me, so I had posted it here (which I have since removed since people reported it wasnt working).

from coin-hive-stratum.

slayerulan avatar slayerulan commented on July 1, 2024

@Lancelight dude just shut up. please shut up you talking just nonsense on snipa22's issue and this issue. i wanted to keep calm but somebody needs to tell you to just stop. only think about it to tell that how retarded are u talking; why are you compiling an opensource project then decompiling (de encoding in your words) to reverse engineering it with wasm2wat? you can already review source code directly.

everyone; you can freely fork webminerpool source code; it works! they include wasm, frontend and backend on github. but backend is written in c# but you can easily edit the frontend to solve the hashes according to xmr-node-proxy+coin-hive-stratum. but the only problem is that webminerpool's code solving hashes 2x slower than coinhive. if you're ok with that then np at all.

if someone figures out how coinhive obfuscates hashes when sent to the server, please share it with us. crypto-loot and cpufan.club is already figured it out.

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

What the fuck are you babbling about. I have absolutely never posted in any snipa22's projects. Sounds to me like you have mental problems, beginning with delusional fantasy posts that simply dont exist. I dont see you compiling, modifying, and posting files/code snippets anywhere. Put up or shut up. The only thing I've seen you do is point to web resources. Anyone with a monitor can do that.

from coin-hive-stratum.

slayerulan avatar slayerulan commented on July 1, 2024

@Lancelight ok

from coin-hive-stratum.

ecSpl01t avatar ecSpl01t commented on July 1, 2024

Someone resolve this problem ?

from coin-hive-stratum.

Lancelight avatar Lancelight commented on July 1, 2024

For this particular project, not not yet. The problem and fix is known, now people are working on implementing the fix. It may take awhile.

from coin-hive-stratum.

cron13 avatar cron13 commented on July 1, 2024

Hey, any solutions other than https://github.com/notgiven688/webminerpool ?

from coin-hive-stratum.

galatolofederico avatar galatolofederico commented on July 1, 2024

Hey batmine admin here!
I'm using the same protocol as webminerpool for websocket comunication becouse I was inspired by their work and readjusted it (a lot!) to fit in my system.
@slayerulan off course I've not just copy&pasted it and you can understand it just looking at my service that offer a whole range of features that all the others webmining service does not have.
For example batmine works with cryptonight-heavy and as far as i know nobody except me support this algorithm so you can understand that if i'm capable of porting cryptonight-heavy on webasm doing the same thing for a well documented algorithm as cryptonight v7 is an easy task.
If i could submit a PR to this repo to make it work with cn-v7 i would have done it, but the webasm and the client-side js of this repo is just a clever hacked version of coinhive and nobody except for coinhive's engineers have the C++ sources.
My system is hard coded for batmine and I cannot just put it on github as it is (unless I write a huge documentation on how to configure it and deploy it). In the future when I will close the service I'll rewrite it and create a easy to install and use version to put here

from coin-hive-stratum.

galatolofederico avatar galatolofederico commented on July 1, 2024

Exactly it is not difficult at all, you just need to know how to compile and link stuff properly. With porting I mean that you don't only need the cn hash function but you need to make some adaptors to make it work with js (and in my case I also need a common interface for all the hashing function that I support). I'm sorry if I've not used the proper terms but I just want to be understandable by everyone in this thread.

from coin-hive-stratum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.