summaryrefslogtreecommitdiff
path: root/91/6c8ecdc6b5a28ea5deed045e5386a0124f2b6f
blob: 56e8539081803c4818c0d559ef66c738a346d987 (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
Return-Path: <samson.mow@gmail.com>
Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])
 by lists.linuxfoundation.org (Postfix) with ESMTP id ED6CBC0032
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri,  4 Aug 2023 18:42:11 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp4.osuosl.org (Postfix) with ESMTP id C7974408D1
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri,  4 Aug 2023 18:42:11 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org C7974408D1
Authentication-Results: smtp4.osuosl.org;
 dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.a=rsa-sha256 header.s=20221208 header.b=ROKac77p
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from smtp4.osuosl.org ([127.0.0.1])
 by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id CMbo5yK3Tjor
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri,  4 Aug 2023 18:42:07 +0000 (UTC)
Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com
 [IPv6:2607:f8b0:4864:20::92c])
 by smtp4.osuosl.org (Postfix) with ESMTPS id 0F72C4098E
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri,  4 Aug 2023 18:42:06 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0F72C4098E
Received: by mail-ua1-x92c.google.com with SMTP id
 a1e0cc1a2514c-79a2d0e0ce6so778140241.3
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 04 Aug 2023 11:42:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1691174526; x=1691779326;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :from:to:cc:subject:date:message-id:reply-to;
 bh=iBjnwICtuQZc9gDRrOXRE/LL6piM0GwOktveDtgA0FI=;
 b=ROKac77pjIiB2j7C3++uJgrRXaC+qXHPBzLbKJdkTk1lGggijUHPFgYNYtSiO0KSlM
 TTc4kGVdwuWcWyFyic++W/svrm9Gq7KoeK9JBVIuIwA3V8np1bMwsSMO8KqUT/XlZFD8
 h3jwT6VNUagolFbITuZJM/KE/wnrNPw83qKuA3TR2fTB46rRn09h715F3VOmlW7TMz3e
 v2IpL/a25Z3ORktYfTe4tdLB+k9dHB0feC54ZIKrN3POkiL3EaAvrwOkM1zyGyIG7agC
 dsuo9G/mgCZ3Dhi1O5CUGC2nJzsIoiVm57pR26HZFMHY2sEjAJkTfLK71Z74KMEXAj6v
 2OpA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1691174526; x=1691779326;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=iBjnwICtuQZc9gDRrOXRE/LL6piM0GwOktveDtgA0FI=;
 b=DsKF2j2dplHa2x+qYhoSZsR6ZBQR5gSIeak+xtaPU7JVnGcM9uKt8JMTB5nrEmrFwi
 fa44FxJA25A68SgzAszEF3HRIwXNI4sEvWsGBhCKKJi2GDH6BfeLdaKoX4bZln6IfMHl
 pzHbXZlEdCgcSiR80NsGQPfdZ8JjOv5lZeHfs5WffVjLRrPr6pkBQXg1PavL2R0jG5/p
 FPBskIbx7u1ibRxw2pAW/TF5/laL4xuJZrwcntSygKuUNVaHVPq8kbsKsHRHmjVxZaSx
 9Kk5IxbHnEAoB4bWf3nTbBDpSrn90TqK4jn8prO5UYbHv+V/VIj33ytGUjDGP8JDMiUX
 Ea7A==
X-Gm-Message-State: AOJu0Yw1rT44StqpNyIX51r0J7xUL9rZ9nRfuAvUTT4A/eHbiAVCHeXJ
 08alXMlg48bz+nZ4peTOSjabX9qf3mn7VfTueW0ou/yO0js=
X-Google-Smtp-Source: AGHT+IFX59VRgr/wWAVVOTkcCIbZZO3bayWXFSFMRenVsi3HYqazlRmWyZnxMadBgAUq4mdvhlYQvIf6x9bI20GVwtg=
X-Received: by 2002:a67:eb87:0:b0:443:7eba:e22c with SMTP id
 e7-20020a67eb87000000b004437ebae22cmr1310075vso.8.1691174525719; Fri, 04 Aug
 2023 11:42:05 -0700 (PDT)
MIME-Version: 1.0
References: <ZM03twumu88V2NFH@petertodd.org>
In-Reply-To: <ZM03twumu88V2NFH@petertodd.org>
From: Samson Mow <samson.mow@gmail.com>
Date: Fri, 4 Aug 2023 11:41:39 -0700
Message-ID: <CAAWeQ5fRi3AiZpSm4riyrNyCRphi5dSE6tFpkaGeQCY3x4keng@mail.gmail.com>
To: Peter Todd <pete@petertodd.org>, 
 Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary="000000000000dbdc1706021d403b"
X-Mailman-Approved-At: Sun, 06 Aug 2023 14:28:42 +0000
Subject: Re: [bitcoin-dev] BIP-352 Silent Payments addresses should have an
 expiration time
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: Fri, 04 Aug 2023 18:42:12 -0000

--000000000000dbdc1706021d403b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Why the 180 year limit? imho should plan for longer.

On Fri, Aug 4, 2023 at 10:41=E2=80=AFAM Peter Todd via bitcoin-dev <
bitcoin-dev@lists.linuxfoundation.org> wrote:

> tl;dr: Wallets don't last forever. They are often compromised or lost. Wh=
en
> this happens, the addresses generated from those wallets become a form of
> toxic
> data: funds sent to those addresses can be easily lost forever.
>
> All Bitcoin addresses have this problem. But at least existing Bitcoin
> addresses aren't supposed to be reused. Silent Payments are: the whole
> point is
> to have a single address that you can safely pay to multiple times, witho=
ut
> privacy concerns. Failing to make Silent Payment addresses eventually
> expire in
> a reasonable amount of time is thus a particularly harmful mistake.
>
> Fixing this is easy: add a 3 byte field to silent payments addresses,
> encoding
> the expiration date in terms of days after some epoch. 2^24 days is 45,00=
0
> years, more than enough. Indeed, 2 bytes is probably fine too: 2^16 days
> is 180
> years. We'll be lucky if Bitcoin still exists in 180 years.
>
> Wallets should pick a reasonable default, eg 1 year, for newly created
> addresses. Attempts to pay an expired address should just fail with a
> simple
> "address expired". Lightning invoices are a good example here: while
> invoices
> does not require expiration from a technical point of view, they do expir=
e
> for
> similar UX reasons as applies to silent payments.
>
> --
> https://petertodd.org 'peter'[:-1]@petertodd.org
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>

--000000000000dbdc1706021d403b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Why the 180 year limit? imho should plan for longer.</div>=
<br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri=
, Aug 4, 2023 at 10:41=E2=80=AFAM Peter Todd via bitcoin-dev &lt;<a href=3D=
"mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfound=
ation.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex">tl;dr: Wallets don&#39;t last forever. They are often compromise=
d or lost. When<br>
this happens, the addresses generated from those wallets become a form of t=
oxic<br>
data: funds sent to those addresses can be easily lost forever.<br>
<br>
All Bitcoin addresses have this problem. But at least existing Bitcoin<br>
addresses aren&#39;t supposed to be reused. Silent Payments are: the whole =
point is<br>
to have a single address that you can safely pay to multiple times, without=
<br>
privacy concerns. Failing to make Silent Payment addresses eventually expir=
e in<br>
a reasonable amount of time is thus a particularly harmful mistake.<br>
<br>
Fixing this is easy: add a 3 byte field to silent payments addresses, encod=
ing<br>
the expiration date in terms of days after some epoch. 2^24 days is 45,000<=
br>
years, more than enough. Indeed, 2 bytes is probably fine too: 2^16 days is=
 180<br>
years. We&#39;ll be lucky if Bitcoin still exists in 180 years.<br>
<br>
Wallets should pick a reasonable default, eg 1 year, for newly created<br>
addresses. Attempts to pay an expired address should just fail with a simpl=
e<br>
&quot;address expired&quot;. Lightning invoices are a good example here: wh=
ile invoices<br>
does not require expiration from a technical point of view, they do expire =
for<br>
similar UX reasons as applies to silent payments.<br>
<br>
-- <br>
<a href=3D"https://petertodd.org" rel=3D"noreferrer" target=3D"_blank">http=
s://petertodd.org</a> &#39;peter&#39;[:-1]@<a href=3D"http://petertodd.org"=
 rel=3D"noreferrer" target=3D"_blank">petertodd.org</a><br>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">=
bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.org/mail=
man/listinfo/bitcoin-dev</a><br>
</blockquote></div>

--000000000000dbdc1706021d403b--