Re:Ethereum is a next-generation cryptocurrency platform
by oleganza on Friday January 24, 2014 @10:22AM
(#7115256)
It seems there's a nice economical limit on script execution. If the contract during its executing consumes more resources (ops + memory) than fees attached to it, the it's simply considered invalid. That computation is done after the money is locked and the fee is attached, so if you do while(1){}, you are basically donating to a miner.
I haven't finished reading everything yet, so I maybe totally incorrect. But I doubt Vitalik didn't consider these issues.
Re:Ethereum is a next-generation cryptocurrency platform
by JulianMorrison on Friday January 24, 2014 @10:30AM
(#7115306)
I am less worried about while(1){} and more about viruses (either in-system or breaking out of it via exploits) roaming the blockchain semi-autonomously stealing or spying.
Re:Ethereum is a next-generation cryptocurrency platform
by oleganza on Friday January 24, 2014 @11:05AM
(#7115541)
Ether scripts are not operating in unrestricted environment. They are turing-complete, but their environment and available memory are very restricted. A bug in the implementation may lead to denial-of-service attacks (just like similar bugs in Bitcoin), but it does not mean there will be ether viruses spreading through the network. At worst, it could be a global DoS issue that can be quickly fixed and the entire history reversed right before the problematic transaction.
Re:Ethereum is a next-generation cryptocurrency platform
by JulianMorrison on Friday January 24, 2014 @11:16AM
(#7115611)
I do not share your optimism. The worst case is autonomous viruses that steal to sustain their transaction fees and escape their jails to wreak havoc via buffer overruns or other similar exploits.
Re:Ethereum is a next-generation cryptocurrency platform
by oleganza on Friday January 24, 2014 @11:42AM
(#7115789)
Those viruses would have to exploit some bug in implementation, right? Once the bug is found, all bad blocks will be thrown away. All valid transactions will be included in new blocks.
I don't think script complexity would be the biggest obstacle to adoption, but other factors. For one, advanced script upgrades to Bitcoin that preserve existing BTC distribution of wealth would be more welcome than something from scratch. It'd be safer alternative in the eyes of the bitcoin holders, who would not need to diversify into altcoin.
Re:Ethereum is a next-generation cryptocurrency platform
by nly on Friday January 24, 2014 @10:38AM
(#7115373)
Agreed. Bitcoin already has a built in transaction scripting language that is deliberately not Turing complete. Most of the issues actually stem in terms from timing and synchronizing with external variables...not the limitations of the scripting language. For example, for a while it was believed you could make cross-chain contracts secure (without a trusted third party) but, afaik, nobody managed to work out the subtle race conditions.
Re:Ethereum is a next-generation cryptocurrency platform
by nullc on Friday January 24, 2014 @12:08PM
(#7115973)
See the protocol diagram here: https://bitcointalk.org/index.php?topic=321228 (alice and bob can be played by the same party for a cross chain transaction). There are some additional timing considerations for reorg safety when multiple chains are involved, but simply delaying all chain operations by enough blocks to make a reorg infeasible should be sufficient.
[1] https://www.usenix.org/system/files/login/articles/105516-Br...