diff options
author | Aymeric Vitte <vitteaymeric@gmail.com> | 2019-05-02 12:01:54 +0200 |
---|---|---|
committer | bitcoindev <bitcoindev@gnusha.org> | 2019-05-02 10:02:00 +0000 |
commit | 274ff517f5780063b56a30e8b2daced1ab938889 (patch) | |
tree | e187106cc8da762511418a883f590b76fe8e649c | |
parent | 7a8e5d5c5e1321a0afc65113278d5c9532eabf7e (diff) | |
download | pi-bitcoindev-274ff517f5780063b56a30e8b2daced1ab938889.tar.gz pi-bitcoindev-274ff517f5780063b56a30e8b2daced1ab938889.zip |
Re: [bitcoin-dev] IsStandard
-rw-r--r-- | 62/8df059f745603e956d987251b5b671bc07b3c6 | 204 |
1 files changed, 204 insertions, 0 deletions
diff --git a/62/8df059f745603e956d987251b5b671bc07b3c6 b/62/8df059f745603e956d987251b5b671bc07b3c6 new file mode 100644 index 000000000..f69556585 --- /dev/null +++ b/62/8df059f745603e956d987251b5b671bc07b3c6 @@ -0,0 +1,204 @@ +Return-Path: <vitteaymeric@gmail.com> +Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org + [172.17.192.35]) + by mail.linuxfoundation.org (Postfix) with ESMTPS id 161633047 + for <bitcoin-dev@lists.linuxfoundation.org>; + Thu, 2 May 2019 10:02:00 +0000 (UTC) +X-Greylist: whitelisted by SQLgrey-1.7.6 +Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com + [209.85.221.52]) + by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 192ED711 + for <bitcoin-dev@lists.linuxfoundation.org>; + Thu, 2 May 2019 10:01:59 +0000 (UTC) +Received: by mail-wr1-f52.google.com with SMTP id e28so2518216wra.0 + for <bitcoin-dev@lists.linuxfoundation.org>; + Thu, 02 May 2019 03:01:58 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; + h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date + :user-agent:mime-version:in-reply-to:content-transfer-encoding + :content-language; + bh=EnmVy4PBK+p8kaywHiLvAe5ubWyLKccqkub+saCp7vM=; + b=k5jbSyMKQ/rvQPRnT6xUu7SEgZ7GihDXb5G9dPSI55Sd5haHpqhze09rRaCa4HS7Mg + EhpwDucn+It6lLyKiMTzWSvKqJ23yC9h+7vHS3ln+yukjCDNzp4R+Bsu9EaLpVfAKop2 + ydXvpR/mIC8vlVLVKEMWKPFWxYA2xguJUk6juYwDFfUSIiCiPrylb/1Jp1vg6uKOlS9F + 8iHpvqLCyCFocPd3PETlsXVQyFN2/f3M6qjfLTRhzr3IaVfbi/rIbIc9Ob8IIDgJiHUf + HUjbBytPtMwyZzvC7Syt+jevY4u/V5nBc/98O+4Ax3l4PWi0tEgXqos34JOdPrEsF7Xw + qQHg== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20161025; + h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt + :message-id:date:user-agent:mime-version:in-reply-to + :content-transfer-encoding:content-language; + bh=EnmVy4PBK+p8kaywHiLvAe5ubWyLKccqkub+saCp7vM=; + b=SptiDQEEmk4+JMHDnag+9kyhe2VpJV4gqsnXBtubI5plFRNdztPf9vjvK9aWt7Q5eJ + zQh06iI4Z7yGy6vJzx+5j+txCLkMgRr4PgXCuI041TZoGuIrXoSboKWvAaiT+ZzEO01h + oAxJeIAJ+OOtMop6NDpf6Sm8ysowjNyaynEK0lReKrPCIgEa/zggxooYjagFk3Vdo++c + xZxpRlcP+YrIUwLt+tgit0BVv2ZHmfFo8QM41rLiKwZ+xQ/ekNzWlvGVdylXR1J6L9HT + q3h3Fl5VR+AaKBfC0A8mii2wNUg60ikF5fPWvyNfE73nIJfm5NpwZkUEr77Pw7hvowGR + M/7A== +X-Gm-Message-State: APjAAAWsM8sOwYaT5OUDVJuwO5ttnr9IkhNmHo3Kw9KIB8SzcSuDVu+4 + ERserFDm3uxCb4bQva1Gsj2UDdIu +X-Google-Smtp-Source: APXvYqzAq65qomkpDhWfWX7T927IDGUeCKd+B5kJfKc+tY53+pDYdZLFC+6/AbUC9x/gawSBhkRLYA== +X-Received: by 2002:adf:f390:: with SMTP id m16mr2129540wro.25.1556791317552; + Thu, 02 May 2019 03:01:57 -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 + d16sm45234140wra.54.2019.05.02.03.01.55 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Thu, 02 May 2019 03:01:56 -0700 (PDT) +To: ZmnSCPxj <ZmnSCPxj@protonmail.com> +References: <21346b3c-dad5-c666-9234-8916aa5a56e4@gmail.com> + <201904290301.43459.luke@dashjr.org> + <56b67b57-dc11-183a-1f4e-5a8c296b64cc@gmail.com> + <aglJm4Zqda4W5Lrq33myL085DPnxjQTY1Eg6ANYFOe10nXeW8NvBOUUckAF4ASsZIO00xB8KoZ6wOQPPFB9g-uOl8A4gwZ10MYYZzZ2BjU0=@protonmail.com> + <1019ea57-7240-2dc7-8357-970223278e3d@gmail.com> + <UjO5iL0rbqOeo-nhFpOQSnVX7B4EHToLspAjUNFevNahTrU5O650U0shNQEOwSMCUxs90LZOtl5OuX9VawOXtGTTaW1Wl0gEQF0gv_jtb6w=@protonmail.com> +From: Aymeric Vitte <vitteaymeric@gmail.com> +Openpgp: preference=signencrypt +Autocrypt: addr=vitteaymeric@gmail.com; prefer-encrypt=mutual; keydata= + mQINBFdW8uABEAC7HJScbB2d/lmYoY5Cn9loEjJwfLs1LC3om030bWFGiH3Ceo5XeHUT94rw + Pi+HaHU8ea94425SXIFsnqp/ouoT/8Ffn6vED0OoRmK0jE4fqDApXSpoL2mHX9PAGdUItMtD + YrxBiBZNfMkctEsm4NrQ4TCvB3Yrm6Fc69inXJjUoYgPw5tHafEeI8Qwh0j99JZZDKcAqIra + JF3MPc59rATz0qOJtRP9EpsPVFwjJe13zN6CHILwiVgr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gwc + q31QW3n3LJHnpqdrV3WsRzT5NwJMVtiIAGRrX8ZomtarWHT0PeEHC2xBdFzRrJtmkrwer0Wc + 0nBzD7vk1XEXC9nODbmlgsesoHFgRwQBst3wClCbX1gv8aSfxQNpaf9UBC8DmyrQ621UXpBo + PvcFEtWxV44vJfP0WOLCCN0Pzv2F2I66iKo7VMqbr5jlNAXJN9I1hXb7qwYJmBC9j5oeEoqv + A9d44WWpxrdAr8qih4Nv89k9+9F6NoqORY3FGuVDKiW8CVhCmGT7bIvNeyicVBZFipXqPcKL + VFduO2c5Ubc2npMWLUF1k9JJc9tH75l3+F/0RbYVTzGAZ+zSaudwR6h8YiCN2DBZGZkJEZbh + 3X/l6jtijMN/W9sPHyyKvm/TmeEC27S3TqZPZ8PUQLxZC70V6gMbenh01JdSQsn5t8Ru0RNh + Blt0g7IyZyIKCE9b+TyzbYpX6qgqEBUHia5b0vyPtQacWQlZ8uqnghAqNkLluEsy7Q/7xG6M + wXUYEDsFOmB9dKOzcAOIhpxlVjSKu5mzXJ11sEtE8nyF5NJ/riCA7FGcjlki3zIpzQUNo9v7 + vXl2h6Tivlk= +Message-ID: <6b8f2a91-af73-4d66-1b90-51acd4ce217c@gmail.com> +Date: Thu, 2 May 2019 12:01:54 +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: <UjO5iL0rbqOeo-nhFpOQSnVX7B4EHToLspAjUNFevNahTrU5O650U0shNQEOwSMCUxs90LZOtl5OuX9VawOXtGTTaW1Wl0gEQF0gv_jtb6w=@protonmail.com> +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 +Cc: "bitcoin-dev@lists.linuxfoundation.org" + <bitcoin-dev@lists.linuxfoundation.org> +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 <bitcoin-dev.lists.linuxfoundation.org> +List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>, + <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe> +List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/> +List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org> +List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help> +List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>, + <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe> +X-List-Received-Date: Thu, 02 May 2019 10:02:00 -0000 + +Thanks for the answer, indeed for the redeem script and someone +attempting a 0/1 of 3, good example + +So to summarize everything is standard as long as it matches P2PKH, +P2SH, P2WPKH or P2WSH , the redeem scripts for the sha bounties are in +op_return + +Still the case of bch is unclear (it's related since based on bitcoin +code unless they changed the policy), was the story that nodes would not +propagate the fix or that people did not want to take the risk to +propagate it? And why a non segwit old bitcoin node would not accept it +either? + +Le 02/05/2019 à 02:10, ZmnSCPxj a écrit : +> Good morning Aymeric, +> +> +> Sent with ProtonMail Secure Email. +> +> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ +> On Tuesday, April 30, 2019 5:43 PM, Aymeric Vitte <vitteaymeric@gmail.com> wrote: +> +>> I must badly explain my point (or just wondering things that do not +>> exist finally), the question is indeed whether nodes will relay non +>> usual transactions or not and how to know what they will accept or not: +>> +>> - my modified multisig 2 of 3: I did put OP_2 out of the usual redeem +>> script, the redeem script still matches scriptpubkey and scriptsig will +>> execute succesfully, that's a normal legacy P2SH or segwit P2WSH +>> +>> - bch segwit recovery: it's a p2sh transaction without any signature +>> verification, as far as I remember there was a story that it could not +>> propagate in the network (even taking the risk to be stolen) and that +>> people had to contact a (honest) miner +>> +>> - sha bounties: same as above, p2sh transactions without signatures +>> +>> etc +>> +>> Will all of those transactions propagate normally? And then the rule is +>> just that it matches the P2PKH, P2WPKH, P2SH, or P2WSH templates +>> whatever scripts you put inside? +> P2PKH and P2WPKH cannot have custom script. +> However, yes, any custom script can be wrapped in P2SH and P2WSH and it will be propagated. +> The P2SH/P2WSH hides the details of your custom script so cannot be filtered based on your custom script. +> Do realize that once a claim on your modified x-of-3 is propagated your `redeemScript` is known and someone can attempt to RBF (or coordinate with a miner) with a modified `witness` stack or `scriptSig` to claim your UTXO. +> (I do not know if `OP_CHECKMULTISIG` supports 0-of-3 but at least one of your signatories could make it a 1-of-3 and bribe a miner to get it claimed) +> +> I cannot answer for BCH; arguably that is off-topic here. +> +> The old SHA bounty transactions were propagated in the days before `isStandard` I think. +> Either that or they were put in by miners. +> An SHA bounty can still be propagated today if they are wrapped in a P2SH or P2WSH, but you have to publish the `redeemScript` yourself in some other method. +> Or bribe a miner if the transaction is not time-sensitive (for an SHA bounty, unlikely to be time-sensitive). +> +> Regards, +> ZmnSCPxj + +-- +Move your coins by yourself (browser version): https://peersm.com/wallet +Bitcoin transactions made simple: https://github.com/Ayms/bitcoin-transactions +Zcash wallets made simple: https://github.com/Ayms/zcash-wallets +Bitcoin wallets made simple: https://github.com/Ayms/bitcoin-wallets +Get the torrent dynamic blocklist: http://peersm.com/getblocklist +Check the 10 M passwords list: http://peersm.com/findmyass +Anti-spies and private torrents, dynamic blocklist: http://torrent-live.org +Peersm : http://www.peersm.com +torrent-live: https://github.com/Ayms/torrent-live +node-Tor : https://www.github.com/Ayms/node-Tor +GitHub : https://www.github.com/Ayms + + |