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
|
Delivery-date: Wed, 11 Dec 2024 05:36:53 -0800
Received: from mail-oa1-f56.google.com ([209.85.160.56])
by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
(Exim 4.94.2)
(envelope-from <bitcoindev+bncBDBNTKFG4EDRB3FK425AMGQEYHSMESY@googlegroups.com>)
id 1tLMtY-0008Bl-WF
for bitcoindev@gnusha.org; Wed, 11 Dec 2024 05:36:53 -0800
Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-29e82f6ba5esf7751727fac.2
for <bitcoindev@gnusha.org>; Wed, 11 Dec 2024 05:36:52 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1733924206; cv=pass;
d=google.com; s=arc-20240605;
b=GrkmuN+smJ/Q57QpgvFsLacxWke4r4rV5s54rKKu9BiXeRO9nxVkvDc4E7j7/8QY51
5A0x0FgSsQriuFQqeslC595SRErDiZJY6EvhGWukL0eBbqZPN6QOGRIEKEYMXCGVERI+
FavTk6DBRv77PdUc3Wm++HI9EI0F84kXeSWVRs9ocwbZY8QwoalQUID+r8jJEnOzQZqE
YVBrO1TBbZCbmfCBG4JI3Wun4DjjmYqOsfS9erLyAECO5Gxf7d2cYa/9PSokoMRZfxR5
KQ/3OwQsMA3UQbnKdxtBDLYLdU2ImxfEkhh101zebg1V/cZalCKpPUZkjRzSCVTUCZ9J
jNkA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:content-transfer-encoding
:in-reply-to:content-disposition:mime-version:references:message-id
:subject:cc:to:from:date:sender:dkim-signature;
bh=VIECMUiCkJcxlWkDn+CFEIhb1DPkFd3D1ediXsFzwYo=;
fh=7qpdi0fGEoIJrrA2LkjqUSsCdJkNLBWDUNKyKIqoTbs=;
b=lMNhZPtHUbSwO41pbw9gUJ5fU780AZUkpimpkSqESliSs2kLZci+UL448NGKXL4AwO
21T4lWNK/83xff3I3Ha4zo74RVyakpPpCKEjTeN6sLjb9m/m+9t88/FnPY9qyLePjElb
vGBBsh9CtsUxFF5ciK+0ErAp5l4kDXy/9u8A71mTI9+XFmYA/wks496fOA8mJ/3LdwXc
kEWkcAGKtAjDx0i7dSgHtlZJ/TmNJck/0oYES2R2a2M/boc3E4MX571kCiNxWD20F/88
ZTx4sNwTcpa8uwZcSGhzJ6LhYkLmluMZJBq4MXlkkzgdMK4hs9YrIlIkA2oxE0oirfkw
EEdA==;
darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
spf=pass (google.com: domain of aj@erisian.com.au designates 172.104.61.193 as permitted sender) smtp.mailfrom=aj@erisian.com.au
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlegroups.com; s=20230601; t=1733924206; x=1734529006; darn=gnusha.org;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:content-transfer-encoding
:x-original-authentication-results:x-original-sender:in-reply-to
:content-disposition:mime-version:references:message-id:subject:cc
:to:from:date:sender:from:to:cc:subject:date:message-id:reply-to;
bh=VIECMUiCkJcxlWkDn+CFEIhb1DPkFd3D1ediXsFzwYo=;
b=MzVr/guAlWSEBjk/2QUtwnTyYexy+Nbzktkfw3B6NVZgnwlrunz23It46sEb22N7z8
y852Qu5dQ6pGQTfgDuJ9ESOEcN8kj5PSlesATlfrcXU1t8C9OLL40xh/+qdwjCfpBKes
RUrWZkmLj+nZQVFgw7ShfCenrrQLrDPKnq2THZdw7EgyzZqVBsoJCBYKqjkcbimVUY3W
BQRpUe30VBQ1lsFOCD/7kEKnbnO8STy7h4L+LBsxY0FE+PWowRgBvu4ZwFmR3FJEf64w
M5nNFFrADRp38/hTas/CnlG6uk4CtworqMkePtRR/H5luQbREY57N1y3VaA/DbN3sltq
pzuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1733924206; x=1734529006;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:content-transfer-encoding
:x-original-authentication-results:x-original-sender:in-reply-to
:content-disposition:mime-version:references:message-id:subject:cc
:to:from:date:x-beenthere:x-gm-message-state:sender:from:to:cc
:subject:date:message-id:reply-to;
bh=VIECMUiCkJcxlWkDn+CFEIhb1DPkFd3D1ediXsFzwYo=;
b=Lvfm3D3az4Z1kj5Cfog0ska298DNwdmxBKFbg5o8Yzyv0KizlU0nPzNXy0xTJsYiRc
f4652nKTdc/YWzg6iA82ULD25S1kkdwAkxxN04F+8Px0WlfqpKMhC+mOWAMABn7wpuAv
yzZ92Ep55aJIqCiS7I9YlmmYteKYSOmtQGBTuUL4/oePg7n6FyAYRmxrAp6NP68WXjuy
r/kkHT4q8DqDSHRW6fSjPCCL82f9ew6k7kz+Ru9DxwO6NBuMRKve+f/fzGgZVJB964fi
tnPt0JXq8CsXQcxn+ecc4w+E40AiwaK6Dxdntc1yicPW4bMc0fHi+rpdyM0+yhcF/Gqh
aZ6Q==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=2; AJvYcCUH+D2ZcSNsdjs9OGrx4vmhI5lo6geR814Et1pd5KfEeVy4uRX5hpBQOT1tizFzBvYPSbcVllFnhJcX@gnusha.org
X-Gm-Message-State: AOJu0YzNnxBPabIHOqWlaVMi1Oao3Y6eAc94Khme7blZVrCRKScMPX+L
lWiRbi7C2sLy3rG0Y7zVyp3+IRSmXOKAhKpL6J1zfgE9oOd7Wq7i
X-Google-Smtp-Source: AGHT+IGO0DLZAyVqGQgXtJySq2mkQbI68HKLDs/mDRptcLHS4ySc6GJVGYGGz2fLKN8Q/1p6cA6+pg==
X-Received: by 2002:a05:6870:e0d2:b0:29e:2d18:2718 with SMTP id 586e51a60fabf-2a012db3eedmr1427018fac.28.1733924206511;
Wed, 11 Dec 2024 05:36:46 -0800 (PST)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a05:6871:a215:b0:29f:cd6a:5ded with SMTP id
586e51a60fabf-29fcd6a5fd6ls1191226fac.0.-pod-prod-07-us; Wed, 11 Dec 2024
05:36:44 -0800 (PST)
X-Received: by 2002:aca:914:0:b0:3eb:8e5c:a563 with SMTP id 5614622812f47-3eb8e5ca6eemr537049b6e.42.1733924204094;
Wed, 11 Dec 2024 05:36:44 -0800 (PST)
Received: by 2002:a54:4585:0:b0:3ea:54d0:9259 with SMTP id 5614622812f47-3eb849f8112msb6e;
Wed, 11 Dec 2024 05:28:53 -0800 (PST)
X-Received: by 2002:a17:90a:c10f:b0:2ee:44ec:e524 with SMTP id 98e67ed59e1d1-2f12804c601mr4332792a91.35.1733923732134;
Wed, 11 Dec 2024 05:28:52 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1733923732; cv=none;
d=google.com; s=arc-20240605;
b=PPI0ziCjv8lwd+rODhPIV9cr7+fpQNcEtx8cJZpOS0HC3CQQhNX2WnItuEYrQvpBQY
F1w6Z4KWPwGlEqJFNqv8B+5AARb9eP5rHDJHtowtq8lriNHcBoqR8nisTfm6l/naiNRP
wMwFGUk0WCtRKrPpJ3N5bC47/TrMLEdim+LoqNH+jkWXpUro+c9Z75P5Zs/g3Vev7Uz4
6scLbaN9kePr6/meQCW1+jzSoj59DJuS++D2i2prIe8lKpbx0+2PA7kvjDCyxc+GjWU4
HSaPIsnYYFzpaEMNVRN7uQKsxxTiAgM0p1ZwEEZldJLxtIxbuG4j1fMRm4hGdrQlT6VB
WhvA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;
h=in-reply-to:content-disposition:mime-version:references:message-id
:subject:cc:to:from:date;
bh=wpFUUs8FmXd35d+rIOjhryn1SGbYZWIay5YsCDHg0Jo=;
fh=0Bf8Ni34T2XO/uRpNwBN18lccMSbp9N/tGUNP10ZWls=;
b=L53uL8UHq2C9+ZsKPIMeHEP5V5gu6bTG/Agei/BPCuEYsVrpIZOEP590znLd1a8O5u
B0ocfddhdlgsVoCeeEL6NB0ssf3D78ZQUvELb3tWOilTyu8BHFO6aVXFt94zvHJTZL1X
Ex/li1V+TB/l05SZ33z8hhwS5RnmizS4mxUq3tSE3WR4ANZbT0uvFyAazU1c2IMTro77
GGJvOzeFyi3APc97Ig0GPybrOK9hsj8FjzGxZzjdGGRjVMa70l3aKsdIteQMp2w2Wm5k
5fRfbVwJd99hjp4MUgCQ3oEIqJLX3R1s9VKp+eGGahPJ5qcRU04YY2v3aEK3l77jatMI
BQaw==;
dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
spf=pass (google.com: domain of aj@erisian.com.au designates 172.104.61.193 as permitted sender) smtp.mailfrom=aj@erisian.com.au
Received: from cerulean.erisian.com.au (azure.erisian.com.au. [172.104.61.193])
by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2f12cd12927si60883a91.1.2024.12.11.05.28.51
for <bitcoindev@googlegroups.com>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 11 Dec 2024 05:28:51 -0800 (PST)
Received-SPF: pass (google.com: domain of aj@erisian.com.au designates 172.104.61.193 as permitted sender) client-ip=172.104.61.193;
Received: from aj@azure.erisian.com.au
by cerulean.erisian.com.au with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
(Exim 4.94.2)
(envelope-from <aj@erisian.com.au>)
id 1tLMli-0004VV-FF; Wed, 11 Dec 2024 23:28:48 +1000
Received: by email (sSMTP sendmail emulation); Wed, 11 Dec 2024 23:28:42 +1000
Date: Wed, 11 Dec 2024 23:28:42 +1000
From: Anthony Towns <aj@erisian.com.au>
To: Brandon Black <freedom@reardencode.com>
Cc: bitcoindev@googlegroups.com
Subject: Re: [bitcoindev] Covenants Support - Bitcoin Wiki
Message-ID: <Z1mTiguyy5waz4Vg@erisian.com.au>
References: <028c0197-5c45-4929-83a9-cfe7c87d17f4n@googlegroups.com>
<941b8c22-0b2c-4734-af87-00f034d79e2e@gmail.com>
<Z1dPfjDwioa/DXzp@erisian.com.au>
<Z1dW77h3rhr5oivP@console>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
In-Reply-To: <Z1dW77h3rhr5oivP@console>
X-Spam_score: -0.0
X-Spam_bar: /
X-Original-Sender: aj@erisian.com.au
X-Original-Authentication-Results: gmr-mx.google.com; spf=pass
(google.com: domain of aj@erisian.com.au designates 172.104.61.193 as
permitted sender) smtp.mailfrom=aj@erisian.com.au
Content-Transfer-Encoding: quoted-printable
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.8 (/)
On Mon, Dec 09, 2024 at 12:45:35PM -0800, Brandon Black wrote:
> First, my example scripts for Lightning Symmetry all use opcodes that do
> not exist in the script testing environments so I cannot run my scripts
> through those environments.
You've implemented your code against bitcoin inquisition 27.x [0],
which already includes an "evalscript" subcommand [1] that allows you
to do precisely that, even without updating the functional test suite
so that CI passes. So, yes, you can run your scripts through testing
environments.
You can also easily tweak your scripts to run them through unmodified
testing environments to at least ensure you aren't making trivial errors
and to check the stack is working the way you think it should -- replace
the new commands with OP_NOP (for things like CTV) or OP_2DROP OP_VERIFY
(for things like CHECKSIGVERIFY, where an empty signature would fail,
and there are two other arguments to ignore).
> The fact that I misglanced the opcode list
> during drafting is completely irrelevant to the exercise.
That you made a mistake is perhaps excusable, though as someone proposing
to modify the script language, being more than glancingly familiar with
script as it is today seems like a pretty basic expectation. That you
didn't put your work through even the most basic testing cycle before
publicising it isn't so excusable. [2]
It's utterly astounding to me that you're publicising your project
as "lnhance" [3] and yet are willing to be that careless in your
demonstrations of how it might enhance the lightning network.
Cheers,
aj
[0] https://github.com/bitcoin-inquisition/bitcoin/pull/45
[1] https://github.com/bitcoin-inquisition/bitcoin/pull/58
[2] For instance, I made a claim above that you can use evalscript
with your inquisition pr. That's something that I should test,
and when I do, it turns out there's a line that needs fixing to
make that work. Here's what it looks like after that's done,
checking the first entry in the bip340 test vectors:
```
$ ./bitcoin-util -sigversion=3Dtapscript -script_flags=3DCHECKSIGFROMST=
ACK evalscript '0x200000000000000000000000000000000000000000000000000000000=
000000000 0x20F9308A019258C31049344F85F89D5229B531C845836F99B08601F113BCE03=
6F9 CHECKSIGFROMSTACK' E907831F80848D1069A5371B402410364BDF1C5F8307B0084C55=
F1CE2DCA821525F66A4A85EA8B71E482A74F382D2CE5EBEEE8FDB2172F477DF4900D310536C=
0
{
"script": {
"asm": "00000000000000000000000000000000000000000000000000000000000=
00000 f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9 OP_C=
HECKSIGFROMSTACK",
"hex": "20000000000000000000000000000000000000000000000000000000000=
000000020f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9cc=
",
"type": "nonstandard"
},
"sigversion": "tapscript",
"script_flags": [
"CHECKSIGFROMSTACK"
],
"stack-after": [
"01"
],
"sigop-count": 0,
"success": true
}
```
[3] https://www.lnhance.org/#team
--=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 visit https://groups.google.com/d/msgid/bitcoindev/=
Z1mTiguyy5waz4Vg%40erisian.com.au.
|