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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
|
Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194]
helo=mx.sourceforge.net)
by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
(envelope-from <pieter.wuille@gmail.com>) id 1Z4wU3-0001VZ-TA
for bitcoin-development@lists.sourceforge.net;
Tue, 16 Jun 2015 19:25:19 +0000
Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com
designates 209.85.213.46 as permitted sender)
client-ip=209.85.213.46; envelope-from=pieter.wuille@gmail.com;
helo=mail-yh0-f46.google.com;
Received: from mail-yh0-f46.google.com ([209.85.213.46])
by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
(Exim 4.76) id 1Z4wU1-0007Sq-Tm
for bitcoin-development@lists.sourceforge.net;
Tue, 16 Jun 2015 19:25:19 +0000
Received: by yhan67 with SMTP id n67so18468602yha.3
for <bitcoin-development@lists.sourceforge.net>;
Tue, 16 Jun 2015 12:25:12 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.13.217.147 with SMTP id b141mr2309296ywe.173.1434482712457;
Tue, 16 Jun 2015 12:25:12 -0700 (PDT)
Received: by 10.37.93.67 with HTTP; Tue, 16 Jun 2015 12:25:12 -0700 (PDT)
Received: by 10.37.93.67 with HTTP; Tue, 16 Jun 2015 12:25:12 -0700 (PDT)
In-Reply-To: <CAPswA9zzKvh6G+NqzTmhrNXMSWOPtZ2DGW2t_2Jrisy8x9m2qw@mail.gmail.com>
References: <CAPswA9w5Sgg6AV=9Pqx5sqbkdrwv9LmwoxmMu7xZsQSNXtmZnQ@mail.gmail.com>
<CAPg+sBjtovFpLoibpVGLsNJXexBcoiYzjrvctraXntCUZBJsGg@mail.gmail.com>
<CAPswA9zhB4GV=JJ28RRLFNrkVwExUv36zujmuAjwPd6rG6rvzQ@mail.gmail.com>
<CALJP9GCBJiofY7k2RJ460CuLuWQunHcx7EcLi1-d07v76Y-E2g@mail.gmail.com>
<CAPswA9wqdbU0z8ydBt+9M0iQX0VSi1ce=dg3fR2_2bx3-vEqzA@mail.gmail.com>
<CAPswA9z_xKY6v9=Ejh=01mZN0QCVo1e0RY1FTzXzS39i3tjgAw@mail.gmail.com>
<CAPswA9xk5QYAXxQ6ES3cnNPeB1FTiiSJgLahLEkSk4CLpoM_QQ@mail.gmail.com>
<CAPg+sBiWykR6RaHhbyYQbL=A5t1TmHgEmS_sC7jj9d3SUTMO9g@mail.gmail.com>
<CAPswA9zycU0pwZKaHU9J3Tvg=ovLJ8TZ9OH6ebTPONaRaiOE8g@mail.gmail.com>
<CAPg+sBhuth22+vAHyS2iwpze8X=-b2wJQ5s1z2FhZ1jsLXobgQ@mail.gmail.com>
<CAPswA9yB3wfV1auXR=ggXjh+f1C3Qpkv8qP1miQwkc8R2_aBLg@mail.gmail.com>
<CAPg+sBjp-BmSXhanOuKE0DN1wdfVwCtFwiAbPse1GLxy3+L3nA@mail.gmail.com>
<CAPswA9zzKvh6G+NqzTmhrNXMSWOPtZ2DGW2t_2Jrisy8x9m2qw@mail.gmail.com>
Date: Tue, 16 Jun 2015 21:25:12 +0200
Message-ID: <CAPg+sBhZCayaxNg_thO=nzxvuo-xZ-ZeZMXEVWb6Mw2POreOZQ@mail.gmail.com>
From: Pieter Wuille <pieter.wuille@gmail.com>
To: Kalle Rosenbaum <kalle@rosenbaum.se>
Content-Type: multipart/alternative; boundary=001a114fd9aa8339c10518a78842
X-Spam-Score: -0.6 (/)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
See http://spamassassin.org/tag/ for more details.
-1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for
sender-domain
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(pieter.wuille[at]gmail.com)
-0.0 SPF_PASS SPF: sender matches SPF record
1.0 HTML_MESSAGE BODY: HTML included in message
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Headers-End: 1Z4wU1-0007Sq-Tm
Cc: Bitcoin Dev <bitcoin-development@lists.sourceforge.net>
Subject: Re: [Bitcoin-development] BIP for Proof of Payment
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Tue, 16 Jun 2015 19:25:20 -0000
--001a114fd9aa8339c10518a78842
Content-Type: text/plain; charset=UTF-8
You can't avoid sharing the token, and you can't avoid sharing the private
keys used for signing either. If they are single use, you don't lose
anything by sharing them.
Also you are not creating a real transaction. Why does the OP_RETURN
limitation matter?
On Jun 16, 2015 9:22 PM, "Kalle Rosenbaum" <kalle@rosenbaum.se> wrote:
> Thank you for your comments Pieter! Please find my answers below.
>
> 2015-06-16 16:31 GMT+02:00 Pieter Wuille <pieter.wuille@gmail.com>:
> > On Mon, Jun 15, 2015 at 1:59 PM, Kalle Rosenbaum <kalle@rosenbaum.se>
> wrote:
> >>
> >> 2015-06-15 12:00 GMT+02:00 Pieter Wuille <pieter.wuille@gmail.com>:
> >> I'm not sure if we will be able to support PoP with CoinJoin. Maybe
> >> someone with more insight into CoinJoin have some input?
> >
> >
> > Not really. The problem is that you assume a transaction corresponds to a
> > single payment. This is true for simple wallet use cases, but not
> compatible
> > with CoinJoin, or with systems that for example would want to combine
> > multiple payments in a single transaction.
> >
>
> Yes, you are right. It's not compatible with CoinJoin and the likes.
>
> >
> > 48 bits seems low to me, but it does indeed solve the problem. Why not
> 128
> > or 256 bits?
>
> The nonce is limited because of the OP_RETURN output being limited to
> 40 bytes of data: 2 bytes version, 32 bytes txid, 6 bytes nonce.
>
> >
> >> > Why does anyone care who paid? This is like walking into a coffeshop,
> >> > noticing I don't have money with me, let me friend pay for me, and
> then
> >> > have
> >> > the shop insist that I can't drink it because I'm not the buyer.
> >>
> >> If you pay as you use the service (ie pay for coffee upfront), there's
> >> no need for PoP. Please see the Motivation section. But you are right
> >> that you must have the wallet(s) that paid at hand when you issue a
> >> PoP.
> >>
> >> >
> >> > Track payments, don't try to assign identities to payers.
> >>
> >> Please elaborate, I don't understand what you mean here.
> >
> >
> > I think that is a mistake. You should not assume that the wallet who held
> > the coins is the payer/buyer. That's what I said earlier; you're
> implicitly
> > creating an identity (the one who holds these keys) based on the
> > transaction. This seems fundamentally wrong to me, and not necessary. The
> > receiver should not care who paid or how, he should care what was payed
> for.
>
> You are saying that it's a problem that the wallet used to pay, must
> also be used to issue the PoP? That may very well be a problem in some
> cases. People using PoP should of course be aware of it's limitations
> and act accordingly, i.e. don't pay for concert tickets for a friend
> and expect your friend to be able to enter the arena with her wallet.
> As Tom Harding noted, it is possible to transfer keys to your friend's
> wallet, but that might not be desirable if those keys are also used
> for other payments. Also that would weaken the security of an HD
> wallet, since a chain code along with a private key would reveal all
> keys in that tree. Another solution is that your friend forwards the
> PoP request to your wallet, through twitter or SMS, and you send the
> PoP for her. Maybe that forwarding mechanism can be built into wallets
> and automated so that the wallet automatically suggests to sign the
> PoP for your friend. This is probably something to investigate
> further, but not within the scope of this BIP.
>
> Of course the simplest solution would be to send money to your friend
> first so that she can pay for the ticket from her own wallet, but
> that's not always feasible.
>
> >
> > The easiest solution to this IMHO would be an extension to the payment
> > protocol that gives you (or your wallet) a token in return for paying,
> and
> > that knowledge of that token is used to gain access to the services you
> > provide.
> >
>
> That token would then be reusable. Someone stealing it would be able
> to use it as much as she wants. That is what I want to avoid with PoP.
> The BIP proposal briefly mentions something like this in the
> rationale. I also had a discussion about this with Mike Hearn on this
> list on Mars 13 that I think covers most pros and cons of the
> different approaches.
>
> While your suggestion does indeed separate the transaction from the
> proof of payment, it also assumes that the token is held in the wallet
> that pays. Otherwise you would need to keep it in another safe place,
> remember it's reusable. Where would that be? How would you transfer
> that token to your friend?
>
> Thank you again for your comments. I appreciate it.
>
> Best regards,
> Kalle
>
> > --
> > Pieter
> >
>
--001a114fd9aa8339c10518a78842
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<p dir=3D"ltr">You can't avoid sharing the token, and you can't avo=
id sharing the private keys used for signing either. If they are single use=
, you don't lose anything by sharing them.</p>
<p dir=3D"ltr">Also you are not creating a real transaction. Why does the O=
P_RETURN limitation matter?</p>
<div class=3D"gmail_quote">On Jun 16, 2015 9:22 PM, "Kalle Rosenbaum&q=
uot; <<a href=3D"mailto:kalle@rosenbaum.se">kalle@rosenbaum.se</a>> w=
rote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you for =
your comments Pieter! Please find my answers below.<br>
<br>
2015-06-16 16:31 GMT+02:00 Pieter Wuille <<a href=3D"mailto:pieter.wuill=
e@gmail.com">pieter.wuille@gmail.com</a>>:<br>
> On Mon, Jun 15, 2015 at 1:59 PM, Kalle Rosenbaum <<a href=3D"mailto=
:kalle@rosenbaum.se">kalle@rosenbaum.se</a>> wrote:<br>
>><br>
>> 2015-06-15 12:00 GMT+02:00 Pieter Wuille <<a href=3D"mailto:pie=
ter.wuille@gmail.com">pieter.wuille@gmail.com</a>>:<br>
>> I'm not sure if we will be able to support PoP with CoinJoin. =
Maybe<br>
>> someone with more insight into CoinJoin have some input?<br>
><br>
><br>
> Not really. The problem is that you assume a transaction corresponds t=
o a<br>
> single payment. This is true for simple wallet use cases, but not comp=
atible<br>
> with CoinJoin, or with systems that for example would want to combine<=
br>
> multiple payments in a single transaction.<br>
><br>
<br>
Yes, you are right. It's not compatible with CoinJoin and the likes.<br=
>
<br>
><br>
> 48 bits seems low to me, but it does indeed solve the problem. Why not=
128<br>
> or 256 bits?<br>
<br>
The nonce is limited because of the OP_RETURN output being limited to<br>
40 bytes of data: 2 bytes version, 32 bytes txid, 6 bytes nonce.<br>
<br>
><br>
>> > Why does anyone care who paid? This is like walking into a co=
ffeshop,<br>
>> > noticing I don't have money with me, let me friend pay fo=
r me, and then<br>
>> > have<br>
>> > the shop insist that I can't drink it because I'm not=
the buyer.<br>
>><br>
>> If you pay as you use the service (ie pay for coffee upfront), the=
re's<br>
>> no need for PoP. Please see the Motivation section. But you are ri=
ght<br>
>> that you must have the wallet(s) that paid at hand when you issue =
a<br>
>> PoP.<br>
>><br>
>> ><br>
>> > Track payments, don't try to assign identities to payers.=
<br>
>><br>
>> Please elaborate, I don't understand what you mean here.<br>
><br>
><br>
> I think that is a mistake. You should not assume that the wallet who h=
eld<br>
> the coins is the payer/buyer. That's what I said earlier; you'=
re implicitly<br>
> creating an identity (the one who holds these keys) based on the<br>
> transaction. This seems fundamentally wrong to me, and not necessary. =
The<br>
> receiver should not care who paid or how, he should care what was paye=
d for.<br>
<br>
You are saying that it's a problem that the wallet used to pay, must<br=
>
also be used to issue the PoP? That may very well be a problem in some<br>
cases. People using PoP should of course be aware of it's limitations<b=
r>
and act accordingly, i.e. don't pay for concert tickets for a friend<br=
>
and expect your friend to be able to enter the arena with her wallet.<br>
As Tom Harding noted, it is possible to transfer keys to your friend's<=
br>
wallet, but that might not be desirable if those keys are also used<br>
for other payments. Also that would weaken the security of an HD<br>
wallet, since a chain code along with a private key would reveal all<br>
keys in that tree. Another solution is that your friend forwards the<br>
PoP request to your wallet, through twitter or SMS, and you send the<br>
PoP for her. Maybe that forwarding mechanism can be built into wallets<br>
and automated so that the wallet automatically suggests to sign the<br>
PoP for your friend. This is probably something to investigate<br>
further, but not within the scope of this BIP.<br>
<br>
Of course the simplest solution would be to send money to your friend<br>
first so that she can pay for the ticket from her own wallet, but<br>
that's not always feasible.<br>
<br>
><br>
> The easiest solution to this IMHO would be an extension to the payment=
<br>
> protocol that gives you (or your wallet) a token in return for paying,=
and<br>
> that knowledge of that token is used to gain access to the services yo=
u<br>
> provide.<br>
><br>
<br>
That token would then be reusable. Someone stealing it would be able<br>
to use it as much as she wants. That is what I want to avoid with PoP.<br>
The BIP proposal briefly mentions something like this in the<br>
rationale. I also had a discussion about this with Mike Hearn on this<br>
list on Mars 13 that I think covers most pros and cons of the<br>
different approaches.<br>
<br>
While your suggestion does indeed separate the transaction from the<br>
proof of payment, it also assumes that the token is held in the wallet<br>
that pays. Otherwise you would need to keep it in another safe place,<br>
remember it's reusable. Where would that be? How would you transfer<br>
that token to your friend?<br>
<br>
Thank you again for your comments. I appreciate it.<br>
<br>
Best regards,<br>
Kalle<br>
<br>
> --<br>
> Pieter<br>
><br>
</blockquote></div>
--001a114fd9aa8339c10518a78842--
|