summaryrefslogtreecommitdiff
path: root/9d/a9e82677716dfbce9209845a7f1ce0871347db
blob: df02d6a268b43da6c03eee9767c5b2498f947c14 (plain)
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
Delivery-date: Fri, 03 May 2024 17:04:18 -0700
Received: from mail-yb1-f184.google.com ([209.85.219.184])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBCQ6HM7U3YGRB6XW2WYQMGQENOCRNWI@googlegroups.com>)
	id 1s32sz-0007za-MW
	for bitcoindev@gnusha.org; Fri, 03 May 2024 17:04:18 -0700
Received: by mail-yb1-f184.google.com with SMTP id 3f1490d57ef6-de59ff8af0bsf438107276.2
        for <bitcoindev@gnusha.org>; Fri, 03 May 2024 17:04:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1714781051; x=1715385851; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-sender:mime-version
         :subject:references:in-reply-to:message-id:to:from:date:sender:from
         :to:cc:subject:date:message-id:reply-to;
        bh=NYstt/56idDMsaoqEEKGA/5Cq6unoHSsw7m18GL0Yls=;
        b=bb7WmwxxBA66ttDN2hPjNj5LVXM9xJe3a/JrZU1AbWxntMo6AKyqFQ1fPWu9EAsHAc
         IGQVkGlVME6t9RZwN931vbedRI1085bsmdpoV3WobBDrUVpePVgy7LHlLIy//+xNRyfR
         VeoV6TIM56vMI8XH7WdDXYCd+nov53rHKRunW6LPrL9yEe4bWAzEAsrThBUKM6tqEOn/
         gNohIdecSIiYG3QcZwupRyGfCQOKMp0zGbCqZ7yGp9Fa3tfo8JyhPY6n05KHJukeL0Ib
         4FfxoMY8+o0HX0J3ZOGgHSyUb7OmQq0V9JSuzMHfRsLmTIWm99hB+t0AIJAxQGsa5Wh+
         itfA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1714781051; x=1715385851;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-sender:mime-version
         :subject:references:in-reply-to:message-id:to:from:date:x-beenthere
         :x-gm-message-state:sender:from:to:cc:subject:date:message-id
         :reply-to;
        bh=NYstt/56idDMsaoqEEKGA/5Cq6unoHSsw7m18GL0Yls=;
        b=iPlN6FhL/2vkSYP5KZMP8tukpeYPiBI/83Qr9NkEWMsTX13HcQbOHzNPcxlrV/VOBa
         VoRXsWepJy35G/cuDCkRyhX67ICcugq2/nW/AG9xZH/jgl05NZtveVeGT52cjGw7/KNH
         7A8+rsv9CX0f2kUzuIbmg6KTRT8jk/gl7Lj7WR5mgkGs9hPDn8aICV4l2gT/z9uFWiGj
         r5paCcyvSd0Vo6YI6fo0zox8fg7/+I9SA2phdlSTaYJUcLptoQnCtP+Yy7sKSuOED5zw
         LqQ91GccJWc0n52Xec1ua6h2jlsBGguyFrAsS3lutS787U62/EHmmNfvMvXE8VuwoBEx
         44/A==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=1; AJvYcCUQjp2X2BpKxWPOrex5pGfgFJxaqkvA4YjGZnI2tEAUtpPg90oU1LLJxaW0dEpeNVyGjyxSA9zSVwP42tWwjIDln8JoO68=
X-Gm-Message-State: AOJu0YzSWlXFudX7ZyRxZ4ESvk6M8/bsSfmasOKRE81Fln8L4BCurr6I
	dGASxGgPZaveIzUIRoYuwkcBpJbXiWmWrKCEUW0cBXtfx56t9vYO
X-Google-Smtp-Source: AGHT+IFAh1UmjQYrqML8LjG9T57kWsgAJ1VbmeN6st8+jIbMjAg6Xda4ilfZQNd1Q/0cr1MwHxpA+A==
X-Received: by 2002:a25:8402:0:b0:de0:de50:d6d4 with SMTP id u2-20020a258402000000b00de0de50d6d4mr4502473ybk.8.1714781051640;
        Fri, 03 May 2024 17:04:11 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a25:dc44:0:b0:de6:720:76c2 with SMTP id 3f1490d57ef6-de8b54a8326ls859827276.1.-pod-prod-07-us;
 Fri, 03 May 2024 17:04:10 -0700 (PDT)
X-Received: by 2002:a05:6902:1004:b0:de4:7be7:1c2d with SMTP id w4-20020a056902100400b00de47be71c2dmr1342748ybt.11.1714781049902;
        Fri, 03 May 2024 17:04:09 -0700 (PDT)
Received: by 2002:a05:690c:f16:b0:61a:e84a:c592 with SMTP id 00721157ae682-61dfb44c61dms7b3;
        Thu, 2 May 2024 03:29:44 -0700 (PDT)
X-Received: by 2002:a05:6902:2b0e:b0:dcb:e4a2:1ab1 with SMTP id fi14-20020a0569022b0e00b00dcbe4a21ab1mr391178ybb.11.1714645782986;
        Thu, 02 May 2024 03:29:42 -0700 (PDT)
Date: Thu, 2 May 2024 03:29:42 -0700 (PDT)
From: Ali Sherief <ali@notatether.com>
To: Bitcoin Development Mailing List <bitcoindev@googlegroups.com>
Message-Id: <987e5090-63c3-4db3-bcd2-03e74a17b226n@googlegroups.com>
In-Reply-To: <CANJiN3+tCVERL2Px19oDM5P9VGj=kYeoEUxNSrUqVod9N_mVrg@mail.gmail.com>
References: <b165f262-e733-46c1-a6f3-328fc8b13288n@googlegroups.com>
 <CANJiN3+tCVERL2Px19oDM5P9VGj=kYeoEUxNSrUqVod9N_mVrg@mail.gmail.com>
Subject: Re: [bitcoindev] Test cases for signing legacy inputs in transactions
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_51289_1618634159.1714645782614"
X-Original-Sender: ali@notatether.com
Precedence: list
Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com
List-ID: <bitcoindev.googlegroups.com>
X-Google-Group-Id: 786775582512
List-Post: <https://groups.google.com/group/bitcoindev/post>, <mailto:bitcoindev@googlegroups.com>
List-Help: <https://groups.google.com/support/>, <mailto:bitcoindev+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/bitcoindev
List-Subscribe: <https://groups.google.com/group/bitcoindev/subscribe>, <mailto:bitcoindev+subscribe@googlegroups.com>
List-Unsubscribe: <mailto:googlegroups-manage+786775582512+unsubscribe@googlegroups.com>,
 <https://groups.google.com/group/bitcoindev/subscribe>
X-Spam-Score: -0.7 (/)

------=_Part_51289_1618634159.1714645782614
Content-Type: multipart/alternative; 
	boundary="----=_Part_51290_857222038.1714645782614"

------=_Part_51290_857222038.1714645782614
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I don't think that its a good idea to rely on my own generated Core=20
transactions, though. Not because I don't trust Core as having a correct=20
transaction implementation, but because the transactions are still=20
ultimately generated by me so that they are not covering all the edge cases=
.

-Ali

On Tuesday, April 30, 2024 at 1:32:03=E2=80=AFPM UTC Edil Guimar=C3=A3es de=
 Medeiros=20
wrote:

> Well, you might use core itself to create a bunch of private keys and=20
> legacy transactions.
> That will imply you trust core as a golden model for your software, but=
=20
> since almost everyone in the network assumes to be bug compatible with=20
> core, I don't see a problem.
>
> Or am I missing something and being too simplistic?
>
> Em ter., 30 de abr. de 2024 =C3=A0s 09:01, Ali Sherief <a...@notatether.c=
om>=20
> escreveu:
>
>> Hi all,
>>
>> I am aware that there are tons of raw transactions that can be used for=
=20
>> testing Segwit transaction constructors in BIP143 and also in the tests/=
=20
>> folder of the codebase somewhere.
>>
>> However, I am having a hard time finding reproducible legacy=20
>> transactions. This is usually for one of two reasons:
>>
>> 1) Important information for debugging the transaction signing such as=
=20
>> the preimage or private key is missing.
>> 2) The transactions were using OpenSSL to create the signatures, which=
=20
>> results in them being non-deterministic and useless for tests. As oppose=
d=20
>> to using libsecp256k1.
>>
>> So I am just wondering if anybody knows if there is a place where I can=
=20
>> find a bunch of raw legacy transactions, together with private keys, to=
=20
>> test my software with.
>>
>> -Ali
>>
>> --=20
>> You received this message because you are subscribed to the Google Group=
s=20
>> "Bitcoin Development Mailing List" group.
>> To unsubscribe from this group and stop receiving emails from it, send a=
n=20
>> email to bitcoindev+...@googlegroups.com.
>> To view this discussion on the web visit=20
>> https://groups.google.com/d/msgid/bitcoindev/b165f262-e733-46c1-a6f3-328=
fc8b13288n%40googlegroups.com=20
>> <https://groups.google.com/d/msgid/bitcoindev/b165f262-e733-46c1-a6f3-32=
8fc8b13288n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>
>> .
>>
>
>
> --=20
> Edil
>

--=20
You received this message because you are subscribed to the Google Groups "=
Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to bitcoindev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/=
bitcoindev/987e5090-63c3-4db3-bcd2-03e74a17b226n%40googlegroups.com.

------=_Part_51290_857222038.1714645782614
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I don't think that its a good idea to rely on my own generated Core transac=
tions, though. Not because I don't trust Core as having a correct transacti=
on implementation, but because the transactions are still ultimately genera=
ted by me so that they are not covering all the edge cases.<br /><br />-Ali=
<br /><br /><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_att=
r">On Tuesday, April 30, 2024 at 1:32:03=E2=80=AFPM UTC Edil Guimar=C3=A3es=
 de Medeiros wrote:<br/></div><blockquote class=3D"gmail_quote" style=3D"ma=
rgin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left:=
 1ex;"><div dir=3D"ltr"><div dir=3D"ltr"><div>Well, you might use core itse=
lf to create a bunch of private keys and legacy transactions.</div><div>Tha=
t will imply you trust core as a golden model for your software, but since =
almost everyone in the network assumes to be bug compatible with core, I do=
n&#39;t see a problem.</div><div><br></div><div>Or am I missing something a=
nd being too simplistic?<br></div></div><br><div class=3D"gmail_quote"></di=
v></div><div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">Em ter., 30 de abr. de 2024 =C3=A0s 09:01, Ali Sherief &lt;=
<a href data-email-masked rel=3D"nofollow">a...@notatether.com</a>&gt; escr=
eveu:<br></div></div></div><div dir=3D"ltr"><div class=3D"gmail_quote"><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<div><br></div><div>I =
am aware that there are tons of raw transactions that can be used for testi=
ng Segwit transaction constructors in BIP143 and also in the tests/ folder =
of the codebase somewhere.</div><div><br></div><div>However, I am having a =
hard time finding reproducible legacy transactions. This is usually for one=
 of two reasons:</div><div><br></div><div>1) Important information for debu=
gging the transaction signing such as the preimage or private key is missin=
g.</div><div>2) The transactions were using OpenSSL to create the signature=
s, which results in them being non-deterministic and useless for tests. As =
opposed to using libsecp256k1.<br><br>So I am just wondering if anybody kno=
ws if there is a place where I can find a bunch of raw legacy transactions,=
 together with private keys, to test my software with.<br><br>-Ali</div>

<p></p></blockquote></div></div><div dir=3D"ltr"><div class=3D"gmail_quote"=
><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border=
-left:1px solid rgb(204,204,204);padding-left:1ex">

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;Bitcoin Development Mailing List&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href data-email-masked rel=3D"nofollow">bitcoindev+...@googlegro=
ups.com</a>.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/bitcoindev/b165f262-e733-46c1-a6f3-328fc8b13288n%40googlegroups.=
com?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank" rel=3D"no=
follow" data-saferedirecturl=3D"https://www.google.com/url?hl=3Den&amp;q=3D=
https://groups.google.com/d/msgid/bitcoindev/b165f262-e733-46c1-a6f3-328fc8=
b13288n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&amp;s=
ource=3Dgmail&amp;ust=3D1714732058678000&amp;usg=3DAOvVaw3NFYndsKxKMo5caJd9=
d25T">https://groups.google.com/d/msgid/bitcoindev/b165f262-e733-46c1-a6f3-=
328fc8b13288n%40googlegroups.com</a>.<br>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><div><div dir=3D"ltr">Edil</div></div></div></div></div>
</blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Bitcoin Development Mailing List&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:bitcoindev+unsubscribe@googlegroups.com">bitcoind=
ev+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/bitcoindev/987e5090-63c3-4db3-bcd2-03e74a17b226n%40googlegroups.=
com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msg=
id/bitcoindev/987e5090-63c3-4db3-bcd2-03e74a17b226n%40googlegroups.com</a>.=
<br />

------=_Part_51290_857222038.1714645782614--

------=_Part_51289_1618634159.1714645782614--