|
1 | 1 | <pre>
|
2 |
| - BIP: ? |
| 2 | + BIP: 351 |
3 | 3 | Layer: Applications
|
4 | 4 | Title: Private Payments
|
5 | 5 | Author: Alfred Hodler < [email protected]>
|
|
11 | 11 | License: MIT
|
12 | 12 | </pre>
|
13 | 13 |
|
14 |
| -In the following text the BIP number is provisionally set to 999 for technical purposes until a BIP number is assigned. |
15 |
| - |
16 | 14 | ==Abstract==
|
17 | 15 |
|
18 | 16 | This BIP makes it possible for two parties to transact using addresses that only they can calculate. This is done using exclusively on-chain methods and in a manner that minimizes blockchain footprint. Receiving parties can share their payment codes publicly without a loss of privacy, as every sender will calculate a unique set of addresses for each payment code.
|
@@ -71,7 +69,7 @@ The derivation path for this BIP follows BIP44. The following BIP32 path levels
|
71 | 69 | m / purpose' / coin_type' / account'
|
72 | 70 | </code>
|
73 | 71 |
|
74 |
| -<code>purpose</code> is set to 999. |
| 72 | +<code>purpose</code> is set to 351. |
75 | 73 |
|
76 | 74 | ''(p, P)'' and ''(n, N)'' are keys associated with the above path, depending on which side is performing the calculation.
|
77 | 75 |
|
@@ -188,58 +186,57 @@ While the standard does not support versioning, it reserves unused bits in the a
|
188 | 186 |
|
189 | 187 | '''Master xprv:''' xprv9s21ZrQH143K2qVytoy3eZSSuc1gfzFrkV4bgoHzYTkgge4UoNP62eV8jkHYNqddaaefpnjwkz71P5m4EW6RuQBJeP9pdfa9WBnjP6XUivG
|
190 | 188 |
|
191 |
| -'''n:''' xprv9xgkGJLpRhrdGVTFqS49xKyH85yUKWfkazSjWUbnaqmRf5ucc2YwruLmFwqwtZ3S3Whxgj52HoyTrtfbzDUrAseWmER9DK3TZUTorzSpkdt |
| 189 | +'''n:''' xprv9zNFGn56Wm1s89ycTCg4hB615ehu6ZvNL4mxUEAL28pNhBAb6SZgLdsgmQd1ECgAiCjy6XxTTRyBdPAhH1oMfLhv2bSwfiCYhL9s9ahEehf |
192 | 190 |
|
193 |
| -'''N:''' xpub6Bg6fosiG5QvUyXiwTbAKTv1g7oxiyPbxDNLJs1Q9BJQXtEm9ZsCQhfF7CEo94MBjwEz5wBmCuo5AcSeBtKDE73GfGcQ6PATzVBVfdPtY17 |
| 191 | +'''N:''' xpub6DMbgHbzM8aALe45ZED54K2jdgYPW2eDhHhZGcZwaUMMZyVjdysvtSCAcfPYiqB5Zw41EyLWPxCXko6iEckwRdF5CD2ZKdTxUKigPXsnpaE |
194 | 192 |
|
195 | 193 | '''x:''' 0
|
196 | 194 |
|
197 |
| -'''n<sub>x</sub>:''' 011447e7c6426aecd3fb3e76fba39ef3dc1e91dc578e8b535f714234c62675c5 |
| 195 | +'''n<sub>x</sub>:''' be9518016ec15762877de7d2ce7367a2087cf5682e72bbffa89535d73bb42f40 |
198 | 196 |
|
199 |
| -'''N<sub>x</sub>:''' 039d138aaf5bc2e27a9740541576eceb90a5f20b4799dbfda48e5c7ca240505753 |
| 197 | +'''N<sub>x</sub>:''' 02e3217349724307eed5514b53b1f53f0802672a9913d9bbb76afecc86be23f464 |
200 | 198 |
|
201 | 199 |
|
202 | 200 | ===Bob's Wallet===
|
203 | 201 | '''BIP32 seed:''' 0xff
|
204 | 202 |
|
205 | 203 | '''Master xprv:''' xprv9s21ZrQH143K47bRNtc26e8Gb3wkUiJ4fH3ewYgJeiGABp7vQtTKsLBzHM2fsfiK7Er6uMrWbdDwwrdcVn5TDC1T1npTFFkdEVoMgTwfVuR
|
206 | 204 |
|
207 |
| -'''p:''' 0x3ba93579cf5b37d18cd2e3507d51b22c3771a2dbfd1b58dd45d08a6e6ed4b965 |
| 205 | +'''p:''' 0x26c610e7d0ed4395be3f0664073d66b0a3442b49e1ec13faf2dd9b7d3c335441 |
208 | 206 |
|
209 |
| -'''P:''' 0x02943ebcb1dbb1e1cb7c0350687c2c8dbdf1c4f350d849341a6ff61a595f2085e2 |
| 207 | +'''P:''' 0x0302be8bff520f35fae3439f245c52afb9085a7bf62d099c1f5e9e1b15a7e2121a |
210 | 208 |
|
211 | 209 | '''Accepted scripts:''' 0x03 (legacy + segwit) (0x01 | 0x02)
|
212 | 210 |
|
213 |
| -'''Payment code:''' pay1qqps99p7hjcahv0ped7qx5rg0skgm003cne4pkzfxsdxlas6t90jpp0zpnwgqy |
| 211 | +'''Payment code:''' pay1qqpsxq4730l4yre4lt3588eyt3f2lwggtfalvtgfns04a8smzkn7yys6xv2gs8 |
214 | 212 |
|
215 | 213 |
|
216 | 214 | ===Alice notifying Bob===
|
217 |
| -'''S:''' 0x0295ac9a667d7077def44b11104811e5d91d164dd60cb08275b313a33691320cb3 |
| 215 | +'''S:''' 0x02c0892d6ba30b5b1eafebd47172e46d358721f294698f9f59b4d96b781da09a62 |
218 | 216 |
|
219 |
| -'''Notification code:''' 0xfbe8d683 |
| 217 | +'''Notification code:''' 0x49cb55bb |
220 | 218 |
|
221 | 219 | '''Address type commitment:''' 1 (segwit)
|
222 | 220 |
|
223 |
| -'''Notification output script:''' OP_RETURN OP_PUSHBYTES_40 5050fbe8d683039d138aaf5bc2e27a9740541576eceb90a5f20b4799dbfda48e5c7ca24050575301 |
| 221 | +'''Notification output script:''' OP_RETURN OP_PUSHBYTES_40 505049cb55bb02e3217349724307eed5514b53b1f53f0802672a9913d9bbb76afecc86be23f46401 |
224 | 222 |
|
225 | 223 |
|
226 | 224 | ===Alice sending to Bob===
|
227 | 225 | '''c:''' 0
|
228 | 226 |
|
229 |
| -'''s:''' 0xb7508ed246458221cc37d01de5d2f94be3a141180da11b78cbffdfd81a75f223 |
| 227 | +'''s:''' 0x5dbe5efee4a5b9df73708241858f2bf7ec65f141dbd229ea8e2f9f51804a18f2 |
230 | 228 |
|
231 |
| -'''s*G:''' 0x03e99301fb24083590fde78473d55a8435b0aed0dad65c516dfb268586fbe134be |
| 229 | +'''s*G:''' 0x039362033c1bc3f05e081d4d7f76d5ffebde349b0f6a4d2e8ffc5c065c17233247 |
232 | 230 |
|
233 |
| -'''P<sub>c</sub>:''' 0x03145adc275eda50ea188250f85e729b77b22f9868d024aff00ea61d552373cbba |
| 231 | +'''P<sub>c</sub>:''' 0x03e669bd1705691a080840b07d76713d040934a37f2e8dde2fe02f5d3286a49219 |
234 | 232 |
|
235 |
| -'''A<sub>c</sub>:''' bc1q7nmrkdgg3qq3l2ggh46zwv7750q6rjux0nx27a |
| 233 | +'''A<sub>c</sub>:''' bc1qw7ld5h9tj2ruwxqvetznjfq9g5jyp0gjhrs30w |
236 | 234 |
|
237 | 235 |
|
238 | 236 | ===Bob spending===
|
239 | 237 | '''c:''' 0
|
240 | 238 |
|
241 |
| -'''p<sub>c</sub>:''' 0xf2f9c44c15a0b9f3590ab36e6324ab781b12e3f40abc745611d06a46894aab88 |
242 |
| - |
| 239 | +'''p<sub>c</sub>:''' 0x84846fe6b592fd7531af88a58ccc92a88faa1c8bbdbe3de5810d3acebc7d6d33 |
243 | 240 |
|
244 | 241 | ==Appendix B: Potential OP_RETURN Services==
|
245 | 242 |
|
|
0 commit comments