Better HN
topnewbestaskshowjobs
Log inSign up

zweice

7 karma · joined Nov 20, 2017 (9y ago) · 5 submissions

Submissions

comment 3y ago · link · parent

Practice in the morning

comment 3y ago · link · parent

Interesting thought. Not a different species, but think (highly intelligent) sociopaths...

comment 5y ago · link · parent

Is that faster than (or comparable to) raising an Error in the inner loop and catching it outside the outer loop?

comment 8y ago · link · parent

I think he refers to https://basicattentiontoken.org

comment 9y ago · link · parent

If code reviewer doesn't report a bug before the contract is deployed he then can become the 'bug finder' taking all ether from the bounty + his own.

Even if the code reviewer is honest there are some economical problems: - Code reviewer will find a balance between time spent, amount to put into the time dependent 'bounty' and probability of a bug that didn't come up during review --> little-at-stake problem - If you force the code reviewer to put in a significant amount of ETH into the time dependent bounty you won't find any reviewers willing to work for you because of the huge risk for them --> risk problem

How would that have worked with the the Parity 'hack'? - Parity deploying their multisig contracts, having a bounty with code reviewers. AFAIK it wasn't even a bug but a not-well-deployed contract library. So the reviewers would have said that Parity should go on and deploy their multisig contract. Parity would have deployed it in a wrong way (as they did). The 'hack'/accident would still have happened.

If your time dependent contract was separate from Parity's multisig the reviewer would still get his ETH back after the time lock releases. Alternatively the reviewer's funds would also be frozen.

Hopefully formal proof of contracts will save us sometime. Alternatively blockchain with some governance scheme that takes care of something like that would also be useful. Wait a second... Am I describing Tezos? Let's wait for them to launch and see if that works better.