1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
Return-Path: <gmaxwell@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
[172.17.192.35])
by mail.linuxfoundation.org (Postfix) with ESMTPS id 8E763D10
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 20 Nov 2017 18:59:36 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com
[209.85.217.175])
by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 17ECE522
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 20 Nov 2017 18:59:36 +0000 (UTC)
Received: by mail-ua0-f175.google.com with SMTP id l25so6589849uag.8
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 20 Nov 2017 10:59:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:sender:in-reply-to:references:from:date:message-id
:subject:to; bh=dETqQMWa88xJLdh9kmbSaQqRyUji7SdVA/c0AT4Z6G8=;
b=uafc0cUIFPHGIRckTJA8obdV8bxFFlS1zUrof+BsptszsOrYTLMDgGazYr56U2WY5x
0ZVHHAjUZvHI2lGwTxtV7IMTNzrKkJ5TMB6Hc+6bpa/6hfGL40qqDSSRDr/OTLxvTOhs
1RFgnWX6DEwW3AiqKgNDWBonF2kSA1loQRfWk0dP+4blJ9zKybRAl9hwsmeB9wldTWH8
3w1YaByT4ub0oswatA5checQR94nIXYdBNpbcksDNq5AYqOLevOM52TgS2OfNf1ZeUnU
5qOLNb2s8kQqlOMdWGCzGGHmx0MqennlLceUnbYCsbRXL9Hl6Z80nEiFqBwXJ5hXO/8E
3aUQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
:date:message-id:subject:to;
bh=dETqQMWa88xJLdh9kmbSaQqRyUji7SdVA/c0AT4Z6G8=;
b=BceagRLS/qGSBiMtVhpjucDJ/ugf/nI1/byeEAVgKmQmwNIndOduHnFJMSCRPVS/ce
mFULr5lbLYoOWbF0EnmiEgZZCfsfQrOUX2U6EwJVtV2DDQOFTbsu+zmfKoQ/wNQlgqc+
9oWcqHxhoqHwOH5NxTLITCwtMhkKUiZ1FhHNeyUJWrQplI//AOhAs3B1FPI1F5X8u2ZH
6B67JVD7VMo8FJJHO5DLku33T341QUN9QY4elELFbUA/a5OZCODRjaK1RNMxnMN4xpJw
K3jdNcrNFe6RMuqag495PKet4Bg/yEFCE/AnAo7XAKVjZ1QKGuDLKbEbyU9cnGUitWZ6
WmCQ==
X-Gm-Message-State: AJaThX6dLVJVcliaiPXIl3DmqMn0xPlehujSn2R5EcZYaA6L5Oa7S74F
f6axUZiTuZAROl2AxtlSZjGIG+D45xvK8mZtKog=
X-Google-Smtp-Source: AGs4zMaaBr3iz5udIL2+w25KP6y/v+x9UgaJ6+es6Ft9HaiLDz2TvUc3OTZK0gn6NM86j3zlbvbkByuAIn8vytLx8jM=
X-Received: by 10.159.32.135 with SMTP id 7mr12984582uaa.61.1511204375284;
Mon, 20 Nov 2017 10:59:35 -0800 (PST)
MIME-Version: 1.0
Sender: gmaxwell@gmail.com
Received: by 10.103.85.148 with HTTP; Mon, 20 Nov 2017 10:59:34 -0800 (PST)
In-Reply-To: <CAAQs3wuDPktHc6kiZXqTaatOheX4KP=TRgje0_-ED5h8iNs-MA@mail.gmail.com>
References: <CAAQs3wuDPktHc6kiZXqTaatOheX4KP=TRgje0_-ED5h8iNs-MA@mail.gmail.com>
From: Gregory Maxwell <greg@xiph.org>
Date: Mon, 20 Nov 2017 18:59:34 +0000
X-Google-Sender-Auth: ZWqvv3k-biPEjV0bBpu-b7bJDcY
Message-ID: <CAAS2fgSX9XKtwzJ9z5SLJGQHHv+4jUDCKHpcb7V8XEhFuxL=Nw@mail.gmail.com>
To: Praveen Baratam <praveen.baratam@gmail.com>,
Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID, 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
Subject: Re: [bitcoin-dev] Why SegWit Anyway?
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: Mon, 20 Nov 2017 18:59:36 -0000
On Mon, Nov 20, 2017 at 5:24 PM, Praveen Baratam via bitcoin-dev
<bitcoin-dev@lists.linuxfoundation.org> wrote:
> Bitcoin Noob here. Please forgive my ignorance.
>
> From what I understand, in SegWit, the transaction needs to be serialized
> into a data structure that is different from the current one where
> signatures are separated from the rest of the transaction data.
>
> Why change the format at all? Why cant we just compute the Transaction ID
> the same way the hash for signing the transaction is computed?
That is effectively what segwit does, upto engineering minutia and
compatibility details.
Segwit does not serialize transactions in to a data structure where
signatures are separated from the rest of the transaction data; this
is a misunderstanding. The "segregated" refers to them being excluded
from the TXID. The serialization of segwit on the p2p network in
transactions and in blocks encodes the witness field inside the
transactions, immediately prior to the nlocktime field.
|