Return-Path: Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id CC9C9C001A for ; Sun, 27 Feb 2022 07:25:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B5A0D82A53 for ; Sun, 27 Feb 2022 07:25:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -0.101 X-Spam-Level: X-Spam-Status: No, score=-0.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_FMBLA_NEWDOM=1.498, FROM_LOCAL_NOVOWEL=0.5, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=protonmail.com 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 kodRH2Ef4M9C for ; Sun, 27 Feb 2022 07:25:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail-4027.protonmail.ch (mail-4027.protonmail.ch [185.70.40.27]) by smtp1.osuosl.org (Postfix) with ESMTPS id C24388297F for ; Sun, 27 Feb 2022 07:25:39 +0000 (UTC) Date: Sun, 27 Feb 2022 07:25:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1645946736; bh=94GeTEqWIRJ6FA80XH7cOSt8V+r11rpxXoak0YDJu94=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=kF5Bfjv2e5UDU7r5LXF/kQTvWUgwa7qONE5AHl149QM60FmsbFDIr1iW1sARMOfW/ ClOp5VYEkNgjwl32mr8aCOvD1Fm6ud6F7GSDXkdHxkLfMC5Sn0YfoEmHTq4gz1hs0X yiBRF5dPy8Vjug4b0MWjRRXoqWAxYOTO3TmzuXkWhBYLdbt8Sc5rtR0vQfRQMNxCy0 0jA9jgCOEKS2rEbv5CEk/vgLF4+YCeKY8wI+rgnzE0QKw1ZaJBWjRvhjnqo7Fs3KEr n36J3OpvLzaAfGAEsF8t1xp1KRCrjm5L1/bdlrLilOqzl1i1zfe193CTnXW7HBNnXP eEUjeZjuFuing== To: ZmnSCPxj , Bitcoin Protocol Discussion From: ZmnSCPxj Reply-To: ZmnSCPxj Message-ID: In-Reply-To: References: <0100017ee6472e02-037d355d-4c16-43b0-81d2-4a82b580ba99-000000@email.amazonses.com> <20220224065305.GB1965@erisian.com.au> <0a6d4fea-2451-d4e7-8001-dd75a2e140ae@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [bitcoin-dev] Recursive covenant opposition, or the absence thereof, was Re: TXHASH + CHECKSIGFROMSTACKVERIFY in lieu of CTV and ANYPREVOUT 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: Sun, 27 Feb 2022 07:25:40 -0000 Good morning again Paul, > With sidechains, changing the ownership set requires that the sidechain p= roduce a block. > That block requires a 32-byte commitment in the coinbase. > What is more, if any transfers occur on the sidechain, they cannot be rea= l without a sidechain block, that has to be committed on the mainchain. The above holds if the mainchain miners also act as sidechain validators. If they are somehow separate (i.e. blind merge mining), then the `OP_BRIBE`= transaction needed is also another transaction. Assuming the sidechain validator is using Taproot as well, it needs the 32+= 1 txin, a 64-byte signature, a 32-byte copy of the sidechain commitment tha= t the miner is being bribed to put in the coinbase, and a txout for any cha= nge the sidechain validator has. This is somewhat worse than the case for channel factories, even if you ass= ume that every block, at least one channel factory has to do an onboarding = event. > Thus, while changing the membership set of a channel factory is more expe= nsive (it requires a pointer to the previous txout, a 64-byte Taproot signa= ture, and a new Taproot address), continuous operation does not publish any= data at all. > While in sidehchains, continuous operation and ordinary payments requires= ideally one commitment of 32 bytes per mainchain block. > Continuous operation of the sidechain then implies a constant stream of 3= 2-byte commitments, whereas continuous operation of a channel factory, in t= he absence of membership set changes, has 0 bytes per block being published= . > > We assume that onboarding new members is much rarer than existing members= actually paying each other in an actual economy (after the first burst of = onboarding, new members will only arise in proportion to the birth rate, bu= t typical economic transactions occur much more often), so optimizing for t= he continuous operation seems a better tradeoff. Perhaps more illustratively, with channel factories, different layers have = different actions they can do, and the only one that needs to be broadcast = widely are actions on the onchain layer: * Onchain: onboarding / deboarding * Channel Factory: channel topology change * Channel: payments This is in contrast with merge-mined Sidechains, where *all* activity requi= res a commitment on the mainchain: * Onchain: onboarding / deboarding, payments While it is true that all onboarding, deboarding, and payments are summariz= ed in a single commitment, notice how in LN-with-channel-factories, all onb= oarding / deboarding is *also* summarized, but payments *have no onchain im= pact*, at all. Without channel factories, LN is only: * Onchain: onboarding / deboarding, channel topology change * Channel: payments So even without channel factories there is already a win, although again, d= ue to the large numbers of channels we need, a channel factory in practice = will be needed to get significantly better scaling. Finally, in practice with Drivechains, starting a new sidechain requires im= plicit permission from the miners. With LN, new channels and channel factories do not require any permission, = as they are indistinguishable from ordinary transactions. (the gossip system does leak that a particular UTXO is a particular publish= ed channel, but gossip triggers after deep confirmation, at which point it = would be too late for miners to censor the channel opening. The miners can censor channel closure for published channels, admittedly, b= ut at least you can *start* a new channel without being censored, which you= cannot do with Drivechain sidechains.) Regards, ZmnSCPxj