Skip to content

Commit 689fcdb

Browse files
committed
updated BIP number and examples
1 parent 3ff47ff commit 689fcdb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

bip-draft.mediawiki

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<pre>
2-
BIP: TBD
2+
BIP: 175
33
Layer: Applications
44
Title: Pay to Contract Protocol
55
Author: Omar Shibli <[email protected]>
66
Nicholas Gregory <[email protected]>
77
Comments-Summary: No comments yet.
8-
Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-TBD
8+
Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-0175
99
Status: Draft
1010
Type: Informational Track
1111
Created: 2017-07-17
@@ -60,10 +60,10 @@ Each level has special meaning described in the chapters below.
6060

6161
===Purpose===
6262

63-
Purpose is a constant set to <code>TBD'</code> (or <code>TBD</code>) following the BIP-0043 recommendation. It indicates that the subtree of this node is used according to this specification.
63+
Purpose is a constant set to <code>175'</code> (or <code>0x800000AF</code>) following the BIP-0043 recommendation. It indicates that the subtree of this node is used according to this specification.
6464

6565
<code>
66-
m / TBD' / *
66+
m / 175' / *
6767
</code>
6868

6969
Hardened derivation is used at this level.
@@ -141,9 +141,9 @@ For the following given inputs:
141141
we can compute payment base as follows:
142142

143143
payment base derivation path:
144-
m/999'/0'
144+
m/175'/0'
145145
contract base public extended key:
146-
xpub6A7Bkv1CFa275xd2vyheGLS1NX8zNizxU82ufcL3fnwnhS7DBpruR16oSFZGUQVtJNEjghCe3ZdPManUWCZFJo6t5U98KC2cYMpXtqNCwi3
146+
xpub6B3JSEWjqm5GgfzcjPwBixxLPzi15pFM3jq4E4yCzXXUFS5MFdXiSdw7b5dbdPGHuc7c1V4zXbbFRtc9G1njMUt9ZvMdGVGYQSQsurD6HAW
147147
148148
In the below examples, we are going to use SHA256 as a cryptographic hash function, and the above contract base public key.
149149

@@ -184,15 +184,15 @@ As an input, we have a contract that consists of two documents, below are conten
184184

185185
contract_base_pub/60466/7653/27379/46703/46238/35279/58182/22051/34991/14461/46729/5725/28518/10809/20520/27223
186186
or
187-
m/999'/0'/60466/7653/27379/46703/46238/35279/58182/22051/34991/14461/46729/5725/28518/10809/20520/27223
187+
m/175'/0'/60466/7653/27379/46703/46238/35279/58182/22051/34991/14461/46729/5725/28518/10809/20520/27223
188188
189189
6. Compute public extended key.
190190

191-
xpub6h8197UZpVMsYirUuHZUDbn8d8dewqW6UkZiXFNRf6WsvkgDsJQN5Atn8PUExFmyofccfoY6dMWqb9SpnJ5HDibi6kKbq931Z531ELCXHTn
191+
xpub6hML7vSU2Hwww9ctwrwt4ijnhJr4n6XaMRox1nnF3PvZKuF1SZoTymnKQHrF9fp2nWJSqv5ZjJSxJJQ8A3PKcBUWhGvTFmuRKpycSCr5coz
192192
193193
7. Compute address of the public extended key (P2PKH).
194194

195-
1LeYXs63uVSDu2XSb82xdEc7RumohCpB7Q
195+
1HYjhPTtMmpBJBd5tVepZDAVdvPA7o8KHJ
196196
197197

198198
verification example 1 (negative test):
@@ -218,15 +218,15 @@ Similarliy to the input above, excpet this time we have a contract that consists
218218

219219
contract_base_pub/14856/24664/10561/15584/48981/6920/53790/18984/56282/28224/32656/61425/50248/59449/1292/29601
220220
or
221-
m/999'/0'/14856/24664/10561/15584/48981/6920/53790/18984/56282/28224/32656/61425/50248/59449/1292/29601
221+
m/175'/0'/14856/24664/10561/15584/48981/6920/53790/18984/56282/28224/32656/61425/50248/59449/1292/29601
222222
223223
5. Compute public extended key.
224224

225-
xpub6gvNX6yBEaBu5nGg9rrtEQgSgvAL5vtcbD8MpCfQgd1Wzuga8Kk3bJkhpTzDWvsx5sLj65UQvQaAgW34SwnGBEmxLvWDshBgPyJstd6RQdB
225+
xpub6gujKWRhegHXKZBkrprW55oSL6UxYhStxF5FtoUNa4KShLxLPDLQTS39XAwRhdCSvuAv2wogwukmfk3fS7CM6pT6QWwJHiCTw7RkwXMgThy
226226
227227
7. Compute address of the public extended key (P2PKH).
228228

229-
1JwnGxLhT9K6RbUsWcjL2mtmpPEHsLFvXG
229+
162KDdRXa3KPgYkH3d1DDKfddacH1gn1n8
230230
231231
8. As expected the address doesn't match the Bitcoin address from the last example <code>1LeYXs63uVSDu2XSb82xdEc7RumohCpB7Q</code>.
232232

0 commit comments

Comments
 (0)