Return-Path: Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2EEAAC002D for ; Mon, 25 Apr 2022 10:01:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 16A0D408CF for ; Mon, 25 Apr 2022 10:01:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -1.601 X-Spam-Level: X-Spam-Status: No, score=-1.601 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_LOCAL_NOVOWEL=0.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=protonmail.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tFhIuj_Wdmws for ; Mon, 25 Apr 2022 10:01:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by smtp4.osuosl.org (Postfix) with ESMTPS id 4CC85408C9 for ; Mon, 25 Apr 2022 10:01:39 +0000 (UTC) Date: Mon, 25 Apr 2022 10:01:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1650880896; bh=NspuECIZsrLryH1e2zygxsb3c55jliU7AUjz7Rw8idU=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=WA3WRAOnxvelEu2KIMcTloFRKTwU0vBw1F6yMaFRfSwLqO1a02VFeAiFmugWQVjbT ZkwLCIpt3bpkFaNhSvantbbLopDHWqg0NTxZ1PgVFwWt5L5qqBcAROlFDG1g3sBM8e DX2tdQaq12qqI4xGiWF/dYPadPewsV8jZhN5KCqQK6FXC39907hEg2JO+Oh3v9v+sj J5f0YEnCX/+2yTxrWEhbjCr4LmPgsmfQBdLK41Cs24K8QJfk+aXb9djQ9aA8Jwuioq ReJfdElTYwuOsJgnj94GvUp06HhIhzFQcoI4LWpe28K2E5DotS7scqlBgdnmnJ89Rd hcf1sTWsSgs9w== To: Zac Greenwood From: ZmnSCPxj Reply-To: ZmnSCPxj Message-ID: In-Reply-To: References: Feedback-ID: 2872618:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Bitcoin Protocol Discussion Subject: Re: [bitcoin-dev] User Resisted Soft Fork for CTV 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: Mon, 25 Apr 2022 10:01:41 -0000 Good morning Zac, > On Mon, 25 Apr 2022 at 07:36, ZmnSCPxj wrote > > > CTV *can* benefit layer 2 users, which is why I switched from vaguely a= pathetic to CTV, to vaguely supportive of it. > > > Other proposals exist that also benefit L2 solutions. What makes you supp= ort CTV specifically? It is simple to implement, and a pure `OP_CTV` SCRIPT on a P2WSH / P2SH is = only 32 bytes + change on the output and 32 bytes + change on the input/wit= ness, compared to signature-based schemes which require at least 32 bytes += change on the output and 64 bytes + change on the witness ***IF*** they us= e the Taproot format (and since we currently gate the Taproot format behind= actual Taproot usages, any special SCRIPT that uses Taproot-format signatu= res would need at least the 33-byte internal pubkey revelation; if we settl= e with the old signature format, then that is 73 bytes for the signature). To my knowledge as well, hashes (like `OP_CTV` uses) are CPU-cheaper (and m= emory-cheaper?) than even highly-optimized `libsecp256k1` signature validat= ion, and (to my knowledge) you cannot use batch validation for SCRIPT-based= signature checks. It definitely does not enable recursive covenants, which I think deserve mo= re general research and thinking before we enable recursive covenants. Conceptually, I see `OP_CTV` as the "AND" to the "OR" of MAST. In both cases, you have a hash-based tree, but in `OP_CTV` you want *all* t= hese pre-agreed cases, while in MAST you want *one* of these pre-agreed cas= es. Which is not to say that other proposals do not benefit L2 solutions *more*= (`SIGHASH_ANYPREVOUT` when please?), but other proposals are signature-bas= ed and would be larger in this niche. Regards, ZmnSCPxj