summaryrefslogtreecommitdiff
path: root/8a/798934c3245e6617e73a6ff38efa14874f835b
blob: f1898e7e2799c13f2a0c09d98a739e19ce92fb1e (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
Delivery-date: Wed, 21 Aug 2024 07:41:49 -0700
Received: from mail-oo1-f62.google.com ([209.85.161.62])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBAABBJPZS63AMGQEITZ4V2I@googlegroups.com>)
	id 1sgmWz-0007La-07
	for bitcoindev@gnusha.org; Wed, 21 Aug 2024 07:41:49 -0700
Received: by mail-oo1-f62.google.com with SMTP id 006d021491bc7-5d5c7700d4esf6347910eaf.2
        for <bitcoindev@gnusha.org>; Wed, 21 Aug 2024 07:41:48 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1724251303; cv=pass;
        d=google.com; s=arc-20160816;
        b=byNNoTnQbTmi3GtUz66BnAZUDoNf0Eh7M3eQnoo2e3WlxS9nE2jykXiI7YxAzFvMUg
         +MjYtyfnx0fpsw8YReQKpwFeUBhTC7oft/u8iWezgOTCHMbS9sxjYsbq9Jx2O3+0vNnY
         OTdc2Ul82hjtWB3VMdqF6pqKgu+WeHWkNFI1ynjw1mUOHAIQq2HjQ6ldgL/gwyshA/sy
         I21FUfrqvyEXJfjcUibGh/07PefosGP37xQvtpc5EOX0hWUY+O+u7ezBUpT33tFBICvY
         TxJiNQFVkMs9ZXsIA6SPGFxBqOZ5gWrsQ2TTg+mEZB62way48xYecwBoqyzHIQuYoEVN
         CrUQ==
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:in-reply-to:from:content-language
         :references:cc:to:subject:mime-version:date:message-id:sender
         :dkim-signature;
        bh=DbBAUtaSK5HI4AeOn0kBHs6cdYIfKoRNMeR5nfXxjZE=;
        fh=GV1HeUzs2jwPA1HzdSLrube6XsKU1M3LXzS3hSXjQvE=;
        b=Df5peCqnZDY+IQmPGM+NtHyu5uca45jhuOoLvYagQ05TM2Vkp/VickcoGKaGV1b4W6
         mkKAFB+tnTTz3KMVfEcqDSGejvHu0B7lRMxc7LOoLE63945bdOt0o8XJvapQVUOvX2mi
         DdwnlCSeNoCUAH/pc+m4QHJlyN/rWcS+8C2SPXDNCjp+CSpOUorVfNeQdVsR8GEWPjob
         AmJT9WLnQPPZDWEWi7KtP9D4ChQlUd79rnkhgZSvLgTcv9oQrcozJx7OBarlq/UdnVhJ
         NZYzTnmjkYhdvr2nrvphCb7cez3zRLIeLnbfrT4+vAwH3uakLoLPCX4xR2Xkd92SUsdO
         gMPw==;
        darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@mattcorallo.com header.s=1724248862 header.b=Gcvvjh3G;
       dkim=pass header.i=@clients.mail.as397444.net header.s=1724248864 header.b=G8yjka8u;
       spf=pass (google.com: domain of lf-lists@mattcorallo.com designates 69.59.18.99 as permitted sender) smtp.mailfrom=lf-lists@mattcorallo.com;
       dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=mattcorallo.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1724251303; x=1724856103; 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:in-reply-to:from:content-language:references:cc
         :to:subject:mime-version:date:message-id:sender:from:to:cc:subject
         :date:message-id:reply-to;
        bh=DbBAUtaSK5HI4AeOn0kBHs6cdYIfKoRNMeR5nfXxjZE=;
        b=CWWJqdEua+M3NsGJygfYh6y9HTyTOcg0KYqSNp+Wz5F9GlR75JxBib6LxNQ0BMeAf2
         NJKPZ+tYFnvWMiyGzhuBFSHskXUYobEzl5De4bNkAcgOg6tZZbSvVDHdhqwqbRHQgibD
         yT/Rxc5RBH9g6XHcTsHFb7kdeUR/ddIrh3lGHaezASXLp1zuW1cSDhWkpA8dPJHavxZN
         bhu5ahQZm/9cRrs3iomYrv0zDrEjP/21EgSjRAXmxw+ovGTPtORdwiTg7G97fUSwQRKh
         42/nYfnWBF29DhuDC/Y6eTYZxeqlgOZsKgZeDq/zpG75NlwTv4D/NEvCwQfANIyfQvJu
         ng1A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1724251303; x=1724856103;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:in-reply-to:from:content-language:references:cc
         :to:subject:mime-version:date:message-id:x-beenthere
         :x-gm-message-state:sender:from:to:cc:subject:date:message-id
         :reply-to;
        bh=DbBAUtaSK5HI4AeOn0kBHs6cdYIfKoRNMeR5nfXxjZE=;
        b=H66qWwQUFpWLEbuoUHmMlH5gPg2nfwqtixI1jGFt3j0Dd2XbiU7wRE96NfVbdOdLMm
         ZA7dN0rxF3Zq0Ydal9uuVgPfmETqs/jUEjFSeod5N41YSmdXjmhY71QwzwHSymIWJBB8
         b5fPNvLfCg96ZaAgC4n+34mxf1iHtDYQe18VnDkJ1j7Zhl14Br94InuKLhzcysRmS1ql
         o7cakXWfs7Fsa2XWFros1JE9E2S/oA/vmk04EjLDChQ0c+pQKBMNKEoGGXSWKc5GF6Ic
         eFEAmBa1N8/lNXs75JWJ7gSsO8FYpW1JJjo2DBKZvFtIkHaCj6vLTzTpaBQskrTsa+cG
         SiNw==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=2; AJvYcCW5JIofooMSIGZlrx0W0eyWt483it3q28DwX0pS8k/FRafCHZ+Rk6hX/mpF6eS6UTfekG7JuNAkLwEx@gnusha.org
X-Gm-Message-State: AOJu0YwBZNh/7VgysNHbXFS97kOTcl3YXiAQqNK3XXJiFasqutmbHomL
	Oe00tvzog1HjagYdIWqiaMu71xBa/frHc8marD5GXaK9Im/YPC8X
X-Google-Smtp-Source: AGHT+IEe8YvZfbYXrnYi7pAg/JzAgD4kHxzAtJKKuSwif4xQ/zy96cHIU7BOlOP5/UN6p1sa5wipsg==
X-Received: by 2002:a05:6820:2203:b0:5c6:9320:53a3 with SMTP id 006d021491bc7-5dca05b999bmr3144563eaf.4.1724251302603;
        Wed, 21 Aug 2024 07:41:42 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a4a:685:0:b0:5d6:4df:442e with SMTP id 006d021491bc7-5da8882628els6359465eaf.0.-pod-prod-08-us;
 Wed, 21 Aug 2024 07:41:41 -0700 (PDT)
X-Received: by 2002:a05:6808:1294:b0:3d9:3649:9087 with SMTP id 5614622812f47-3de195ed2d1mr3324570b6e.41.1724251300935;
        Wed, 21 Aug 2024 07:41:40 -0700 (PDT)
Received: by 2002:a05:6808:3313:b0:3d9:2ea5:e56e with SMTP id 5614622812f47-3de1a7ca933msb6e;
        Wed, 21 Aug 2024 07:28:39 -0700 (PDT)
X-Received: by 2002:a05:6a21:3995:b0:1ca:9ca3:2e84 with SMTP id adf61e73a8af0-1cad7f89c1bmr3593000637.12.1724250517867;
        Wed, 21 Aug 2024 07:28:37 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1724250517; cv=none;
        d=google.com; s=arc-20160816;
        b=bIiIQYhZekc9ExkBJVLt+hUtHJgPinnCOpPEsN0k7TGKa3gfvATjpc1RQmkMYxVgGe
         tRYLYKfNCY34W3q6aIfomKSqWI1fjnESrmpM9mEkr9bTGG1nQy+h37aXj9G9ZFw3cJYG
         jA8ua05kX0YJMvJyqtx+wJfVBMrJ5lpEItr//xnVzMp9agNfRgaBjY+868ju1NSE3hV9
         FolGRLkPrDJDLVj+DdH7cU/VQ2ciVOVOUv4B5i+ou/nkZCY8Zbv1eEV+wejFtucUwXtm
         RgHaUUo8BvnHxWEy/4ZTRT3ZNnGLLQfyo1BIHTdvmWpiuXjU0zhhXRT+P28IOvr5RHGw
         BCZQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:in-reply-to:from:content-language
         :references:cc:to:subject:mime-version:date:message-id
         :dkim-signature:dkim-signature;
        bh=xwM1AHHTvWRNtnCaXVx1CCAN6D4QNue+29cdtT276v0=;
        fh=ZhIePvtzD2qBgm9PadABf9spV2moFvlPRwwE8o08T1o=;
        b=j0+wEazoS0+75iz1x8fwK6+rQ+9v8rxsqlCOSRghtq68YfUE9c8TZeSTXtx2Bkk8AS
         VQJABcq8go6LYHTD5uv4Kf1DdTTC0bGM0vPNJWT6syRUXCDyfawYHqGYpsRtRLexUu0d
         h4tuA1DtmgXVMwWJTBgLMcwaDhs+vvRkKQdIBdo3BINQXOls16d2sE6zWX3JeaYyhxEZ
         /Uo77VymoBfd8bVGUdat7yAfSH8V7qJyGSdsh7/1BHKnWWznmN3Y2IznRx3sU4aQVgTm
         CSzWL6I736lPqAMSqwnVuQOAzQGZAMEzmTpaZUFaiMJDB13pvZkA3iUN8CKefQVBSvND
         /TXg==;
        dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@mattcorallo.com header.s=1724248862 header.b=Gcvvjh3G;
       dkim=pass header.i=@clients.mail.as397444.net header.s=1724248864 header.b=G8yjka8u;
       spf=pass (google.com: domain of lf-lists@mattcorallo.com designates 69.59.18.99 as permitted sender) smtp.mailfrom=lf-lists@mattcorallo.com;
       dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=mattcorallo.com
Received: from mail.as397444.net (mail.as397444.net. [69.59.18.99])
        by gmr-mx.google.com with ESMTPS id d2e1a72fcca58-7142e5a4d50si20166b3a.0.2024.08.21.07.28.37
        for <bitcoindev@googlegroups.com>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Wed, 21 Aug 2024 07:28:37 -0700 (PDT)
Received-SPF: pass (google.com: domain of lf-lists@mattcorallo.com designates 69.59.18.99 as permitted sender) client-ip=69.59.18.99;
X-DKIM-Note: Keys used to sign are likely public at
X-DKIM-Note: https://as397444.net/dkim/mattcorallo.com and
X-DKIM-Note: https://as397444.net/dkim/clients.mail.as397444.net
X-DKIM-Note: For more info, see https://as397444.net/dkim/
Received: by mail.as397444.net with esmtpsa (TLS1.3) (Exim)
	(envelope-from <lf-lists@mattcorallo.com>)
	id 1sgmKC-004voi-21;
	Wed, 21 Aug 2024 14:28:36 +0000
Message-ID: <c6f1dbbd-f4a3-4783-9e5a-6a64e82fc268@mattcorallo.com>
Date: Wed, 21 Aug 2024 10:28:35 -0400
MIME-Version: 1.0
Subject: Re: [bitcoindev] Mining pools, stratumv2 and oblivious shares
To: Anthony Towns <aj@erisian.com.au>
Cc: bitcoindev@googlegroups.com
References: <Zp/GADXa8J146Qqn@erisian.com.au>
 <26322ee8-08e6-4718-8d1c-60bca8c13c6a@mattcorallo.com>
 <Zr61M64kQlYIBuzO@erisian.com.au>
Content-Language: en-US
From: Matt Corallo <lf-lists@mattcorallo.com>
In-Reply-To: <Zr61M64kQlYIBuzO@erisian.com.au>
Content-Type: text/plain; charset="UTF-8"; format=flowed
X-Original-Sender: lf-lists@mattcorallo.com
X-Original-Authentication-Results: gmr-mx.google.com;       dkim=pass
 header.i=@mattcorallo.com header.s=1724248862 header.b=Gcvvjh3G;
       dkim=pass header.i=@clients.mail.as397444.net header.s=1724248864
 header.b=G8yjka8u;       spf=pass (google.com: domain of lf-lists@mattcorallo.com
 designates 69.59.18.99 as permitted sender) smtp.mailfrom=lf-lists@mattcorallo.com;
       dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=mattcorallo.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.8 (/)



On 8/15/24 10:10 PM, Anthony Towns wrote:
> On Tue, Aug 13, 2024 at 09:57:06AM -0400, Matt Corallo wrote:
> The only way you can do statistical analyses is if miners (including
> attackers) can be assigned a persistent identity with reasonable accuracy,
> and you restrict your pool to accepting individual miners with a large
> enough hashrate that they're expected to find a valid block relatively
> frequently.

Yep.

-snip-

> As far as I can see that means your pool is either:
> 
>   a) heavily KYCed
>   b) limited to high-hashrate miners
>   c) fully validating every share
>   d) vulnerable to block-withholding attacks, and hence not viable in
>      the long term in a competitive environment
> 
> Of those, "fully validating every share" seems the most appealing option
> to me, but in practical terms, that seems incompatible with "any miner
> can freely choose the txs they work on". In practice, of course, (a)
> and (b) will presumably be the reality for the forseeable future for
> all but a fairly trivial amount of hashrate.

Except "fully validating every share" doesn't change anything. You totally missed the point that 
both I and Luke raised - you can fully validate every share, or not, but either way block 
withholding requires some kind of statistical analysis to detect, subject to the limitations you raise.

>> Adding more explicit "negotiation" to Stratum V2 work selection would defeat
>> the purpose - if the pool is able to tell a miner not to work on some work
>> it wants to, ...
> 
> A pool is always able to do that -- they can simply mark the share as
> invalid after the fact and refuse to pay out on it, and perhaps make
> a blog post explaining their policy. The over-the-wire protocol isn't
> what provides that ability.

A pool can decline to pay out, yes, but the miner will still work on that block. The point of custom 
work selection is that the miner will *always* work on the block they want, no matter what. And if 
they mind it, they broadcast it directly themselves. Anything else would defeat the point.

A pool can send their users an email and ask them to change the rules of what they mine on, but it 
then requires an active action taken by the miner to change what they want to mine on.

>> The only
>> way any kind of centralized pooling with custom work selection adds any
>> value to Bitcoin's decentralization is if the clients insist on mining the
>> work they want to - whether on the pool or solo mining if the pool doesn't
>> want it.
> 
> If you're really expecting miners are going to be constantly telling
> their pool "do exactly what I want or I solo mine", I think you're pretty
> likely to be disappointed by whatever the future holds... By its nature,
> solo mining is something that can only be done profitably by relatively
> few players at any given time; it's only potentially decentralised if the
> total market for Bitcoin ownership/usage is itself very small.

You're totally missing the point that pools can just...pay out properly? Or if they don't people 
will create new pools that do? Not sure why you think that's a far-fetched outcome.

Matt

-- 
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/c6f1dbbd-f4a3-4783-9e5a-6a64e82fc268%40mattcorallo.com.