From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id BA0DBC0012 for ; Wed, 8 Dec 2021 01:12:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A2F4283F93 for ; Wed, 8 Dec 2021 01:12:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -4.199 X-Spam-Level: X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CfuvmfPSs9LH for ; Wed, 8 Dec 2021 01:12:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by smtp1.osuosl.org (Postfix) with ESMTPS id 312B483F90 for ; Wed, 8 Dec 2021 01:12:09 +0000 (UTC) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (authenticated bits=0) (User authenticated as jlrubin@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1B81C7vg012592 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 7 Dec 2021 20:12:08 -0500 Received: by mail-lj1-f178.google.com with SMTP id k2so1316390lji.4 for ; Tue, 07 Dec 2021 17:12:08 -0800 (PST) X-Gm-Message-State: AOAM531xKqo9/pacaurTeIUlo5uFCom9C8FH/i/hzAkJCX3VaZ7gRFRT kDZRD7ONqAQvnP/CDAkuVWpBtkZR4cokP+ohE2c= X-Google-Smtp-Source: ABdhPJxnPISJudU3qDnkB1I2Mx0XwqULRelJQaCvfayjBWW0+aYksE5HALO5IgqY0QVvlWtUXa5lws+6BIEbC1268Uo= X-Received: by 2002:a05:651c:1696:: with SMTP id bd22mr45679841ljb.57.1638925926652; Tue, 07 Dec 2021 17:12:06 -0800 (PST) MIME-Version: 1.0 References: <4RdeDclGQpoDin2VLO5Ngmoghw03BZ_tvdO0vaIp_fNWWlKL9tHeIz1iQMpHxAww2pzjI4NXYtNFuND5Qkj7AmvLUajSp4AKxNg70VWr3Rw=@protonmail.com> In-Reply-To: <4RdeDclGQpoDin2VLO5Ngmoghw03BZ_tvdO0vaIp_fNWWlKL9tHeIz1iQMpHxAww2pzjI4NXYtNFuND5Qkj7AmvLUajSp4AKxNg70VWr3Rw=@protonmail.com> From: Jeremy Date: Tue, 7 Dec 2021 17:11:55 -0800 X-Gmail-Original-Message-ID: Message-ID: To: ZmnSCPxj Content-Type: multipart/alternative; boundary="000000000000abe20905d2982d71" Cc: Bitcoin Protocol Discussion Subject: Re: [bitcoin-dev] [Bitcoin Advent Calendar] What's Smart about Smart Contracts X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2021 01:12:11 -0000 --000000000000abe20905d2982d71 Content-Type: text/plain; charset="UTF-8" -- @JeremyRubin Hi! On Tue, Dec 7, 2021 at 4:33 PM ZmnSCPxj wrote: > Good morning Jeremy, > > > > > Here's the day 6 post: https://rubin.io/bitcoin/2021/12/03/advent-6/, > the topic is why smart contracts (in extended form) may be a critical > precursor to securing Bitcoin's future rather than something we should do > after making the base layer more robust. > > > *This* particular post seems to contain more polemic than actual content. > This is the first post I read of the series, so maybe it is just a > "breather" post between content posts? > The series in general is intended to be a bit more on the approachable side than hardcore detail. > > In any case, given the subject line, it seems a waste not to discuss the > actual "smart" in "smart" contract... > > Yeah maybe a better title would be "The Case for Enhanced Functionality in Bitcoin" -- it's not really about smart contracts per se, but the thing that people are calling smart contracts in the broader community. This gets down to prescriptive v.s. descriptive lingo and it's not really a debate I care much for :) > ## Why would a "Smart" contract be "Smart"? > > A "smart" contract is simply one that somehow self-enforces rather than > requires a third party to enforce it. > It is "smart" because its execution is done automatically. > There are no automatic executing smart contracts on any platform I'm aware of. Bitcoin requires TX submission, same with Eth. Enforcement and execution are different subjects. > Consider the humble HTLC. > ** > This is why the reticence of Bitcoin node operators to change the > programming model is a welcome feature of the network. > Any change to the programming model risks the introduction of bugs to the > underlying virtual machine that the Bitcoin network presents to contract > makers. > And without that strong reticence, we risk utterly demolishing the basis > of the "smart"ness of "smart" contracts --- if a "smart" contract cannot > reliably be executed, it cannot self-enforce, and if it cannot > self-enforce, it is no longer particularly "smart". > I don't think that anywhere in the post I advocated for playing fast and loose with the rules to introduce any sort of unreliability. What I'm saying is more akin to we can actually improve the "hardware" that Bitcoin runs on to the extent that it actually does give us better ability to adjudicate the transfers of value, and we should absolutely and aggressively pursue that rather than keeping Bitcoin running on a set mechanisms that are insufficient to reach the scale, privacy, self custody, and decentralization goals we have. > ## The N-of-N Rule > > What is a "contract", anyway? > > A "contract" is an agreement between two or more parties. > You do not make a contract to yourself, since (we assume) you are > completely a single unit (in practice, humans are internally divided into > smaller compute modules with slightly different incentives (note: I did not > get this information by *personally* dissecting the brains of any humans), > hence the "we assume"). > Thus, a contract must by necessity require N participants This is getting too pedantic about contracts. If you want to go there, you're also missing "consideration". Smart Contracts are really just programs. And you absolutely can enter smart contracts with yourself solely, for example, Vaults (as covered in day 10) are an example where you form a contract where you are intended to be the only party. You could make the claim that a vault is just an open contract between you and some future would be hacker, but the intent is that the contract is there to just safeguard you and those terms should mostly never execute. + you usually want to define contract participants as not universally quantified... > > This is of interest since in a reliability perspective, we often accept > k-of-n. > > But with an N-of-N, *you* are a participant and your input is necessary > for the execution of the smart contract, thus you can be *personally* > assured that the smart contract *will* be executed faithfully. > > Yes I agree that N-N or K-N have uses -- Sapio is designed to work with arbitrary thresholds in lieu of CTV/other covenant proposals which can be used to emulate arbitrary business logic :) However, the benefit of the contracts without that is non-interactivity of sending. Having everyone online is a major obstacle for things like decentralized coordination free mining pools (kinda, the whole coordination free part). So if you just say "always do N-of-N" you basically lose the entire thread of"smart contract capabilities improving the four pillars (covered in earlier posts) which solidifies bitcoin's adjudication of transfers of value. --000000000000abe20905d2982d71 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi!

On Tue, Dec 7, 2021 at 4:33 PM ZmnSCPxj <ZmnSCPxj@protonmail.com> wrote:<= br>
Good morning Jeremy,

>
> Here's the day 6 post: https://rubin.io/bitcoi= n/2021/12/03/advent-6/, the topic is why smart contracts (in extended f= orm) may be a critical precursor to securing Bitcoin's future rather th= an something we should do after making the base layer more robust.


*This* particular post seems to contain more polemic than actual content. This is the first post I read of the series, so maybe it is just a "br= eather" post between content posts?

The series in general is intended to be a bit more on the = approachable side than hardcore detail.

=C2=A0

In any case, given the subject line, it seems a waste not to discuss the ac= tual "smart" in "smart" contract...


Ye= ah maybe a better title would be "The Case for Enhanced Functionality = in Bitcoin" -- it's not really about smart contracts per se, but t= he thing that people are calling smart contracts in the broader community. = This gets down to prescriptive v.s. descriptive lingo and it's not real= ly a debate I care much for :)


=C2=A0
## Why would a "Smart" contract be "Smart"?

A "smart" contract is simply one that somehow self-enforces rathe= r than requires a third party to enforce it.
It is "smart" because its execution is done automatically.

There are no a= utomatic executing smart contracts on any platform I'm aware of. Bitcoi= n requires TX submission, same with Eth.

Enforcement and execut= ion are different subjects.


Consider the humble HTLC.
<snip>
This is why the reticence of Bitcoin node operators to change the programmi= ng model is a welcome feature of the network.
Any change to the programming model risks the introduction of bugs to the u= nderlying virtual machine that the Bitcoin network presents to contract mak= ers.
And without that strong reticence, we risk utterly demolishing the basis of= the "smart"ness of "smart" contracts --- if a "sm= art" contract cannot reliably be executed, it cannot self-enforce, and= if it cannot self-enforce, it is no longer particularly "smart".=

I = don't think that anywhere in the post I advocated for playing fast and = loose with the rules to introduce any sort of unreliability.

Wh= at I'm saying is more akin to we can actually improve the "hardwar= e" that Bitcoin runs on to the extent that it actually does give us be= tter ability to adjudicate the transfers of value, and we should absolutely= and aggressively pursue that rather than keeping Bitcoin running on a set = mechanisms that are insufficient to reach the scale, privacy, self custody,= and decentralization goals we have.

=C2=A0
## The N-of-N Rule

What is a "contract", anyway?

A "contract" is an agreement between two or more parties.
You do not make a contract to yourself, since (we assume) you are completel= y a single unit (in practice, humans are internally divided into smaller co= mpute modules with slightly different incentives (note: I did not get this = information by *personally* dissecting the brains of any humans), hence the= "we assume").
=C2=A0
Thus= , a contract must by necessity require N participants

=
This is getting too pedantic= about contracts. If you want to go there, you're also missing "co= nsideration".

Smart Contracts are really just programs. An= d you absolutely can enter smart contracts with yourself solely, for exampl= e, Vaults (as covered in day 10) are an example where you form a contract w= here you are intended to be the only party.

You could make the = claim that a vault is just an open contract between you and some future wou= ld be hacker, but the intent is that the contract is there to just safeguar= d you and those terms should mostly never execute.=C2=A0+ you usually want = to define contract participants as not universally quantified...

This is of interest since in a reliability perspective, we often accept k-o= f-n.
<snip>
But with an N-of-N, *you* are a participant and your input is necessary for= the execution of the smart contract, thus you can be *personally* assured = that the smart contract *will* be executed faithfully.

=

Yes I agree that N-N or = K-N have uses -- Sapio is designed to work with arbitrary thresholds in lie= u of CTV/other covenant proposals which can be used to emulate arbitrary bu= siness logic :)


H= owever, the benefit of the contracts without that is non-interactivity of s= ending. Having everyone online is a major obstacle for things like decentra= lized coordination free mining pools (kinda, the whole coordination free pa= rt). So if you just say "always do N-of-N" you basically lose the= entire thread of"smart contract capabilities improving the four pilla= rs (covered in earlier posts) which solidifies bitcoin's adjudication o= f transfers of value.
--000000000000abe20905d2982d71--