summaryrefslogtreecommitdiff
path: root/7c/0f286541ebe7f4ab651ee2370c6ece8524beae
blob: 22420ac1aecf4bb395c5f9a76d4154786b1069cb (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
Return-Path: <dave@dtrt.org>
Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 6840DC0032
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 13 Aug 2023 07:08:29 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp2.osuosl.org (Postfix) with ESMTP id 30806402F5
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 13 Aug 2023 07:08:29 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 30806402F5
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001]
 autolearn=ham autolearn_force=no
Received: from smtp2.osuosl.org ([127.0.0.1])
 by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id sIQSJDW809M0
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 13 Aug 2023 07:08:28 +0000 (UTC)
Received: from smtpauth.rollernet.us (smtpauth.rollernet.us
 [IPv6:2607:fe70:0:3::d])
 by smtp2.osuosl.org (Postfix) with ESMTPS id 5073F40102
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sun, 13 Aug 2023 07:08:28 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 5073F40102
Received: from smtpauth.rollernet.us (localhost [127.0.0.1])
 by smtpauth.rollernet.us (Postfix) with ESMTP id D3E392800085;
 Sun, 13 Aug 2023 00:08:24 -0700 (PDT)
Received: from [127.0.0.1] (62.red-79-152-142.dynamicip.rima-tde.net
 [79.152.142.62])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (Client did not present a certificate)
 by smtpauth.rollernet.us (Postfix) with ESMTPSA;
 Sun, 13 Aug 2023 00:08:24 -0700 (PDT)
Date: Sat, 12 Aug 2023 20:58:29 -1000
From: "David A. Harding" <dave@dtrt.org>
To: AdamISZ <AdamISZ@protonmail.com>,
 Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
User-Agent: K-9 Mail for Android
In-Reply-To: <qUoIvwrIl8ltj3TkQ7y1ExhjUan6VEpGl7c7TlHNfF1pT-eZWd_mwuNYH13YPRyvMj9OSApLmW-hwrdaHCEapEXr503SlXSywcAGceXcbow=@protonmail.com>
References: <7B11AE34-27A7-46ED-95BF-66CA13BA26F3@ngould.dev>
 <qUoIvwrIl8ltj3TkQ7y1ExhjUan6VEpGl7c7TlHNfF1pT-eZWd_mwuNYH13YPRyvMj9OSApLmW-hwrdaHCEapEXr503SlXSywcAGceXcbow=@protonmail.com>
Message-ID: <9E89DE36-4CB4-4F16-A702-FE33EDF544C3@dtrt.org>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Rollernet-Abuse: Contact abuse@rollernet.us to report. Abuse policy:
 http://www.rollernet.us/policy
X-Rollernet-Submit: Submit ID 3b1c.64d88168.4a73e.0
Subject: Re: [bitcoin-dev] BIP for Serverless Payjoin
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Sun, 13 Aug 2023 07:08:29 -0000



On August 10, 2023 5:37:54 AM HST, AdamISZ via bitcoin-dev <bitcoin-dev@li=
sts=2Elinuxfoundation=2Eorg> wrote:
>Hi Dan,
>A couple more more thoughts:
>
>> Out of band, the receiver of the payment, shares a bitcoin URI with the=
 sender including a <code>pj=3D</code> query parameter describing the relay=
 subdirectory endpoint and <code>psk=3D</code> parameter with base64 encode=
d 256-bit secret key=2E
>
>You're sending the symmetric secret key out of band; but isn't this obscu=
ring the question of securely sharing the secret key? Did you consider DH-i=
ng this as other protocols do? At the very least I would claim that it's li=
kely that implementers might be sloppy here; at the most I would claim this=
 is just insecure full stop=2E

Hi Dan,

After reading Adam's comments above and re-reading your draft BIP where it=
 says the secret key is also used as the session identifier and that output=
s can be modified, I'm wondering about the security of posting payment URIs=
 anywhere someone can see them=2E

For example, if Alice posts her BIP21 URI for Bob to pay where Eve can see=
 it, such as in a shared chatroom or via email or any cleartext protocol th=
at gets relayed, can Eve establish her own session to the relay and frontru=
n Alice on receiving Bob's PSBT, modify the returned PSBT to include her (E=
ve's) output, and submit it for Bob to sign and broadcast?

The way BItcoin users currently use BIP21 URIs and QR-encoded BIP21 URIs, =
posting them where evesdroppers can see them poses a privacy risk but not a=
 risk of loss of funds, so many users don't treat them as especially hazard=
ous material=2E  I don't think it would be practical to change that expecta=
tion, and I think a protocol where evesdropping didn't create a risk of fun=
ds loss would be much better than one where that risk was created=2E

(Apologies to Adam is this is exactly what he was saying with more subtly=
=2E)

-Dave