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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
Return-Path: <dkbryant@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
[172.17.192.35])
by mail.linuxfoundation.org (Postfix) with ESMTPS id 4A9DFC92
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 20 Nov 2017 18:04:12 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-io0-f170.google.com (mail-io0-f170.google.com
[209.85.223.170])
by smtp1.linuxfoundation.org (Postfix) with ESMTPS id A1C131AE
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 20 Nov 2017 18:04:11 +0000 (UTC)
Received: by mail-io0-f170.google.com with SMTP id v21so16665583ioi.4
for <bitcoin-dev@lists.linuxfoundation.org>;
Mon, 20 Nov 2017 10:04:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:reply-to:in-reply-to:references:from:date:message-id
:subject:to:cc;
bh=VO4ZWD19uzb6eKrfL6UhUox+KKnYrHDQsAxQdolZykA=;
b=ffdxcfIdDWpmRYhZmaW9PX14sX4QHtptOR55ph/4iGv+qltCBKgcD4OMnBMbzHdZFl
kSxJkiK1/yF7Y5xnkm5wSCBvGeLpOpElhZQPnrvrkm+VqSOAhRh1sH1MW6ivH7nI8oLB
cmDv0Nf8tPjk5LJXbak+sRgU8BBCXSKA+SHQpnG9zxDmYyJq9lDGqxgVK8vDbByoC5Fb
PWEoa439zDKeb6DWziiHehKRSfrlnP+p/eohDlsEL043YYoT5VycBmkGxPKwiSkvXLZ2
h9+cgXWB0Kyk74R6t/GUWcYFIBDmauhqX6wcYcAZOVSX+olftgo9BcDQTvpwXHqwo51q
WMrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:reply-to:in-reply-to:references
:from:date:message-id:subject:to:cc;
bh=VO4ZWD19uzb6eKrfL6UhUox+KKnYrHDQsAxQdolZykA=;
b=kHJUlFM0ruS9WRmZs8sM2GswtJyAqrA522O2zKhwzOnQjyCmN2hhTbyrTKwLtIEHHX
C+W7/mx5282yJE6EjTfjdtYhW6m/AudJSUKi4CVhtsMdwjV/Zvki0ltkKT8zrg8Jj4Oq
nu1WzxnCK5SPafNzEl+WPdUNlDikM0Sj91KW0Ilmm7yzUohYwWfauoC1bTfDHB9qs9ZY
KaL14/7Nc2FNuY1nPrhpW1anR9JC+N4RmsZ5BsElOHXCazc6F7f7YFYKjqPFyHIpa6EG
oCA7Ywu19dnqAFwPrKN47eBDs8O93LrjqbA80Ke5rF1V7OQJtvjiig/YuE164lP0fhZI
MClQ==
X-Gm-Message-State: AJaThX4sKnaQVsawvAJHDYWcrr83dvCMgr0N/AVG0X5V1LAS6B+XU1cd
PU9tDfmG1WmEuiVtHFzTuVneqbfixD8BhB7Tjds=
X-Google-Smtp-Source: AGs4zMbSAQhLKyCgFld3faVL2XbkOTjaHwq3U6aAg1X4KDN/fVeI1Nmt1z8PBFKoCGHuBP0UJT3Khe/zZe1BA0JPqlc=
X-Received: by 10.107.16.206 with SMTP id 75mr15043063ioq.83.1511201050685;
Mon, 20 Nov 2017 10:04:10 -0800 (PST)
MIME-Version: 1.0
Received: by 10.107.4.213 with HTTP; Mon, 20 Nov 2017 10:04:09 -0800 (PST)
Received: by 10.107.4.213 with HTTP; Mon, 20 Nov 2017 10:04:09 -0800 (PST)
Reply-To: DKBryant@gmail.com
In-Reply-To: <CAAUFj11_Vh2K4MrmuBre5KaX6F16Jg3PYAsj6SSfzoYYRz_WyA@mail.gmail.com>
References: <CAAQs3wuDPktHc6kiZXqTaatOheX4KP=TRgje0_-ED5h8iNs-MA@mail.gmail.com>
<F392E62C-00CF-4D91-BB6B-706F2A59C63B@xbt.hk>
<CAAUFj10ZRQrtEzB_2wp-WS8Q-FGcSegpc_Z6kqvqnDLzNn=DrA@mail.gmail.com>
<CAAUFj11_Vh2K4MrmuBre5KaX6F16Jg3PYAsj6SSfzoYYRz_WyA@mail.gmail.com>
From: Dan Bryant <dkbryant@gmail.com>
Date: Mon, 20 Nov 2017 12:04:09 -0600
Message-ID: <CAAUFj1091C3xXL+2j1EovE2j_2kDYsjP_O4ZOKBaxmHuKN=1Lg@mail.gmail.com>
To: bitcoin-dev@lists.linuxfoundation.org, Johnson Lau <jl2012@xbt.hk>
Content-Type: multipart/alternative; boundary="001a113eda96cf7f63055e6de94b"
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, HTML_MESSAGE,
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: Tue, 21 Nov 2017 13:06:15 +0000
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:04:12 -0000
--001a113eda96cf7f63055e6de94b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Is there any incentive for miners to pick segwit transactions over
non-segwit transaction. Do they require less, equal, or more compute to
process?
On Nov 20, 2017 11:46 AM, "Johnson Lau via bitcoin-dev" <
bitcoin-dev@lists.linuxfoundation.org> wrote:
We can=E2=80=99t =E2=80=9Cjust compute the Transaction ID the same way the =
hash for signing
the transaction is computed=E2=80=9D because with different SIGHASH flags, =
there
are 6 (actually 256) ways to hash a transaction.
Also, changing the definition of TxID is a hardfork change, i.e. everyone
are required to upgrade or a chain split will happen.
It is possible to use =E2=80=9Cnormalised TxID=E2=80=9D (BIP140) to fix mal=
leability issue.
As a softfork, BIP140 doesn=E2=80=99t change the definition of TxID. Instea=
d, the
normalised txid (i.e. txid with scriptSig removed) is used when making
signature. Comparing with segwit (BIP141), BIP140 does not have the
side-effect of block size increase, and doesn=E2=80=99t provide any incenti=
ve to
control the size of UTXO set. Also, BIP140 makes the UTXO set permanently
bigger, as the database needs to store both txid and normalised txid
On 21 Nov 2017, at 1:24 AM, 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?
--=20
Dr. Praveen Baratam
about.me <http://about.me/praveen.baratam>
_______________________________________________
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
_______________________________________________
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
--001a113eda96cf7f63055e6de94b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"auto">Is there any incentive for miners to pick segwit transact=
ions over non-segwit transaction.=C2=A0 Do they require less, equal, or mor=
e compute to process?</div><div class=3D"gmail_extra"><br><div class=3D"gma=
il_quote">On Nov 20, 2017 11:46 AM, "Johnson Lau via bitcoin-dev"=
<<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@l=
ists.linuxfoundation.org</a>> wrote:<br type=3D"attribution"><blockquote=
class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div style=3D"word-wrap:break-word;line-break:after-white-spa=
ce"><div>We can=E2=80=99t =E2=80=9Cjust compute the Transaction ID the same=
way the hash for signing the transaction is computed=E2=80=9D because with=
different SIGHASH flags, there are 6 (actually 256) ways to hash a transac=
tion.</div><div><br></div><div>Also, changing the definition of TxID is a h=
ardfork change, i.e. everyone are required to upgrade or a chain split will=
happen.</div><div><br></div>It is possible to use =E2=80=9Cnormalised TxID=
=E2=80=9D (BIP140) to fix malleability issue. As a softfork, BIP140 doesn=
=E2=80=99t change the definition of TxID. Instead, the normalised txid (i.e=
. txid with scriptSig removed) is used when making signature. Comparing wit=
h segwit (BIP141), BIP140 does not have the side-effect of block size incre=
ase, and doesn=E2=80=99t provide any incentive to control the size of UTXO =
set. Also, BIP140 makes the UTXO set permanently bigger, as the database ne=
eds to store both txid and normalised txid<br><div><div><br><blockquote typ=
e=3D"cite"><div class=3D"elided-text"><div>On 21 Nov 2017, at 1:24 AM, Prav=
een Baratam via bitcoin-dev <<a href=3D"mailto:bitcoin-dev@lists.linuxfo=
undation.org" target=3D"_blank">bitcoin-dev@lists.<wbr>linuxfoundation.org<=
/a>> wrote:</div><br class=3D"m_-2919472362485226639Apple-interchange-ne=
wline"></div><div><div class=3D"elided-text"><div dir=3D"ltr"><div><span st=
yle=3D"font-family:Verdana,arial,sans-serif;font-size:14px">Bitcoin Noob he=
re. Please forgive my ignorance.</span></div><span style=3D"font-family:Ver=
dana,arial,sans-serif;font-size:14px"><div><span style=3D"font-family:Verda=
na,arial,sans-serif;font-size:14px"><br></span></div>From what I understand=
, in SegWit, the transaction needs to be serialized into a data structure t=
hat is different from the current one where signatures are separated from t=
he rest of the transaction data.</span><div><span style=3D"font-family:Verd=
ana,arial,sans-serif;font-size:14px"><br></span></div><div><span style=3D"f=
ont-family:Verdana,arial,sans-serif;font-size:14px">Why change the format a=
t all? Why cant we just compute the Transaction ID the same way the hash fo=
r signing the transaction is computed?</span><br clear=3D"all"><div><br></d=
iv>-- <br><div class=3D"m_-2919472362485226639gmail_signature"><div style=
=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;backgro=
und-color:rgb(255,255,255)">Dr. Praveen Baratam</div><div style=3D"color:rg=
b(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rg=
b(255,255,255)"><br></div><div style=3D"color:rgb(34,34,34);font-family:ari=
al,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><a href=3D"=
http://about.me/praveen.baratam" style=3D"color:rgb(17,85,204)" target=3D"_=
blank">about.me</a></div></div>
</div></div></div>
______________________________<wbr>_________________<div class=3D"quoted-te=
xt"><br>bitcoin-dev mailing list<br><a href=3D"mailto:bitcoin-dev@lists.lin=
uxfoundation.org" target=3D"_blank">bitcoin-dev@lists.<wbr>linuxfoundation.=
org</a><br><a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bi=
tcoin-dev" target=3D"_blank">https://lists.linuxfoundation.<wbr>org/mailman=
/listinfo/bitcoin-<wbr>dev</a><br></div></div></blockquote></div><br></div>=
</div><br>______________________________<wbr>_________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.=
<wbr>linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.<wbr>org=
/mailman/listinfo/bitcoin-<wbr>dev</a><br>
<br></blockquote></div><br></div>
--001a113eda96cf7f63055e6de94b--
|