Skip to content

Commit 8b11b61

Browse files
committed
explain the usage of versions with regards to payment code behavior
1 parent 5d0b400 commit 8b11b61

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

bip-0047.mediawiki

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,19 @@ Hardened derivation is used at this level.
8484

8585
Except where noted, all keys derived from a payment code use the public derivation method.
8686

87-
==Standard Payment Codes (v1)==
87+
==Versions==
88+
89+
Payment codes contain a version byte which identifies a specific set of behavior.
90+
91+
Unless otherwise specified, payment codes of different versions are interoperable. If Alice uses a version x payment code, and Bob uses a version y payment code, they can still send and receive transactions between each other.
92+
93+
Currently specified versions:
94+
95+
* Version 1
96+
** Address type: P2PKH
97+
** Notification type: address
98+
99+
==Version 1==
88100

89101
===Representation===
90102

@@ -127,6 +139,8 @@ It is assumed that Alice can easily obtain Bob's payment code via a suitable met
127139

128140
Prior to the first time Alice initiates a transaction to Bob, Alice MUST inform Bob of her payment code via the following procedure:
129141

142+
Note: this procedure is used if Bob uses a version 1 payment code (regardless of the the version of Alice's payment code). If Bob's payment code is not version 1, see the appropriate section in this specification.
143+
130144
# Alice constructs a transaction which sends a small quantity of bitcoins to Bob's notification address (notification transaction)
131145
## The inputs selected for this transaction MUST NOT be easily associated with Alice's notification address
132146
# Alice derives a unique shared secret using ECDH:

0 commit comments

Comments
 (0)