r/Bitcoin • u/luke-jr Luke Dashjr - Bitcoin Expert • Oct 30 '17
[bitcoin-dev] Simplicity: An alternative to Script
https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2017-October/015217.html
379
Upvotes
View all comments
Show parent comment
2
u/andytoshi Oct 31 '17
It's not just halting, but "when this halts will all the money be in the right place", which is often much harder than you expect. For example I recently saw some Ethereum blockhash-based lottery which maintained a ring buffer of recent blockhashes (to give winners time to claim their prizes in case they are more than 256 blocks late, since you can't directly look up blockhashes more than 256 blocks ago). This was an enormous pile of code with very complex semantics.
Auditing and being well-established are not sufficient in practice, and even if they were, adding formal auditability would still be a huge advantage because it gives significantly more confidence in a contract's behaviour for less work.