7

I have been reading about the LiteCoin, and how it uses a hashing function (scrypt) that is not able to be mined by ASICs. As a side-effect of this, it has been said that people with GPUs will move to Litecoin, as the ASICs take over bitcoin mining. I'm wondering, are there any hashing functions that are resistant to GPUs as well as ASICs? It would be nice to have a crypto-currency based on those, so I could use my CPU to do mining, without having to buy an expensive graphics card to keep up.

7

Let me describe when a hash function can (not) be calculated efficiently by using ASICs or GPUs:

ASICs: I'm speaking of simple in design, cheap ASICs, because in theory you can design an ASIC for every digital function. Simple ASICs are mostly designed for linear workflows. So they do not use loops (or loops with a hardcoded count), no recursion and a very limited memory requirements and local memory access (payload size is known). So the designer has to know the exact digital formulas. Imagine them as a calculator for mathematics terms (no jumps, every input/output as variable).

GPUs: They are good when it comes to small functions which are executed very often and having medium memory usage. Recursion doesn't work very well and complex, non-parallelized functions aren't handled in an efficient way.

So if you want to design a hash function that doesn't work well on either of them, use a complex function with high random memory access. Also make sure that the hash function does not contain parallel small parts (good for GPUs). Use data dependencies to ensure this. Please consider that it is always possible to build better more expensive ASICs for every function. So it's about cheap ASIC development VS complexity of the hash function.

Explanation of some used therms:

  • Complexity: doesn't mean theoretical complexity Here it's about the length of the description, the number of function calls / jumps and dynamic behavior (non hardcoded loop counts / memory requirements)
  • Recursion: a function calls itself one or multiple times, so a stack structure is required.
  • Data dependency: To calculate the next subresult (e.g. when using loops), you need the previous subresult (e.g. from the last loop body execution).
2

It would be a bad idea. Two huge problems kill this idea:

  1. So long as it is very profitable to mine the currency, people will set up optimized operations to mine the currency. This will increase until it is no longer very profitable to mine the currency. Your general-purpose hardware isn't optimized for anything -- it's virtually impossible to find a task that a committed miner couldn't find better hardware for, lower electricity prices, or some other competitive edge. Without a competitive edge, you'd be mining at a loss.

  2. Such a currency would be insecure. Anyone who wanted to attack the currency could rent CPU power, retask a botnet, or the like. In contrast, ASICs require a significant investment in the currency and can't be used for anything else, making attacks much more difficult and expensive.

  • 3
    But wouldn't CPU-only mining lead to many more miners due to the more widely available entry-level, thus deterring centralization & increasing security instead? – Griffin Jul 13 '13 at 5:47
  • 1
    It would lead to many more miners, but that wouldn't have any significant affect because those miners would each be adding so very little hashing power. It would still be dominated by the guys who put specialized hardware (maximum CPU power for minimum cost) wherever the power is cheapest. The downside of being able to attack the currency with a botnet or rented clusters would completely outweigh that miniscule benefit. – David Schwartz Jul 13 '13 at 20:00
0

Greed will always make it so that Determined individuals will do whatever they can to milk this situation - you will never be able to create a currency that "pads against those who desire to profit"

Even if BTC dies in flames and we all have asics Hardware - there will be an active market of users who adopt a different sha-256 standard. The reason so many scrypt alt coins exist is because FUD - Greedy Devs think that users like you "want CPU" viable coin and will go through the efforts of Copy/Pasting to create a "new" alt-chain type of coin.

As we now see, there are over 50 varieties of Alt-Coin...how come the vast majority of alts are all Scrypt?

  • How come the vast majority of alts are all Scrypt? - I think that's because it's easy to clone the source code of alt coin, and Scrypt is more attractive now that Asics are mining the sha-256 bitcoins. – kristianp Jul 17 '13 at 9:47
0

Or perhaps scrypt is closer to Satoshi's vision of truly decentralised crypto currency whose whole validation and monetary reward is headed towards a situation identical to the current banking system whereby the haves are in control whilst the havenots ate powerless. Whilst ASICs are starting to obey Moore's Law it's a far cry from being decentralised when you consider btc pools like BTC GUILD account for 47% of mining power (as if that figure isn't over 51%!)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.