diff options
author | Alfred Hodler <alfred_hodler@protonmail.com> | 2022-08-22 08:53:42 +0000 |
---|---|---|
committer | Alfred Hodler <alfred_hodler@protonmail.com> | 2022-08-22 08:53:42 +0000 |
commit | 75a6f21e3a641f930c0c5802264797fa7acd1002 (patch) | |
tree | db2c7256c15154c17b739367cd9bd4f5b552c616 /bip-alfredhodler-privatepayments.mediawiki | |
parent | 187135c4f6e60b63bf025419c6eb117c0a1b18cd (diff) |
Update BIP number and test vectors
Diffstat (limited to 'bip-alfredhodler-privatepayments.mediawiki')
-rw-r--r-- | bip-alfredhodler-privatepayments.mediawiki | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/bip-alfredhodler-privatepayments.mediawiki b/bip-alfredhodler-privatepayments.mediawiki index 05079e0..02c45ad 100644 --- a/bip-alfredhodler-privatepayments.mediawiki +++ b/bip-alfredhodler-privatepayments.mediawiki @@ -1,5 +1,5 @@ <pre> - BIP: ? + BIP: 351 Layer: Applications Title: Private Payments Author: Alfred Hodler <alfred_hodler@protonmail.com> @@ -11,8 +11,6 @@ License: MIT </pre> -In the following text the BIP number is provisionally set to 999 for technical purposes until a BIP number is assigned. - ==Abstract== 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 m / purpose' / coin_type' / account' </code> -<code>purpose</code> is set to 999. +<code>purpose</code> is set to 351. ''(p, P)'' and ''(n, N)'' are keys associated with the above path, depending on which side is performing the calculation. @@ -188,15 +186,15 @@ While the standard does not support versioning, it reserves unused bits in the a '''Master xprv:''' xprv9s21ZrQH143K2qVytoy3eZSSuc1gfzFrkV4bgoHzYTkgge4UoNP62eV8jkHYNqddaaefpnjwkz71P5m4EW6RuQBJeP9pdfa9WBnjP6XUivG -'''n:''' xprv9xgkGJLpRhrdGVTFqS49xKyH85yUKWfkazSjWUbnaqmRf5ucc2YwruLmFwqwtZ3S3Whxgj52HoyTrtfbzDUrAseWmER9DK3TZUTorzSpkdt +'''n:''' xprv9zNFGn56Wm1s89ycTCg4hB615ehu6ZvNL4mxUEAL28pNhBAb6SZgLdsgmQd1ECgAiCjy6XxTTRyBdPAhH1oMfLhv2bSwfiCYhL9s9ahEehf -'''N:''' xpub6Bg6fosiG5QvUyXiwTbAKTv1g7oxiyPbxDNLJs1Q9BJQXtEm9ZsCQhfF7CEo94MBjwEz5wBmCuo5AcSeBtKDE73GfGcQ6PATzVBVfdPtY17 +'''N:''' xpub6DMbgHbzM8aALe45ZED54K2jdgYPW2eDhHhZGcZwaUMMZyVjdysvtSCAcfPYiqB5Zw41EyLWPxCXko6iEckwRdF5CD2ZKdTxUKigPXsnpaE '''x:''' 0 -'''n<sub>x</sub>:''' 011447e7c6426aecd3fb3e76fba39ef3dc1e91dc578e8b535f714234c62675c5 +'''n<sub>x</sub>:''' be9518016ec15762877de7d2ce7367a2087cf5682e72bbffa89535d73bb42f40 -'''N<sub>x</sub>:''' 039d138aaf5bc2e27a9740541576eceb90a5f20b4799dbfda48e5c7ca240505753 +'''N<sub>x</sub>:''' 02e3217349724307eed5514b53b1f53f0802672a9913d9bbb76afecc86be23f464 ===Bob's Wallet=== @@ -204,42 +202,41 @@ While the standard does not support versioning, it reserves unused bits in the a '''Master xprv:''' xprv9s21ZrQH143K47bRNtc26e8Gb3wkUiJ4fH3ewYgJeiGABp7vQtTKsLBzHM2fsfiK7Er6uMrWbdDwwrdcVn5TDC1T1npTFFkdEVoMgTwfVuR -'''p:''' 0x3ba93579cf5b37d18cd2e3507d51b22c3771a2dbfd1b58dd45d08a6e6ed4b965 +'''p:''' 0x26c610e7d0ed4395be3f0664073d66b0a3442b49e1ec13faf2dd9b7d3c335441 -'''P:''' 0x02943ebcb1dbb1e1cb7c0350687c2c8dbdf1c4f350d849341a6ff61a595f2085e2 +'''P:''' 0x0302be8bff520f35fae3439f245c52afb9085a7bf62d099c1f5e9e1b15a7e2121a '''Accepted scripts:''' 0x03 (legacy + segwit) (0x01 | 0x02) -'''Payment code:''' pay1qqps99p7hjcahv0ped7qx5rg0skgm003cne4pkzfxsdxlas6t90jpp0zpnwgqy +'''Payment code:''' pay1qqpsxq4730l4yre4lt3588eyt3f2lwggtfalvtgfns04a8smzkn7yys6xv2gs8 ===Alice notifying Bob=== -'''S:''' 0x0295ac9a667d7077def44b11104811e5d91d164dd60cb08275b313a33691320cb3 +'''S:''' 0x02c0892d6ba30b5b1eafebd47172e46d358721f294698f9f59b4d96b781da09a62 -'''Notification code:''' 0xfbe8d683 +'''Notification code:''' 0x49cb55bb '''Address type commitment:''' 1 (segwit) -'''Notification output script:''' OP_RETURN OP_PUSHBYTES_40 5050fbe8d683039d138aaf5bc2e27a9740541576eceb90a5f20b4799dbfda48e5c7ca24050575301 +'''Notification output script:''' OP_RETURN OP_PUSHBYTES_40 505049cb55bb02e3217349724307eed5514b53b1f53f0802672a9913d9bbb76afecc86be23f46401 ===Alice sending to Bob=== '''c:''' 0 -'''s:''' 0xb7508ed246458221cc37d01de5d2f94be3a141180da11b78cbffdfd81a75f223 +'''s:''' 0x5dbe5efee4a5b9df73708241858f2bf7ec65f141dbd229ea8e2f9f51804a18f2 -'''s*G:''' 0x03e99301fb24083590fde78473d55a8435b0aed0dad65c516dfb268586fbe134be +'''s*G:''' 0x039362033c1bc3f05e081d4d7f76d5ffebde349b0f6a4d2e8ffc5c065c17233247 -'''P<sub>c</sub>:''' 0x03145adc275eda50ea188250f85e729b77b22f9868d024aff00ea61d552373cbba +'''P<sub>c</sub>:''' 0x03e669bd1705691a080840b07d76713d040934a37f2e8dde2fe02f5d3286a49219 -'''A<sub>c</sub>:''' bc1q7nmrkdgg3qq3l2ggh46zwv7750q6rjux0nx27a +'''A<sub>c</sub>:''' bc1qw7ld5h9tj2ruwxqvetznjfq9g5jyp0gjhrs30w ===Bob spending=== '''c:''' 0 -'''p<sub>c</sub>:''' 0xf2f9c44c15a0b9f3590ab36e6324ab781b12e3f40abc745611d06a46894aab88 - +'''p<sub>c</sub>:''' 0x84846fe6b592fd7531af88a58ccc92a88faa1c8bbdbe3de5810d3acebc7d6d33 ==Appendix B: Potential OP_RETURN Services== |