Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 4B6C71E8A for ; Mon, 29 Apr 2019 09:30:37 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id B0785608 for ; Mon, 29 Apr 2019 09:30:36 +0000 (UTC) Received: by mail-wm1-f54.google.com with SMTP id 26so13116275wmj.3 for ; Mon, 29 Apr 2019 02:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=X0//1NdGgetzrJYDEkYftJJ9LT2O0RKfThjbiM4OglE=; b=Ci5T8dZ6dS2WVDkEg+2tx05g37Wech+m+QZ7fQT3N8ehxVqWr9yghLZAS4jf9drTz1 SXgi6IaM0auEwJDAKiS1DR1rSLPlax+IGAQW9xK/jYDvJYK+rL2bHhveUSUwy2OIzFDG OzRCUmISaGPxH0gKHHBxAXdQ1RKRqyyGyaRMFrtFgFVKqkFGFoJ6ObQbTmeSm7dyKfxa EmXVHU51fPYa7EahWW1MByyUIe3HdQ7SbUBr+qC+rqQUPFZe4mlXyCxW2Fmgquw878Rc aeRnfLubs3Gb2P2/yjaAO4FF2GKNS2gjG5sMl/hguujtuxl97+s+pokfHZfF9s1Tg/gF jpkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=X0//1NdGgetzrJYDEkYftJJ9LT2O0RKfThjbiM4OglE=; b=uHKT5b7hNFmcKWK2N1KwvYwuOdxjFLwGV/BV6hyf3YfDrkXn7v+fOoCMCJv2UriC02 6v8t+pU4vSDMVpCJyzQL7boBr8nWqkZ/S2xQz4XFF2gqeUyAX/micfV0s4dZp2mH9sTC p8DLFGCurt4PN7FT4h03fSqzjvef9wtAI3FlnQHdVzgcvKbRa+JRWNZ6UTvdDWw9xfrO vBbt5cazqI6Kou7KALLt0cRkbGpngNbfo75lBH/rPyu/xUElnWf/ug3a6qBJiO82eiMr LpquQ+suYVnA1XUmdorYkp+DiAXFoHey0mTNfGlnQQEjUy0uq134DfC4KwbDVw9z44oK ND1g== X-Gm-Message-State: APjAAAUm1XdqhbHVSU2TVS/GBvkO28JAxrA1dGdEJMSwY1tYyEsgVgHV TC1gfQjAezdJvIP1a3l5utU= X-Google-Smtp-Source: APXvYqyHKUangBGcZyCA8ZHSXWcVvXbFK8Lyugh/+If8dl8RqDBGqAodB/IDu2AdPY/YtCSThWV7BA== X-Received: by 2002:a1c:c910:: with SMTP id f16mr15832247wmb.47.1556530235042; Mon, 29 Apr 2019 02:30:35 -0700 (PDT) Received: from ?IPv6:2a01:cb1d:44:6500:9d6d:71b2:cb71:cb17? ([2a01:cb1d:44:6500:9d6d:71b2:cb71:cb17]) by smtp.googlemail.com with ESMTPSA id d3sm63978514wmf.46.2019.04.29.02.30.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 02:30:34 -0700 (PDT) To: Luke Dashjr , bitcoin-dev@lists.linuxfoundation.org, ZmnSCPxj References: <21346b3c-dad5-c666-9234-8916aa5a56e4@gmail.com> <201904290301.43459.luke@dashjr.org> From: Aymeric Vitte Openpgp: preference=signencrypt Autocrypt: addr=vitteaymeric@gmail.com; prefer-encrypt=mutual; keydata= mQINBFdW8uABEAC7HJScbB2d/lmYoY5Cn9loEjJwfLs1LC3om030bWFGiH3Ceo5XeHUT94rw Pi+HaHU8ea94425SXIFsnqp/ouoT/8Ffn6vED0OoRmK0jE4fqDApXSpoL2mHX9PAGdUItMtD YrxBiBZNfMkctE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7hO vv2THuesjJDsj6aQUTgknaxKptJogNe3dDyIT+FHxXmCw0Nrbm9Q3ryl80z/G9utfFNO3Gwc q31QW3n3LJHnpqdrV3WsRzT5NwJMVtiIAGRrX8ZomtarWHT0PeEHC2xBdFzRrJtmkrwer0Wc 0nBzD7vk1XEXC9nODbmlgsesoHFgRwQBst3wClCbX1gv8aSfxQNpaf9UBC8DmyrQ621UXpBo PvcFEtWxV44vJfP0WOLCCN0Pzv2F2I66iKo7VMqbr5jlNAXJN9I1hXb7qwYJmBC9j5oeEoqv A9d44WWpxrdAr8qih4Nv89k9+9F6NoqORY3FGuVDKiW8CVhCmGT7bIvNeyicVBZFipXqPcKL VFduO2c5Ubc2npMWLUF1k9JJc9tH75l3+F/0RbYVTzGAZ+zSaudwR6h8YiCN2DBZGZkJEZbh 3X/l6jtijMN/W9sPHyyKvm/TmeEC27S3TqZPZ8PUQLxZC70V6gMbenh01JdSQsn5t8Ru0RNh Blt0g7IyZyIKCE9b+TyzbYpX6qgqEBUHia5b0vyPtQacWQlZ8uqnghAqNkLluEsy7Q/7xG6M wXUYEDsFOmB9dKOzcAOIhpxlVjSKu5mzXJ11sEtE8nyF5NJ/riCA7FGcjlki3zIpzQUNo9v7 vXl2h6Tivlk= Message-ID: <56b67b57-dc11-183a-1f4e-5a8c296b64cc@gmail.com> Date: Mon, 29 Apr 2019 11:30:39 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <201904290301.43459.luke@dashjr.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: fr X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org X-Mailman-Approved-At: Thu, 02 May 2019 23:19:28 +0000 Subject: Re: [bitcoin-dev] IsStandard X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Apr 2019 09:30:37 -0000 ZmnSCPxj, OK, but you can put whatever you like in the different standard output script you mention (my example below whether legacy or segwit) Luke, I am still confused or missing something, from your answer I understand that everything is accepted, so if we take the past example of bch coins wrongly sent to a segwit address, why was the recovery solution where scriptsig included the matching segwit address/program not a standard transaction? Le 29/04/2019 à 05:01, Luke Dashjr a écrit : > On Saturday 27 April 2019 10:37:29 Aymeric Vitte via bitcoin-dev wrote: >> Maybe trivial question but asking here because I can't find anything >> clear (or updated) about it: is somewhere explained in details what txs >> are considered standard and non standard today without having to read >> the core code? >> >> For example, modification of multisig 2 of 3: >> >> scriptSig: >>     OP_0 >>     OP_PUSHDATA sign1 >>     OP_PUSHDATA sign2 >>     OP_2 >>     OP_PUSHDATA OP_3 OP_CHECKMULTISIG >>     >> scriptPubKey: >>     OP_HASH160 hash160( OP_3 >> OP_CHECKMULTISIG) OP_EQUAL >> >> Is this standard? Are lightning txs standards ? etc > The name is confusing. It has little to do with standards, really. > IsStandard is just one of the functions which implement the node's policy. > It allows many things for which there is no standard (eg, data carrier / > OP_RETURN outputs), and can vary freely from node to node (either by > configurable parameters, or by different/modified software) without breaking > consensus. > > As it is a node-specific criteria, it is not itself even a possible *subject* > for standards. > > Additionally, it should not be given much (if any) attention when defining new > standards. Just do what makes sense for the standard, and node policies can > be adapted around that. > > So, overall, there's limited use case for documenting this beyond the code. > It makes far more sense to document actual standards instead. > > Luke s