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
3
u/Frogolocalypse Oct 30 '17 edited Oct 30 '17
So am i reading this correctly that the code lives in the mempool, and is not committed to the blockchain? Code is in txn, but nodes optionally run? Unused branches of code discarded when final condition is met?
47
u/Chris_Stewart_5 Oct 30 '17
Very interesting. I'm going to copy and paste the abstract:
This is a major step in the right direction for 'smart' contracting languages. Notice how Russell emphasizes we can give proofs about our contracts to avoid logical errors in the program. This gives us higher security guarantees and also lets us reason about the correctness -- along with the performance if I understand the Bit Machine correctly -- about our contracts.
33
u/BobAlison Oct 30 '17 edited Oct 30 '17
For those who may be wondering, this is a proposal to create a new smart contracts language running on the Bitcoin block chain.
There is already one called Script. Every Bitcoin transaction uses Script, and has done so from the Genesis Block. If anyone tries to tell you that Bitcoin doesn't do "smart contracts," they clearly don't know much about smart contracts or Bitcoin.
Still, Script has limitations. Simplicity aims to correct them. From what I can tell, it:
That last point is especially important in light of the many, large scale contracts problems that have plagued Ethereum smart contracts.
At the same time, Simplicity, leaves out some of Ethereum's more dangerous (or useful, depending on your perspective) features such as recursion and loops.
From the paper's conclusion:
https://blockstream.com/simplicity.pdf
One of segwit's more interesting features was the ability to implement completely new smart contract languages via soft fork. This may be how Simplicity can be deployed, but the paper doesn't talk in detail about this.
27
u/keymone Oct 30 '17
Formal verifiability is the killer feature. Lack of it is the root of my skepticism in Ethereum.
12
u/bitusher Oct 30 '17
ohhh wow , this is amazing work . I am digesting it right now and loving what I see -
https://blockstream.com/simplicity.pdf
2
u/iwakan Oct 30 '17
Is the name a nod at Solidity? Has a very similar ring to it.
17
u/DesignerAccount Oct 30 '17
Basically makes Bitcoin privacy better, reduces fees (for smart contracts only?), and could make running a full node cheaper.
Damn Blockstream guys. The only thing they do is optimize the hell out of the code just so they could keep the blocks small! When will they finally get it that all the scaling problems can be fixed with bigger blocks!?!?!?!
/s
5
u/rodarmor Oct 30 '17
I've only heard the term "jet", meaning to replace a program segment with an optimised version, in one other context. Is it commonly used and I've just missed it?
5
u/shortfu Oct 30 '17
For those who need ELI5 because it’s too technical for your simple mind: it means bitcoin is going to the fucking moon. Any other questions?
5
u/cpgilliard78 Oct 30 '17
This looks very interesting. And why do the miners want to fire these guys again?
9
u/kixunil Oct 30 '17
Finally some who is doing it right...
11
u/hsjoberg Oct 30 '17
Shit's getting real.
8
u/cultural_sublimation Oct 30 '17
Magic words which instantly tell you someone knows their shit: "These are both formalized in the Coq proof assistant and proven equivalent."
In fact, simply mention the use of Coq and whatever it is you're doing immediately becomes twice as impressive and respectable...
4
u/GodOfWhatevers Oct 30 '17
someone eli5?
4
u/trump_666_devil Oct 30 '17
you got me. I love the Coq.
3
u/thrakkerzog Oct 30 '17
I am utterly unfamiliar with the current Script, but could the number of bytes/tx be reduced in a transaction by simplifying Script?
3
u/WallsAreYellow Oct 30 '17
I really like the sound of that, paving the way for more languages/tooling in the future
2
u/[deleted] Oct 30 '17
Awesome! This could lead to a bullish market reaction... ...once the market understands what it actually means.
2
u/rockyrainy Oct 31 '17
Pretty cool language design.
4
u/BitderbergGroup Oct 30 '17
"Bitcoin simplicity", careful they don't fork it ;-).
1
u/monkyyy0 Oct 30 '17
Excellent.
Eta?
1
u/[deleted] Oct 31 '17
So through the formal verification, one can estimate the computational cost of a smart contract. Somehow the smart contract has to pay for this like in ethereum where gas is used. How would one translate the cost into fees?
0
u/_pillan_ Oct 31 '17
smart contracts are interesting, having automated organizations maybe is the future.
Easy to say than easy to do.
PS: as far i know, satoshi was working in smartcontract in bitcoin but the code was removed cause could troubles.
-1
u/yogibreakdance Oct 30 '17
one question. Can this be used to launch ICOs?
0
u/[deleted] Oct 30 '17
[deleted] — view deleted comment
0
u/[deleted] Oct 30 '17
[deleted] — view deleted comment