Click here to Skip to main content
15,892,809 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Sander Rossel31-Jul-18 1:52
professionalSander Rossel31-Jul-18 1:52 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Fabio Franco1-Aug-18 21:09
professionalFabio Franco1-Aug-18 21:09 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Sander Rossel2-Aug-18 6:56
professionalSander Rossel2-Aug-18 6:56 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Fabio Franco2-Aug-18 20:48
professionalFabio Franco2-Aug-18 20:48 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Daniel Wilianto31-Jul-18 3:19
Daniel Wilianto31-Jul-18 3:19 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Fabio Franco1-Aug-18 21:13
professionalFabio Franco1-Aug-18 21:13 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Daniel Wilianto2-Aug-18 16:26
Daniel Wilianto2-Aug-18 16:26 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Fabio Franco2-Aug-18 21:19
professionalFabio Franco2-Aug-18 21:19 
Daniel Wilianto wrote:
It seems that cryptocurrencies hogs a lot of electricity because of how long their chains are


It actually has to do with the consensus algorithm and the difficulty of a network based on Proof of Work consensus. The Proof of Work consensus was the first to be established on blockchain solutions. Today there are many more, which don't depend on heavy calculations to include a new block in the chain.

In the case of proof of work (Bitcoin, Ethereum ethash), what determines the energy consumption is the current difficulty of the network. In the case of Bitcoin you're right, the difficulty increases with the length of the chain, but it's by the design. Ethereum PoW works slightly different, which is more related to the amount of transactions in a given timeframe + the amount of miners on that given timeframe. The length of the chain plays a role in Ethereum too, but it's not it alone what determines the energy requirements. What happens is, the longest the chain, the harder to break it:
Imagine blocks are like this:

[hash]<-[hash]-<[hash]<-[hash]

For the sake of simplicity let's say the hash of the next block is an increment of the previous:

[1]<-[2]<-[3]<-[4]

Changing the first block implies on having to recalculate the entire chain, because this state is invalid:

[5]<-[2]<-[3]<-[4]

To make it valid and attacker would have to do the first block's calculation, plus all of the following blocks:

[5]<-[6]<-[7]<-[8]

Only that by itself is already computationally infeasible. The attacker not only needs to do that, but also convince the entire network that his chain is correct instead of what they have. That means controlling at least 1 third of the minder nodes of the network. So in the case of ethereum with ethash (PoW) algorithm, which has around 10k simultaneous miners, the attacker would need to control over 3k's worth computing power for a "chance" to convince the network.

So very undersimplifying it, understand that the next block basically takes the previous block hash + a nonce (difficulty) + current pending transactions, to calculate the current's block hash. Which is an implementation of Merkle's tree. The length of the chain has no direct correlation with the next block's difficulty to compute.

I hope to have clarified that for you.

Daniel Wilianto wrote:
I don't see how it can become practical use everywhere.


It's not for everywhere, that's for sure. But there are many applications.

To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson


Our heads are round so our thoughts can change direction - Francis Picabia

GeneralRe: Blockchain: Next tech juggernaut? Pin
jschell30-Jul-18 13:18
jschell30-Jul-18 13:18 
GeneralRe: Blockchain: Next tech juggernaut? Pin
raddevus30-Jul-18 14:55
mvaraddevus30-Jul-18 14:55 
JokeRe: Blockchain: Next tech juggernaut? Pin
Nelek30-Jul-18 22:04
protectorNelek30-Jul-18 22:04 
GeneralRe: Blockchain: Next tech juggernaut? Pin
KBZX500030-Jul-18 23:58
KBZX500030-Jul-18 23:58 
GeneralRe: Blockchain: Next tech juggernaut? Pin
jschell19-Aug-18 6:02
jschell19-Aug-18 6:02 
GeneralRe: Blockchain: Next tech juggernaut? Pin
KBZX500030-Jul-18 23:53
KBZX500030-Jul-18 23:53 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Nathan Minier31-Jul-18 1:25
professionalNathan Minier31-Jul-18 1:25 
GeneralRe: Blockchain: Next tech juggernaut? Pin
KBZX500031-Jul-18 22:57
KBZX500031-Jul-18 22:57 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Nathan Minier1-Aug-18 1:08
professionalNathan Minier1-Aug-18 1:08 
GeneralRe: Blockchain: Next tech juggernaut? Pin
KBZX500010-Aug-18 2:38
KBZX500010-Aug-18 2:38 
GeneralRe: Blockchain: Next tech juggernaut? Pin
raddevus31-Jul-18 2:05
mvaraddevus31-Jul-18 2:05 
GeneralRe: Blockchain: Next tech juggernaut? Pin
KBZX500031-Jul-18 22:33
KBZX500031-Jul-18 22:33 
GeneralRe: Blockchain: Next tech juggernaut? Pin
MKJCP31-Jul-18 3:23
MKJCP31-Jul-18 3:23 
GeneralRe: Blockchain: Next tech juggernaut? Pin
raddevus31-Jul-18 3:30
mvaraddevus31-Jul-18 3:30 
GeneralRe: Blockchain: Next tech juggernaut? Pin
MKJCP31-Jul-18 3:44
MKJCP31-Jul-18 3:44 
GeneralRe: Blockchain: Next tech juggernaut? Pin
raddevus31-Jul-18 3:51
mvaraddevus31-Jul-18 3:51 
GeneralRe: Blockchain: Next tech juggernaut? Pin
Gerry Schmitz31-Jul-18 10:07
mveGerry Schmitz31-Jul-18 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.