summaryrefslogtreecommitdiff
path: root/c5/dc59671d6d7e9f766f2d436a504f4acf58a4f6
blob: 81f38afebfb65c3ac3198d8237415702d152d672 (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
Return-Path: <alfred_hodler@protonmail.com>
Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 4BD0CC002D
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Mon, 11 Jul 2022 10:28:54 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp1.osuosl.org (Postfix) with ESMTP id 26E9E82A28
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Mon, 11 Jul 2022 10:28:54 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 26E9E82A28
Authentication-Results: smtp1.osuosl.org;
 dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com
 header.a=rsa-sha256 header.s=protonmail3 header.b=GutY8Qyg
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -0.202
X-Spam-Level: 
X-Spam-Status: No, score=-0.202 tagged_above=-999 required=5
 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001]
 autolearn=ham autolearn_force=no
Received: from smtp1.osuosl.org ([127.0.0.1])
 by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 8soy_hEhkgQU
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Mon, 11 Jul 2022 10:28:53 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D53A882A26
Received: from mail-40137.protonmail.ch (mail-40137.protonmail.ch
 [185.70.40.137])
 by smtp1.osuosl.org (Postfix) with ESMTPS id D53A882A26
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Mon, 11 Jul 2022 10:28:52 +0000 (UTC)
Date: Mon, 11 Jul 2022 10:28:40 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1657535330; x=1657794530;
 bh=6ePxGZ3PNGMJny3wu+JgU1tqoNxbE90WyYg+pAAZwIA=;
 h=Date:To:From:Reply-To:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID;
 b=GutY8QygHNTct8CiQmZKKBCZKJjQ9Y6W9RidOGNguTXVsFCWYtK0r0J/NtxIVM392
 QppG8YRmIYuOFS1PvnU+xGvZtnlHMKskSyaeFWVQtqe8/jmVA4BNvQi7iLlCjIzZZH
 5rc3AWuH1Ub6VwlPVCzCcQ97U/MI1MEvGi4LGx/qvmKlsr4zfCVdr48nOxrBVz8qSQ
 yQn/1CuxYBjjKnhRfiGmjrik3uBafE3T/mMfBw4xSOO992dFHKCa8EIZQicAxxzHJ5
 z+zi7bcMZhReWIx+l/l4HAoREo20JpzTYUHdhi/68MPtrMG3dDFA0zYwiAZQ6Y7U3j
 XPvxUwhOUe4/Q==
To: "bitcoin-dev@lists.linuxfoundation.org"
 <bitcoin-dev@lists.linuxfoundation.org>
From: Alfred Hodler <alfred_hodler@protonmail.com>
Reply-To: Alfred Hodler <alfred_hodler@protonmail.com>
Message-ID: <7MZupPo-je8mhyxtw-sPQ19zypYdoXmh93RoVCLVZ_yXo9bEnUChMFjKU6E4W9gpLXbGiHMlbxY05K62BCzrYuaiPVp_7YdxM1_J3ToSnGU=@protonmail.com>
In-Reply-To: <rH1Js_T_UWcAg9lS9NDw_Qb6Js5bgs8rPILej69BjqsEZcJZwsvHhZRilkkOQZRGXabai63hrGgbTP2Yk99ojKEN6fU6HT4TmukiafqiKjo=@protonmail.com>
References: <rH1Js_T_UWcAg9lS9NDw_Qb6Js5bgs8rPILej69BjqsEZcJZwsvHhZRilkkOQZRGXabai63hrGgbTP2Yk99ojKEN6fU6HT4TmukiafqiKjo=@protonmail.com>
Feedback-ID: 44065311:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailman-Approved-At: Mon, 11 Jul 2022 13:59:03 +0000
Subject: Re: [bitcoin-dev] [BIP proposal] Private Payments
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: Mon, 11 Jul 2022 10:28:54 -0000

Update: Bob doesn't have to watch all address types he's advertising. When =
notifying Bob, Alice will pick one address type out of the ones Bob is adve=
rtising and include it in the notification. That way even if Bob's wallet a=
ccepts many address types, he still doesn't have to watch all of them for e=
ach Alice.

The previous spec reads:

> Alice then constructs a 72-byte OP_RETURN output whose value is set to `B=
IPXXXX + notification + N_Alice` (`+` is concat) and sends it in a transact=
ion containing no other outputs (XXXX to be replaced once a BIP number is a=
ssigned).

We can extended the payload to 73 bytes and define it as: `BIPXXXX + notifi=
cation + N_Alice + address_type`, where `address_type` is a single byte con=
taining the desired address type index (1 out of 16, limited by Bob's payme=
nt code). If Alice ever wants to start sending to a different address type,=
 she can simply re-notify Bob and Bob will switch to a new address type in =
the case of Alice.

Alfred