Kalle Rosenbaum [ARCHIVE] on Nostr: 📅 Original date posted:2015-06-16 📝 Original message:Thank you for your ...
📅 Original date posted:2015-06-16
📝 Original message:Thank you for your comments Pieter! Please find my answers below.
2015-06-16 16:31 GMT+02:00 Pieter Wuille <pieter.wuille at gmail.com>:
> On Mon, Jun 15, 2015 at 1:59 PM, Kalle Rosenbaum <kalle at rosenbaum.se> wrote:
>>
>> 2015-06-15 12:00 GMT+02:00 Pieter Wuille <pieter.wuille at 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
>
Published at
2023-06-07 15:36:54Event JSON
{
"id": "3827d7678e65ff9907fbcb6ca32550ec195401c36a93b910a0477ef58f5b692f",
"pubkey": "e39d9ce3b0ed9cbb17528b25bb4b33bcee465476e44ea5980fb6f2693b97ab95",
"created_at": 1686152214,
"kind": 1,
"tags": [
[
"e",
"e1766602ba0f6768319a1583d11fb84dd1782fa79b735d969ef1342e648fd1da",
"",
"root"
],
[
"e",
"543fd22b66e33701a51fb91048afa6ae3a8d49266586d170004cd1e1b7bc1578",
"",
"reply"
],
[
"p",
"5cb21bf5d7f25a9d46879713cbd32433bbc10e40ef813a3c28fe7355f49854d6"
]
],
"content": "📅 Original date posted:2015-06-16\n📝 Original message:Thank you for your comments Pieter! Please find my answers below.\n\n2015-06-16 16:31 GMT+02:00 Pieter Wuille \u003cpieter.wuille at gmail.com\u003e:\n\u003e On Mon, Jun 15, 2015 at 1:59 PM, Kalle Rosenbaum \u003ckalle at rosenbaum.se\u003e wrote:\n\u003e\u003e\n\u003e\u003e 2015-06-15 12:00 GMT+02:00 Pieter Wuille \u003cpieter.wuille at gmail.com\u003e:\n\u003e\u003e I'm not sure if we will be able to support PoP with CoinJoin. Maybe\n\u003e\u003e someone with more insight into CoinJoin have some input?\n\u003e\n\u003e\n\u003e Not really. The problem is that you assume a transaction corresponds to a\n\u003e single payment. This is true for simple wallet use cases, but not compatible\n\u003e with CoinJoin, or with systems that for example would want to combine\n\u003e multiple payments in a single transaction.\n\u003e\n\nYes, you are right. It's not compatible with CoinJoin and the likes.\n\n\u003e\n\u003e 48 bits seems low to me, but it does indeed solve the problem. Why not 128\n\u003e or 256 bits?\n\nThe nonce is limited because of the OP_RETURN output being limited to\n40 bytes of data: 2 bytes version, 32 bytes txid, 6 bytes nonce.\n\n\u003e\n\u003e\u003e \u003e Why does anyone care who paid? This is like walking into a coffeshop,\n\u003e\u003e \u003e noticing I don't have money with me, let me friend pay for me, and then\n\u003e\u003e \u003e have\n\u003e\u003e \u003e the shop insist that I can't drink it because I'm not the buyer.\n\u003e\u003e\n\u003e\u003e If you pay as you use the service (ie pay for coffee upfront), there's\n\u003e\u003e no need for PoP. Please see the Motivation section. But you are right\n\u003e\u003e that you must have the wallet(s) that paid at hand when you issue a\n\u003e\u003e PoP.\n\u003e\u003e\n\u003e\u003e \u003e\n\u003e\u003e \u003e Track payments, don't try to assign identities to payers.\n\u003e\u003e\n\u003e\u003e Please elaborate, I don't understand what you mean here.\n\u003e\n\u003e\n\u003e I think that is a mistake. You should not assume that the wallet who held\n\u003e the coins is the payer/buyer. That's what I said earlier; you're implicitly\n\u003e creating an identity (the one who holds these keys) based on the\n\u003e transaction. This seems fundamentally wrong to me, and not necessary. The\n\u003e receiver should not care who paid or how, he should care what was payed for.\n\nYou are saying that it's a problem that the wallet used to pay, must\nalso be used to issue the PoP? That may very well be a problem in some\ncases. People using PoP should of course be aware of it's limitations\nand act accordingly, i.e. don't pay for concert tickets for a friend\nand expect your friend to be able to enter the arena with her wallet.\nAs Tom Harding noted, it is possible to transfer keys to your friend's\nwallet, but that might not be desirable if those keys are also used\nfor other payments. Also that would weaken the security of an HD\nwallet, since a chain code along with a private key would reveal all\nkeys in that tree. Another solution is that your friend forwards the\nPoP request to your wallet, through twitter or SMS, and you send the\nPoP for her. Maybe that forwarding mechanism can be built into wallets\nand automated so that the wallet automatically suggests to sign the\nPoP for your friend. This is probably something to investigate\nfurther, but not within the scope of this BIP.\n\nOf course the simplest solution would be to send money to your friend\nfirst so that she can pay for the ticket from her own wallet, but\nthat's not always feasible.\n\n\u003e\n\u003e The easiest solution to this IMHO would be an extension to the payment\n\u003e protocol that gives you (or your wallet) a token in return for paying, and\n\u003e that knowledge of that token is used to gain access to the services you\n\u003e provide.\n\u003e\n\nThat token would then be reusable. Someone stealing it would be able\nto use it as much as she wants. That is what I want to avoid with PoP.\nThe BIP proposal briefly mentions something like this in the\nrationale. I also had a discussion about this with Mike Hearn on this\nlist on Mars 13 that I think covers most pros and cons of the\ndifferent approaches.\n\nWhile your suggestion does indeed separate the transaction from the\nproof of payment, it also assumes that the token is held in the wallet\nthat pays. Otherwise you would need to keep it in another safe place,\nremember it's reusable. Where would that be? How would you transfer\nthat token to your friend?\n\nThank you again for your comments. I appreciate it.\n\nBest regards,\nKalle\n\n\u003e --\n\u003e Pieter\n\u003e",
"sig": "be433f0012a5d3e7d59b38e241f63bc7f21c1f2d5055bb7c0a2a38b543202daeb7f4618938bc33a0c936ac84e4d7a5849d27293953d8bbc97c65ee229e7b6227"
}