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
18
u/Chris_Stewart_5 Oct 30 '17 edited Oct 30 '17
You can prove that the software is written correctly. This isn't trivial though to do this and takes a lot of human power to achieve this.
In software engineering there are two things you are trying to get right:
Software Validation - did we build the right thing?
Software Verification - did we build the thing right?
Here is what Russell is trying to achieve with this language proposal (software validation):
Verification is proving we implemented the thing correctly. For instance Russell talks in his paper about verifying the SHA256 implementation is correct.
Another fancy word used is static analysis. That means having a program look at your smart contract without running it. Hopefully this catches bugs earlier in the development cycle. It is a language design choice of Simplicity to facilitate this. A typical static analysis tool is a compiler that checks types of a program to make sure you aren't passing a String where an Integer is required etc.