summaryrefslogtreecommitdiff
path: root/56/d78e299a56adcf27619d850f5bed2d88520660
blob: 7db969c39ed3330af6b593d362ff9356e4d77855 (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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
Delivery-date: Tue, 30 Apr 2024 06:32:10 -0700
Received: from mail-oa1-f57.google.com ([209.85.160.57])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBC5ZLBHZ54FRBUXFYOYQMGQEETCCMMY@googlegroups.com>)
	id 1s1nab-0006Vd-VI
	for bitcoindev@gnusha.org; Tue, 30 Apr 2024 06:32:10 -0700
Received: by mail-oa1-f57.google.com with SMTP id 586e51a60fabf-23d18580177sf858194fac.0
        for <bitcoindev@gnusha.org>; Tue, 30 Apr 2024 06:32:09 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1714483924; cv=pass;
        d=google.com; s=arc-20160816;
        b=BCHbX2upTTtg5hCxB+//VEb7dLHM6STvePH6nUYBCGNDOJ+sPok8q+6M6gCFD4nEwE
         TS1P49Oo/NMmScY5aAo15xjaT5xko1SlrmMYP1sr6wPUEYg3frF6JSxpA9vGKot6Bb9g
         MZq1HGgf81D/RIU7m4Q0GB7JjEcQARHmhRCxrCqhl464fe2D0WV2j+6P39tadQTiSKno
         SsYcx2nWQ2ctVv2MFbTunljNaUji+4XUS035uLNSys90h6NL96WG1uKcJqZjK7Zz6935
         aDO4L4KrW9ZEQdLscsaht6xtSpAu3LONlbsIVw9cvLe/8DrsQlBwSFE30MAZW6BGqefp
         MsKA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:sender:dkim-signature
         :dkim-signature;
        bh=haFchGBT8ABvq/FPxwJtBh2KO8WpnnD0kiVfI1cg71o=;
        fh=KQ9YuVN3iKfg3We0UA2XpjiZHGhNVPjkwQZlukUUgQU=;
        b=oQgd+2+xTRS0NkY3eKEtryVGIIPV6sPwqhopR5bhvK678InmylWXEAI49Zr00Zbcvm
         BWLFo8zBhJzDEsSX+cQzRRmUeySMoFyQvHoeS/LubXKAJgbEcn4dp6tOmmqO9cUrpb9o
         xt5cgV+qp4dFE8HOkYlmAbg97ituSiC1ANIGh7JPIxm6CoGaNxcKJfYSMm07dhfkg9+n
         xvNNKClh49Q48u/IkUXNskaxEknLTobK45Xersx0I8EEFHS0Ol8SzdHPPzbGUwkapCJt
         NkkCznEyvLWtHbFY3z5A4ccMvbMSYxEvYBy7SOlLaa90yal8Z86ThvrHk+LuO5x+0JKs
         Pjkw==;
        darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20230601 header.b=hgxsJtz6;
       spf=pass (google.com: domain of jose.edil@gmail.com designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=jose.edil@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1714483924; x=1715088724; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:sender:from:to:cc:subject:date:message-id
         :reply-to;
        bh=haFchGBT8ABvq/FPxwJtBh2KO8WpnnD0kiVfI1cg71o=;
        b=AYD0NhC8/F4RYGjGJgFNIgKQcC+2b9LyJLneNUfIARHk7gXw1TMq4mcM2SpUqiDbON
         tWZxD8rDI6t19rcIw+9paAhrbsYY5nueuOSVsG9jeG8FUAbscGyskESYwn9VdNGvPyJN
         GvlC1rygCSrhzIQI68TNQyUyvL3we4zcmpcbaX1//1L/NamKQIQJ5u0IVtK5ODWFHdfz
         lFea7MIcVzkD4fZaJDE3hp+gRbhyNloxcbfrVL2R1W3TZdpQYFVrwWCgE15Wevj5k/Bg
         R0e0bj5okKu0PUhPrnpcE47QFMuFLd+YGSQGem07yAABZpvzi5mqnhlpVOZoCx2DWv4G
         xegQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1714483924; x=1715088724; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:from:to:cc:subject:date:message-id:reply-to;
        bh=haFchGBT8ABvq/FPxwJtBh2KO8WpnnD0kiVfI1cg71o=;
        b=lTDGrKbMzlW0X00rIemZQnBLUQbSF8R6XKNO6PIEt8AzNfGhaF1RBDIm06TMf9x01G
         4oQ7zZ+08dr1197+ay47qh5aFxmBlIYWzg/BuRfEi/1ZMh+0S1worX1cc9P8W4um27gq
         sIIM2FpuImlPxZZxyQnXuhmENgVrClRlifdOhR0dqBb4lwQbUGkPLdUj8g/JM/0LrL09
         I90WTHErjK/+6f2ca3LkBlEmPRRVgNZ+nWnr7rGwiWaY4ZALHy9zzDIPOG1rVLs3cnYQ
         ZEwt/1i/GrqICvteXxilkuSXzaxPnegpUzY0AzpMSV+qMYxen3thYlwmDS3t7Ia9Ca1/
         7BWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1714483924; x=1715088724;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:x-beenthere:x-gm-message-state:sender:from
         :to:cc:subject:date:message-id:reply-to;
        bh=haFchGBT8ABvq/FPxwJtBh2KO8WpnnD0kiVfI1cg71o=;
        b=qFwjJgyu9Te2V4wMprQomZwkBLIdc9EiZP01sXDXNR8otjdyphoD/aA8W3luvVrjmS
         0TWTCWqdzWDIufFlPfF6AZy6ICVBA1RVGUplpuM68AOAz8czA9eTHyLy71mW5vXzrMNa
         9kYYxAhxmQBL9AhZhfLrvsvhdogjmeYWL1aVAQ9hZjvDOIQE8yBJzF5irrkrG28dNt0v
         Uh/z1b7LH3pXan+jflHl62yiBiGEkICNXNRdh6E7hMSib0Ob0e7Zeb7eJukXfBSwIRL/
         QyssO2d+/EPnpmEtNK8QzsAq9p3iP2T+ApRC5PocUi+TmfXQpnxt9i3nTH9YFfpSr+4F
         TNqQ==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=2; AJvYcCWIgTO5bV8O7qO38kVjy65ypRQ+AAQO/XvSiGZehCCAv7DVPDmA8OIlu7Eup28k7GX5k1rdcSYfQApe+Yk3eCPXXh1lKjI=
X-Gm-Message-State: AOJu0YxjS7aKIrBNBlsKKVkM6Crd4XAGazDB4E7Lm8qD2HUf7PreR8/C
	7dVQEHTqpU2r5+o4ae5nvxGNchgiiExlpKOV2bb3qutHiYv8tGmu
X-Google-Smtp-Source: AGHT+IG3ga9Ts9jeQFExGCuGdEARMpbJVXFplgvq/EjB8GIA/rYP8oprge4hLHbHA/bipxmskT4zow==
X-Received: by 2002:a05:6870:2481:b0:229:fe6a:8516 with SMTP id s1-20020a056870248100b00229fe6a8516mr17382281oaq.22.1714483923729;
        Tue, 30 Apr 2024 06:32:03 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a05:6214:1c8d:b0:6a0:7a41:267 with SMTP id
 6a1803df08f44-6a09c66def6ls14442036d6.2.-pod-prod-06-us; Tue, 30 Apr 2024
 06:32:02 -0700 (PDT)
X-Received: by 2002:a05:6214:29e7:b0:699:514:303e with SMTP id jv7-20020a05621429e700b006990514303emr609344qvb.3.1714483922357;
        Tue, 30 Apr 2024 06:32:02 -0700 (PDT)
Received: by 2002:a05:620a:2407:b0:790:eff4:844b with SMTP id af79cd13be357-7916dbe7bd3ms85a;
        Tue, 30 Apr 2024 05:48:23 -0700 (PDT)
X-Received: by 2002:a5d:6208:0:b0:346:bb51:c203 with SMTP id y8-20020a5d6208000000b00346bb51c203mr9990898wru.12.1714481301385;
        Tue, 30 Apr 2024 05:48:21 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1714481301; cv=none;
        d=google.com; s=arc-20160816;
        b=Cxvd0By6J0EUvJeOGxBiu/DIcbySU16bWi4ihmCaF/X7ClQuh9e2Q2mrjBGScO8uGL
         mac+y63FVE3eFTOI1P9F+FHP9trj9aErbyAomAd8jX7Q7Fh8Tw2Otp37ZreHiqwrhRMU
         GNZTCd1LNsNKj0tBQCU4w9oY3dqGC/WmivswuzFiKN20a7XOlmxp2FJrRINcAikpHJTX
         3WGvrSYCUta91kTNX2F3Z0rppkywyuq7k+3xKSxTpAa0EW1oazuPDfCqVy4z3IxDVKgc
         dNM9c/DYOJEx243Grr4nAhWr2SpKCktSpzKLJyPol62rDI6FSDyy2mgk5+rv6Zr35Xe8
         D4zg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=cc:to:subject:message-id:date:from:in-reply-to:references
         :mime-version:dkim-signature;
        bh=WhKdW/MonxEuE7OjPMwUe3UVEDZNny3JWRdFZNbSUgI=;
        fh=WYN7eMbqXQmwZ4uV8xmPr2sC9+XglzNcw1njnZGcf6o=;
        b=I6Jcv1WwEzGQnx4gPMPHTTCLdCafo3NLTwEqRp5RaIiwy2g3yR6PoRGOny/7sbWwr1
         yDrv2Jw8SAHdYk4DHGr64S+O022IPGaej/6Dwlu25v/aImI/VWXZej8XipOJYucQvxNS
         7SUIucj/ocjZ9WvR4E0ZiFD/kwm7r91xJwbYC4PKz3dew8l8Vt9X2YCainUy7cqQQBut
         m1rStiXoQIx0Jd3XWPv9darWO6CIZ+o07USDzgry3dIAtLL8urCCwEASdfVvS8wMosSQ
         Egrl3+iP9fNmre/6SPUYqRFuo8cUn8OAjYCcWZgpnWy7vmg+gO6u91zom1k08q5eD7tk
         GIKw==;
        dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20230601 header.b=hgxsJtz6;
       spf=pass (google.com: domain of jose.edil@gmail.com designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=jose.edil@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com. [2a00:1450:4864:20::532])
        by gmr-mx.google.com with ESMTPS id n33-20020a05600c3ba100b0041ac4feb0basi119745wms.0.2024.04.30.05.48.21
        for <bitcoindev@googlegroups.com>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Tue, 30 Apr 2024 05:48:21 -0700 (PDT)
Received-SPF: pass (google.com: domain of jose.edil@gmail.com designates 2a00:1450:4864:20::532 as permitted sender) client-ip=2a00:1450:4864:20::532;
Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-57230faeb81so3365983a12.0
        for <bitcoindev@googlegroups.com>; Tue, 30 Apr 2024 05:48:21 -0700 (PDT)
X-Received: by 2002:a50:d792:0:b0:572:47be:831d with SMTP id
 w18-20020a50d792000000b0057247be831dmr12890951edi.20.1714481300815; Tue, 30
 Apr 2024 05:48:20 -0700 (PDT)
MIME-Version: 1.0
References: <b165f262-e733-46c1-a6f3-328fc8b13288n@googlegroups.com>
In-Reply-To: <b165f262-e733-46c1-a6f3-328fc8b13288n@googlegroups.com>
From: =?UTF-8?Q?Edil_Guimar=C3=A3es_de_Medeiros?= <jose.edil@gmail.com>
Date: Tue, 30 Apr 2024 09:48:09 -0300
Message-ID: <CANJiN3+tCVERL2Px19oDM5P9VGj=kYeoEUxNSrUqVod9N_mVrg@mail.gmail.com>
Subject: Re: [bitcoindev] Test cases for signing legacy inputs in transactions
To: Ali Sherief <ali@notatether.com>
Cc: Bitcoin Development Mailing List <bitcoindev@googlegroups.com>
Content-Type: multipart/alternative; boundary="000000000000e8ca4306174fc894"
X-Original-Sender: jose.edil@gmail.com
X-Original-Authentication-Results: gmr-mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20230601 header.b=hgxsJtz6;       spf=pass
 (google.com: domain of jose.edil@gmail.com designates 2a00:1450:4864:20::532
 as permitted sender) smtp.mailfrom=jose.edil@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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.5 (/)

--000000000000e8ca4306174fc894
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Well, you might use core itself to create a bunch of private keys and
legacy transactions.
That 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 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 <ali@notatether.com>
escreveu:

> Hi all,
>
> I am aware that there are tons of raw transactions that can be used for
> testing Segwit transaction constructors in BIP143 and also in the tests/
> folder of the codebase somewhere.
>
> However, I am having a hard time finding reproducible legacy transactions=
.
> This is usually for one of two reasons:
>
> 1) Important information for debugging the transaction signing such as th=
e
> preimage or private key is missing.
> 2) The transactions were using OpenSSL to create the signatures, which
> results in them being non-deterministic and useless for tests. As opposed
> to using libsecp256k1.
>
> So I am just wondering if anybody knows if there is a place where I can
> find a bunch of raw legacy transactions, together with private keys, to
> test my software with.
>
> -Ali
>
> --
> 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
> email to bitcoindev+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bitcoindev/b165f262-e733-46c1-a6f3-328f=
c8b13288n%40googlegroups.com
> <https://groups.google.com/d/msgid/bitcoindev/b165f262-e733-46c1-a6f3-328=
fc8b13288n%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/CANJiN3%2BtCVERL2Px19oDM5P9VGj%3DkYeoEUxNSrUqVod9N_mVrg%40mail.g=
mail.com.

--000000000000e8ca4306174fc894
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div>Well, you might use core itself to c=
reate a bunch of private keys and legacy transactions.</div><div>That 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 don&#39;t=
 see a problem.</div><div><br></div><div>Or am I missing something and bein=
g too simplistic?<br></div></div><br><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 S=
herief &lt;<a href=3D"mailto:ali@notatether.com">ali@notatether.com</a>&gt;=
 escreveu:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi al=
l,<div><br></div><div>I am aware that there are tons of raw transactions th=
at can be used for testing Segwit transaction constructors in BIP143 and al=
so 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) Import=
ant information for debugging the transaction signing such as the preimage =
or private key is missing.</div><div>2) The transactions were using OpenSSL=
 to create the signatures, which results in them being non-deterministic an=
d useless for tests. As opposed to using libsecp256k1.<br><br>So I am just =
wondering if anybody knows if there is a place where I can find a bunch of =
raw legacy transactions, together with private keys, to test my software wi=
th.<br><br>-Ali</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" target=
=3D"_blank">bitcoindev+unsubscribe@googlegroups.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">https://g=
roups.google.com/d/msgid/bitcoindev/b165f262-e733-46c1-a6f3-328fc8b13288n%4=
0googlegroups.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>

<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/CANJiN3%2BtCVERL2Px19oDM5P9VGj%3DkYeoEUxNSrUqVod9N_mV=
rg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.=
google.com/d/msgid/bitcoindev/CANJiN3%2BtCVERL2Px19oDM5P9VGj%3DkYeoEUxNSrUq=
Vod9N_mVrg%40mail.gmail.com</a>.<br />

--000000000000e8ca4306174fc894--