summaryrefslogtreecommitdiff
path: root/b8/b548a478566b948f57f059317e0d70592f00cd
blob: 32027df80b1324e934d1897f28136195304954e7 (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
Delivery-date: Tue, 01 Apr 2025 07:49:14 -0700
Received: from mail-yb1-f185.google.com ([209.85.219.185])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBDI23FE35EIBBX7ZV67QMGQEDX23V6A@googlegroups.com>)
	id 1tzcvR-0002R9-CX
	for bitcoindev@gnusha.org; Tue, 01 Apr 2025 07:49:14 -0700
Received: by mail-yb1-f185.google.com with SMTP id 3f1490d57ef6-e6dee8e8b37sf158492276.2
        for <bitcoindev@gnusha.org>; Tue, 01 Apr 2025 07:49:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1743518947; x=1744123747; 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=+VlC6jLSzCBVhWytbtnhV7bSrN/k52m0QNll6AIBuTA=;
        b=OyqwMK9Tqj93G7kkOBU/+7qTnmE1sV22B49raCbb/1Jm8Y7nOUe4Wg3CADHra5hIYp
         /p2DrIJvsEXfaZk0jvwMV1sxQyPTC03pK2Em2hYA+mV3N4t8gpv9QYrtGGu4uRUzEzdk
         AOYqe387f/bbbX4H81m+eOie6hzBRbXI4Ojeydl9tuhnpyaH3IJmb0qaOlICjZ4eSxYL
         uRFaufw7XqqozqX1Lx2g5is2T0UTKH8Lj05PZwY0UoLPjeyVRIGWTJNBAMWf7yJGnQLf
         hpl8X2D7v2cMhU8VGJQiLks/FdxPuz+eb5G/YX/yghlzR2UUuBW9eqM1Zns03Qrklrkl
         Y2JA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1743518947; x=1744123747; 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:from:to:cc
         :subject:date:message-id:reply-to;
        bh=+VlC6jLSzCBVhWytbtnhV7bSrN/k52m0QNll6AIBuTA=;
        b=RvIkLW94xESGXJXdSbJwyBB9OTfD4Qw858x7F3em86iWBPNmXdloQWdJjMFcbTPCld
         1B/5X9HNFMuFGT+ylrv1rJehFA4wpeZW/LeY46mpF3Iva+QpS20la3JxpUimSwy1zs+1
         JvIVe5kWYz1r6nKLFPkSRHh4LXLd6xDYBech7m0RO+4ytFP1IMujemEDIsBDIHhBMPAR
         lsQzbbFDL9rtJxPlKDS7DFe5Gik2N9hWuUsFDM326nYyKpfQebdz69TSbJi3HlV9f6mh
         FEjwayau9YBR8G3WQnDHChzanzsEg+xcBm8fmz/XOnCYRa9XJbgh54GzrJUsq2coXm8u
         uzSQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1743518947; x=1744123747;
        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=+VlC6jLSzCBVhWytbtnhV7bSrN/k52m0QNll6AIBuTA=;
        b=Z7ZvwNVEwujVCs40jstAybz4Ip7cU1EHCknkzpLuJ+KYwvB5Kw1LBU+N9Yudyje1A9
         y/1VfhXtnhUG1YD3nOXQaFW32ez1QptsZ5AzpgHKISPKdH42d9H/73v4ouzSD53OxI6T
         ytgRUOK+i6nLbRnHwVHJ+LpwVenusVP1JJh41ScNkZEsWOrmb5c/kN2Q7j12RVx3Kb1x
         W91I1bEsfD9Ekz5bptjVwtGC5tdtsemHhcA1qxgoiauETNe9XY3B8M04sIuskS+Mn5qE
         Xq8Q2Icj7OCw8x0BAahWu3uAKAKUq5DHGLpjd+om11h5A9Xa6B/+wk38raYGHeoXgZAn
         QpIQ==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=1; AJvYcCUCITJZWyqPMN0UNAMD/DKdog8wLcCwYxx5yudEDO0F9yPaGuQNwe5/jD9Roc8tfqqXAjTsIIjf1FDQ@gnusha.org
X-Gm-Message-State: AOJu0YwhkVWf9ZbLMYi90U+/C+R5IKEVM3cXg9efRen+YQe8OikAtNKu
	RfxH4kr6VNeT29TxQYHwla+RUxpUPfrnSfA9Rr+XbyPLKj5B0ZRE
X-Google-Smtp-Source: AGHT+IHVf7UQxmnkxPDmG2MUZgEMrKqcnvrKbkYF1ZmX51+gFX3qnAhFF06HQ/zcpmuVKsOwn2il8w==
X-Received: by 2002:a05:6902:2309:b0:e64:9dc:b8a1 with SMTP id 3f1490d57ef6-e6b8391d815mr17123397276.15.1743518947366;
        Tue, 01 Apr 2025 07:49:07 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com; h=ARLLPAKVMZXNsq4b2WkA9qocq2mfr3dLl3Q6Cr8EL5Gv+PlU6Q==
Received: by 2002:a25:3f01:0:b0:e6d:e6df:b3c3 with SMTP id 3f1490d57ef6-e6de6dfb670ls563774276.1.-pod-prod-08-us;
 Tue, 01 Apr 2025 07:49:03 -0700 (PDT)
X-Received: by 2002:a05:690c:4881:b0:6fd:4670:80c6 with SMTP id 00721157ae682-70257327b84mr191615507b3.37.1743518943145;
        Tue, 01 Apr 2025 07:49:03 -0700 (PDT)
Received: by 2002:a05:690c:9a05:b0:6ef:590d:3213 with SMTP id 00721157ae682-70210946374ms7b3;
        Tue, 1 Apr 2025 06:01:45 -0700 (PDT)
X-Received: by 2002:a05:690c:6202:b0:6fd:4072:2c5b with SMTP id 00721157ae682-702572d60b6mr183227907b3.24.1743512504100;
        Tue, 01 Apr 2025 06:01:44 -0700 (PDT)
Date: Tue, 1 Apr 2025 06:01:43 -0700 (PDT)
From: waxwing/ AdamISZ <ekaggata@gmail.com>
To: Bitcoin Development Mailing List <bitcoindev@googlegroups.com>
Message-Id: <c9e7b769-b35f-4e3e-93b3-afdcd9470cd4n@googlegroups.com>
In-Reply-To: <d0044f9c-d974-43ca-9891-64bb60a90f1f@gmail.com>
References: <d0044f9c-d974-43ca-9891-64bb60a90f1f@gmail.com>
Subject: [bitcoindev] Re: secp256k1lab: a Python library for prototyping
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_44020_1279097027.1743512503775"
X-Original-Sender: ekaggata@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 (/)

------=_Part_44020_1279097027.1743512503775
Content-Type: multipart/alternative; 
	boundary="----=_Part_44021_377990646.1743512503775"

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

Thanks for this.

Seems like a great initiative for, as you say, prototyping and education.=
=20
(though iiuc your primary motive was standardising proposal "reference"=20
code).

I'm guessing that things like MuSig2 and/or adaptors would be out of scope=
=20
of this project? (i.e. you are only supplying the foundational ECC=20
operations here.. except you are providing Schnorr signatures). Those are=
=20
things that ate up time for me when I was prototyping stuff (like=20
"pathcoin" for example), hence the Q.

Regards,
AdamISZ/waxwing

On Tuesday, April 1, 2025 at 5:51:37=E2=80=AFAM UTC-3 Jonas Nick wrote:

> Hello list,
>
> We're pleased to announce the initial release of secp256k1lab, an INSECUR=
E
> implementation of the secp256k1 elliptic curve and related cryptographic=
=20
> schemes
> written in Python, intended for prototyping, experimentation and educatio=
n.
>
> https://github.com/secp256k1lab/secp256k1lab
>
> Features:
>
> - Low-level secp256k1 field and group arithmetic.
> - Schnorr signing/verification and key generation according to BIP-340.
> - ECDH key exchange.
>
> We developed secp256k1lab as part of our work on the ChillDKG=20
> work-in-progress
> BIP [0]. It is based on the secp256k1 implementation in the Bitcoin Core=
=20
> test
> framework.
>
> Our goal was to avoid including yet another custom Python implementation=
=20
> of the
> secp256k1 curve in the ChillDKG reference code. Several existing BIPs=20
> (340, 324,
> 327, and 352) already contain custom and sometimes subtly diverging
> implementations of secp256k1. This library aims to provide a single,=20
> consistent
> interface for secp256k1-related cryptographic specifications.
>
> At the moment, secp256k1lab is included in the ChillDKG repository as a=
=20
> subtree.
> It remains an open question what would be the best approach for including=
=20
> ChillDKG
> (with the secp256k1lab dependency) into the bips repository [1].
>
> We welcome your feedback and contributions to this project.
>
> Best regards,
> The current secp256k1lab maintainers: Sebastian Falbesoner, Jonas Nick, T=
im
> Ruffing
>
> [0] https://github.com/BlockstreamResearch/bip-frost-dkg
> [1] https://groups.google.com/g/bitcoindev/c/HE3HSnGTpoQ/m/Y2VhaMCrCAAJ
> (We renamed secp256k1proto to secp256k1lab)
>

--=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/=
c9e7b769-b35f-4e3e-93b3-afdcd9470cd4n%40googlegroups.com.

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

<div>Thanks for this.</div><div><br /></div><div>Seems like a great initiat=
ive for, as you say, prototyping and education. (though iiuc your primary m=
otive was standardising proposal "reference" code).</div><div><br /></div><=
div>I'm guessing that things like MuSig2 and/or adaptors would be out of sc=
ope of this project? (i.e. you are only supplying the foundational ECC oper=
ations here.. except you are providing Schnorr signatures). Those are thing=
s that ate up time for me when I was prototyping stuff (like "pathcoin" for=
 example), hence the Q.</div><div><br /></div><div>Regards,</div><div>AdamI=
SZ/waxwing</div><br /><div class=3D"gmail_quote"><div dir=3D"auto" class=3D=
"gmail_attr">On Tuesday, April 1, 2025 at 5:51:37=E2=80=AFAM UTC-3 Jonas Ni=
ck wrote:<br/></div><blockquote class=3D"gmail_quote" style=3D"margin: 0 0 =
0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hel=
lo list,
<br>
<br>We&#39;re pleased to announce the initial release of secp256k1lab, an I=
NSECURE
<br>implementation of the secp256k1 elliptic curve and related cryptographi=
c schemes
<br>written in Python, intended for prototyping, experimentation and educat=
ion.
<br>
<br><a href=3D"https://github.com/secp256k1lab/secp256k1lab" target=3D"_bla=
nk" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.com/url?hl=
=3Den&amp;q=3Dhttps://github.com/secp256k1lab/secp256k1lab&amp;source=3Dgma=
il&amp;ust=3D1743598589364000&amp;usg=3DAOvVaw30w9CzRVAFj3VnXkU79qQQ">https=
://github.com/secp256k1lab/secp256k1lab</a>
<br>
<br>Features:
<br>
<br>- Low-level secp256k1 field and group arithmetic.
<br>- Schnorr signing/verification and key generation according to BIP-340.
<br>- ECDH key exchange.
<br>
<br>We developed secp256k1lab as part of our work on the ChillDKG work-in-p=
rogress
<br>BIP [0]. It is based on the secp256k1 implementation in the Bitcoin Cor=
e test
<br>framework.
<br>
<br>Our goal was to avoid including yet another custom Python implementatio=
n of the
<br>secp256k1 curve in the ChillDKG reference code. Several existing BIPs (=
340, 324,
<br>327, and 352) already contain custom and sometimes subtly diverging
<br>implementations of secp256k1. This library aims to provide a single, co=
nsistent
<br>interface for secp256k1-related cryptographic specifications.
<br>
<br>At the moment, secp256k1lab is included in the ChillDKG repository as a=
 subtree.
<br>It remains an open question what would be the best approach for includi=
ng ChillDKG
<br>(with the secp256k1lab dependency) into the bips repository [1].
<br>
<br>We welcome your feedback and contributions to this project.
<br>
<br>Best regards,
<br>The current secp256k1lab maintainers: Sebastian Falbesoner, Jonas Nick,=
 Tim
<br>Ruffing
<br>
<br>[0] <a href=3D"https://github.com/BlockstreamResearch/bip-frost-dkg" ta=
rget=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google=
.com/url?hl=3Den&amp;q=3Dhttps://github.com/BlockstreamResearch/bip-frost-d=
kg&amp;source=3Dgmail&amp;ust=3D1743598589364000&amp;usg=3DAOvVaw3TQ72C3b2M=
a-Q-OsCt0r_E">https://github.com/BlockstreamResearch/bip-frost-dkg</a>
<br>[1] <a href=3D"https://groups.google.com/g/bitcoindev/c/HE3HSnGTpoQ/m/Y=
2VhaMCrCAAJ" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"htt=
ps://www.google.com/url?hl=3Den&amp;q=3Dhttps://groups.google.com/g/bitcoin=
dev/c/HE3HSnGTpoQ/m/Y2VhaMCrCAAJ&amp;source=3Dgmail&amp;ust=3D1743598589364=
000&amp;usg=3DAOvVaw2QHHtwASRIyVnSnWd4d9Y0">https://groups.google.com/g/bit=
coindev/c/HE3HSnGTpoQ/m/Y2VhaMCrCAAJ</a>
<br>     (We renamed secp256k1proto to secp256k1lab)
<br></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 visit <a href=3D"https://groups.google.com/d/msgid/=
bitcoindev/c9e7b769-b35f-4e3e-93b3-afdcd9470cd4n%40googlegroups.com?utm_med=
ium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/bitcoind=
ev/c9e7b769-b35f-4e3e-93b3-afdcd9470cd4n%40googlegroups.com</a>.<br />

------=_Part_44021_377990646.1743512503775--

------=_Part_44020_1279097027.1743512503775--