Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id A9AF81407 for ; Sun, 26 May 2019 17:09:33 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id EBA626C5 for ; Sun, 26 May 2019 17:09:32 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id u16so10658199wrn.8 for ; Sun, 26 May 2019 10:09:32 -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=wKSjJ+j6PAEuhyzVRGOfxUN2e+WzdN+7EZ3D0tCjQWI=; b=NTEQ+g4wUuZjtgkvFwuQgo3GbrlRc6cFWmy539wuGsCxDjYDyPuZsmNTtb7cJ+/GYH /3AvNuQoWJHnuQxpsKu3fHNySFX69f3XayxPjk31mwYxK9C/va0ay7GWh1fNy8k9a4af S+GfR/38caUTib4egOJN7hFcubiS9KoEBrN4yq0zBv6l9bpGRcBoEUCntjYLK0bLYNYY pPM3LBfhqvkRd9dtUc/72pcvCuGUkQdlIndtlf2ZpDDMmr3XtGuJiTzmmNbyN7mKphOt dwLjmbgSSCpuf8dA8Rs1lcxmRN2SgypX2if/sjHdNlno8qirinyKDGdf0E5s6I8o5ogh JZYA== 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=wKSjJ+j6PAEuhyzVRGOfxUN2e+WzdN+7EZ3D0tCjQWI=; b=ooJGhKgU8sQDy9/InzIfvC+ddQkkb4PmeaaYga9XhumT7h279VMGD/0Zjeg0fgmul0 ag9z9s1w6Bq45lV49PP9rbpaSvGdslQHvHtXRlpeLWjnxwyPjSzQtyybdPocRcKaQiHn 9EmmS1c0w+DSUHHzU20y+Jc+IA+ST2ohqYSV99oijXsPt/ARgFmYcrXCah0iHK39SSXK b+hqNQJekjR/XYN2QIfQ/BEJCM6j4ZZcZSoSrZk8d69TMFDAD6sLSgDMqJvW2rKKhHhY fd81OUMgWOYQoivzzOVsjI40uAG1H/n0JQdkVYEnngTIldWxH8OejGo/E991hEliKusu gyRQ== X-Gm-Message-State: APjAAAXNFaGbSayHrrBzSo9abecjVE0Flqq9sAVS2Sg8ZsywZi4gY7mx N+2PgJ4gUixLVfGdS+3Z12VW11E3 X-Google-Smtp-Source: APXvYqyCW1NLFhBlMoc//CTgYFNMoTUWr8+iYzdx88h/bkt1yk+8B1baHwOaEaSq12hL71TyBXmXcw== X-Received: by 2002:adf:d4ca:: with SMTP id w10mr71756182wrk.293.1558890571307; Sun, 26 May 2019 10:09:31 -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 h90sm16351491wrh.15.2019.05.26.10.09.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 May 2019 10:09:30 -0700 (PDT) To: Johnson Lau References: <6DFB6C65-D123-40FD-9CE3-49FFCA81EE46@xbt.hk> <253DB697-BECF-4D68-8A1E-1549B52D5AFA@xbt.hk> From: Aymeric Vitte Openpgp: preference=signencrypt Autocrypt: addr=vitteaymeric@gmail.com; prefer-encrypt=mutual; keydata= mQINBFdW8uABEAC7HJScbB2d/lmYoY5Cn9loEjJwfLs1LC3om030bWFGiH3Ceo5XeHUT94rw Pi+HaHU8ea94425SXIFsnqp/ouoT/8Ffn6vED0OoRmK0jE4fqDApXSpoL2mHX9PAGdUItMtD YrxBiBZNfMkctEsm4NrQ4TC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JDsj6aQUTgknaxKptJogNe3dDyIT+FHxXmCw0Nrbm9Q3ryl80z/G9utfFNO3Gwc q31QW3n3LJHnpqdrV3WsRzT5NwJMVtiIAGRrX8ZomtarWHT0PeEHC2xBdFzRrJtmkrwer0Wc 0nBzD7vk1XEXC9nODbmlgsesoHFgRwQBst3wClCbX1gv8aSfxQNpaf9UBC8DmyrQ621UXpBo PvcFEtWxV44vJfP0WOLCCN0Pzv2F2I66iKo7VMqbr5jlNAXJN9I1hXb7qwYJmBC9j5oeEoqv A9d44WWpxrdAr8qih4Nv89k9+9F6NoqORY3FGuVDKiW8CVhCmGT7bIvNeyicVBZFipXqPcKL VFduO2c5Ubc2npMWLUF1k9JJc9tH75l3+F/0RbYVTzGAZ+zSaudwR6h8YiCN2DBZGZkJEZbh 3X/l6jtijMN/W9sPHyyKvm/TmeEC27S3TqZPZ8PUQLxZC70V6gMbenh01JdSQsn5t8Ru0RNh Blt0g7IyZyIKCE9b+TyzbYpX6qgqEBUHia5b0vyPtQacWQlZ8uqnghAqNkLluEsy7Q/7xG6M wXUYEDsFOmB9dKOzcAOIhpxlVjSKu5mzXJ11sEtE8nyF5NJ/riCA7FGcjlki3zIpzQUNo9v7 vXl2h6Tivlk= Message-ID: Date: Sun, 26 May 2019 19:09:31 +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: <253DB697-BECF-4D68-8A1E-1549B52D5AFA@xbt.hk> 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: Mon, 27 May 2019 14:28:37 +0000 Cc: bitcoin-dev Subject: Re: [bitcoin-dev] Two questions about segwit implementation 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: Sun, 26 May 2019 17:09:33 -0000 I did not phrase correctly in fact, what I meant is: if the validator sees empty or witness script in scriptSig, then this is a segwit input, and doing this one by one the validator can associate the correct segwit data to the correct segwit input, so 00 does not look to be needed Le 26/05/2019 à 18:28, Johnson Lau a écrit : > This is not how it works. While the transaction creator may know which inputs are segwit, the validators have no way to tell until they look up the UTXO set. > > In a transaction, all information about an input the validators have is the 36-byte outpoint (txid + index). Just by looking at the outpoint, there is no way to tell whether it is segwit-enabled or not. So there needs to be a way to tell the validator that “the witness for this input is empty”, and it is the “00”. > >> On 27 May 2019, at 12:18 AM, Aymeric Vitte wrote: >> >> ……. for the 00 number of witness >> data for non segwit inputs the one that is doing the transaction knows >> which inputs are segwit or not, then parsing the transaction you can >> associate the correct input to the correct witness data, without the >> need of 00, so I must be missing the use case >