[ a / b / art / cy / lain / alt / o ] [ wired / meta ] [ home / information / affiliates / updates ] [ mebious ]

/cy/ - Cyberpunk

Cyberpunk & Technology
Password (For file deletion.)

File: 1638384016303.png (6.94 KB, 1280x1280, external-content.duckduckg….png)


I am wondering how I could build a Moreno Crypto miner in C++ but don't no where to start.

I want to build something like xmrig.com and would like it to connect to minexmr.com using port 4444 and 4443.

I have looked for sample code but couldn't find any that meet my criteria.

Also I would like this to be less the 100 lines of code if it isn't unreasonable.

My biggest question where I get the hashes to decrypt.


Can't tell if you're serious or just another botnet miner trying to get us to do your work for you.
>probably doesn't know programming in C++ because it's not feasible in 100 lines
>needs it to be a certain size limit almost like its a payload
If you're serious about this, go onto github and look at some projects. Read some documentation. No one's going to do this for you


You're missing some significant knowledge here. I'm going to assume you're a kid and not a retarded 36 year old pajeet so I'll cut you some slack.

-Get a textbook which has you write small programs that require understanding of computer science algorithms. SICP is a classic but it's in LISP. Not sure why you want C++ since it doesn't appear you're very familiar with it. Unless you understand these concepts you don't have much of a chance of building something comparable to xmrig. This knowledge will remain valuable no matter what language you use.
-Once you understand the basic programming concepts, go to https://www.getmonero.org/resources/developer-guides/ and get an understanding of how the mining actually works.

If you just want to make some monero, you don't need to build a miner, just use off the shelf ones. However, it's not always most profitable to mine monero directly (especially if you're using a GPU or something). Check out moneroocean.stream, it's a multi coin mining pool that pays only in monero. They have guides on how to set it up, keep trying until you get it.


I'd recommend just following >>1932 but if you are serious, and want to get into building an actual Monero miner. I'd recommend you start by understanding RandomX first

And then probably shift through the source code of xmrig. And you probably better start learning some assembly as well if you want to have some actual performance. Plus just as an extra you will have to interact with the monero daemon through RPC to get the block template/current difficulty/publish the mined block etc.

If you just want to code something with Monero, I'd either recommend helping with existing projects (especially payment gateways and off/onramps, and DEXes), writing some wallet implementation. If you wanna get more advanced, add support for normally unsupported/officially unsupported features, like tx_extra, manual ring member editing, UTXO management/coin control, polyseed, i2p node support, remote node rotation, multisig, TxTangle, weird proofs like UnspentProof/ReserveProof/SubaddressProof.
For the last ones and in general for the cryptographic aspects of Monero. I highly recommend you read Zero to Monero v2



[Return][Go to top] [Catalog] [Post a Reply]
Delete Post [ ]
[ a / b / art / cy / lain / alt / o ] [ wired / meta ] [ home / information / affiliates / updates ] [ mebious ]