Return-Path: Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id F28B9C0037 for ; Tue, 9 May 2023 00:05:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 97BD141E69 for ; Tue, 9 May 2023 00:05:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 97BD141E69 Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=VKPllJb5 X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -2.603 X-Spam-Level: X-Spam-Status: No, score=-2.603 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no 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 bFeRy8wM3f6Q for ; Tue, 9 May 2023 00:05:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6DFA441E7D Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by smtp4.osuosl.org (Postfix) with ESMTPS id 6DFA441E7D for ; Tue, 9 May 2023 00:05:51 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 42C9332009A7; Mon, 8 May 2023 19:56:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 08 May 2023 19:56:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1683590160; x=1683676560; bh=pXeizfQX67lkz UsTroxTqr7T32thi8UrYCbsR9Gm0lQ=; b=VKPllJb551h0WYQoMakUXLGMxIxsa iahXqXgUXZ6IiQIUpUBqp5KAiPFkPPQGkpgwnfXWBgo8KsbsK/W6QiD926FVz5/m pozNqFYhkrKod10SOzcD3wqTtbDgtHJVh2Sba+LyQ/atBhED66cDVodRlRCQ+gYz Um4mbdRiYRrsDV3cExnKGhprEt4MK4rXoJiXfAvw5jIBstFTpu0zKc6KdvPamsI0 /MdWjNMWBUN/yhYeTt6Hw6yyYEcmj2toLmdo88oNCCrM3km7gohLSI68rbglsuse fcNPQK28eqCMmWas0FvjP/yicluF4k1tQ3Epi8TKXjjB686frNZ2uMGnA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeefledgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtvdenucfhrhhomheprfgvthgvrhcuvfhougguuceophgvthgvsehpvghtvghrthho uggurdhorhhgqeenucggtffrrghtthgvrhhnpeeivddvleeikeejueekgfdtleefgeehhe elffeuheetgefhleevjeefleegvefffeenucffohhmrghinhepphgvthgvrhhtohguugdr ohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpvghtvgesphgvthgvrhhtohguugdrohhrgh X-ME-Proxy: Feedback-ID: i525146e8:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 May 2023 19:56:00 -0400 (EDT) Received: by localhost (Postfix, from userid 1000) id 141665F844; Mon, 8 May 2023 23:55:57 +0000 (UTC) Date: Mon, 8 May 2023 23:55:57 +0000 From: Peter Todd To: Moth , Bitcoin Protocol Discussion Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rJQYXhN1Z2LmqwxE" Content-Disposition: inline In-Reply-To: Subject: Re: [bitcoin-dev] Witness script validation to reject arbitrary data 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: Tue, 09 May 2023 00:05:54 -0000 --rJQYXhN1Z2LmqwxE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 08, 2023 at 08:16:41PM +0000, Moth via bitcoin-dev wrote: > From what I understand, things like inscriptions can only be inserted bet= ween two specific flags - OP_FALSE and OP_IF. That's just an artifical limitation of the current inscription protocol. Th= ere are endless ways to embed arbitrary data in Bitcoin transactions. Blocking = them all is a hopeless task. > Having a validation check to reject witness scripts that have arbitrary d= ata between these two flags could be used to reject inscriptions while stil= l allowing all the benefits of taproot. This will prevent people from overl= oading the network with txns geared solely for ordinals and brc-20 tokens. >=20 > Is there a reason such a validation check is a bad idea? We already have = OP_RETURN to store arbitrary data that is limited to 80kb. Was it an oversi= ght that arbitrary data can be inserted between OP_FALSE and OP_IF when the= size limit for witness scripts was lifted as part of taproot? It's pointless to even try. The current flood of inscription txs are very small, about 150vB, and embed very little data in the chain. They could have just as easily used OP_RETURN outputs or any number of other data encoding techniques. Blocking that kind= of use-case is hopeless. The _purpose_ of the current flood of BRC-20 inscriptions - tl;dr the creat= ion of a new set of assets via an auction - is something that doesn't even requ= ire any data to be embedded in the chain at all. They could have implemented th= em with perfectly normal transactions indistinguishable from any other transaction. Blocking that is truly hopeless. --=20 https://petertodd.org 'peter'[:-1]@petertodd.org --rJQYXhN1Z2LmqwxE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE0RcYcKRzsEwFZ3N5Lly11TVRLzcFAmRZjAIACgkQLly11TVR Lzd8nQ//fVfilxhtTEPyxK8BnE4IP/j4/Dq1JhB+XQaB8SdPKhKFe0pBc4JQB7ZN 4jVmgvgQay86Q9W4QWDLbO5T2caONR2L5zGRuXtfprjxmD/UE2fdR5mqcdqoAzFe HXUU2mp8y/r8zVm6ieJHn6IbAh9KYOecsXqo+gJC3NuQ/Ns88/U27MzHr2pEaUe0 R0ScNgqzmhJcmxya+JfgCDZG2v0VgEuSGfTw+h0kEk1rj/U+RkL6LtJRk947ye0K pqMVXAosl7zLw2qel8R+VE08fmzaJLK3NGbSAkYCqz8y7MM+JPFcxUGodpisocl4 xYTprm2JUoS/U2Y+xU98hrYZJ5KOt+5TZ43oXUw+q1UrupjInbfiKsnsrf8GU5yk ow7ABmnybU8XWrVHB4kYWQw2RuvOQ6Xl2dEdtteAhVNocDKIp6BKdOzHbbCgg1AN M4o/1Qb59YBkzjlgZuC0MRucs1WRTaqPWLd+s+i+zo4QSH82HHeo1+iDW1qB/hk0 SMXXHXGdFhhVEvMIjG+0ShK94bvjG+/Evn3e9ywOG00bb3Xn1SBYIqjtYjcH534j 8tX4NhXOuLSv5F6GAW4yHbR/Bvcchvt3TRkyEiKkp3iuWaEeJgYUm168h51R/pRl C9MYvpfQPUf9Jw8fmuEILToNftkT8Ls41/ySyGPQFC9YuJPrYPQ= =BuML -----END PGP SIGNATURE----- --rJQYXhN1Z2LmqwxE--