News for hackers. Stuff that matters.
Re:Learn Ethereum smart contract programming by staticelf on Monday July 24, 2017 @06:41AM (#14837299)
Sorry for being so uninformed but what happens if there is an error in the logic? Doesn't that mean that it's not possible to update the smart contract?
Re:Learn Ethereum smart contract programming by rst on Monday July 24, 2017 @07:48AM (#14837640)
There have already been multiple incidents involving bugs in "smart contract" code being exploited to steal funds, one within the past few days[1]. A particularly nasty case involved something called "the DAO", which was an attempt to do something like a distributed VC fund, but had a bug which allowed any participant to steal all funds contributed. That one got backed out by a hard fork of the Ethereum blockchain, but that's obviously not a stable or scalable solution to dealing with these types of situations going forward.

[1] https://www.theregister.co.uk/2017/07/20/us30_million_below_...

Re:Learn Ethereum smart contract programming by mbrock on Monday July 24, 2017 @06:54AM (#14837353)
Basically yes, and this is reasonable from a security perspective, otherwise every smart contract would basically have a trusted administrator.

But in many cases you do want some ability to upgrade the code, and then you simply program in that ability by creating a repointable proxy with whatever authorization logic you want.

Re:Learn Ethereum smart contract programming by ym705 on Monday July 24, 2017 @06:46AM (#14837321)
Yes the block chain is by definition immutable. So no means to update the contract the only way if it is a ENORMOUS mistake would be to fork it: read about DAO hack FYI
Re:Learn Ethereum smart contract programming by na85 on Monday July 24, 2017 @07:07AM (#14837423)
>what happens if there is an error in the logic?

If you are a big name in the Ethereum community, they will soft fork Ethereum so that your mistake is rolled back.

Re:Learn Ethereum smart contract programming by Diti on Monday July 24, 2017 @07:46AM (#14837629)
That isn’t true. Nowadays you can’t fork Ethereum like that by fear of losing legitimate transactions.
Re:Learn Ethereum smart contract programming by na85 on Monday July 24, 2017 @06:13PM (#14843217)
>That isn’t true

Precedent seems to indicate otherwise.