Skip to content

Commit c9517ec

Browse files
committed
fixes
1 parent e6b9822 commit c9517ec

File tree

2 files changed

+55
-35
lines changed

2 files changed

+55
-35
lines changed

.DS_Store

18 KB
Binary file not shown.

bip-0048.mediawiki

Lines changed: 55 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Layer: Applications
44
Title: Multi-Account/Multi-Script Hierarchy for Deterministic Multi Signature Wallets
55
Author: Peter Denton <[email protected]>
6-
Comments-Summary: Mixed review (one person)
6+
Comments-Summary: No comments
77
Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-0048
88
Status: Proposed
99
Type: Standards Track
@@ -27,7 +27,7 @@ millions of addresses per chain.
2727
==Key sorting==
2828

2929
Any wallet that supports BIP48 inherently supports deterministic key sorting as per BIP67 so that all possible
30-
multi-signature addresses/scripts are derived from deterministically ordered public keys.
30+
multi-signature addresses/scripts are derived from deterministically sorted public keys.
3131

3232
==Path levels==
3333

@@ -37,7 +37,7 @@ We define the following 6 levels in BIP32 path:
3737
m / purpose' / coin_type' / account' / script_type' / change / address_index
3838
</pre>
3939

40-
`h` in the path indicates that BIP32 hardened derivation is used.
40+
<code>h</code> or <code>'</code> in the path indicates that BIP32 hardened derivation is used.
4141

4242
Each level has a special meaning, described in the chapters below.
4343

@@ -55,7 +55,7 @@ Sharing the same space for various networks has some disadvantages.
5555

5656
Avoiding reusing addresses across networks and improving privacy issues.
5757

58-
Coin type `0` for mainnet and `1` for testnet.
58+
Coin type <code>0</code> for mainnet and <code>1</code> for testnet.
5959

6060
Hardened derivation is used at this level.
6161

@@ -82,16 +82,18 @@ an external source. Such an algorithm is described in "Account discovery" chapte
8282

8383
===Script===
8484

85-
This level splits the key space into three separate `script_type`(s). To provide
85+
This level splits the key space into three separate <code>script_type</code>(s). To provide
8686
optimum backward compatibility.
8787

88-
The recommended default is pay to witness script hash `m/48'/0'/0'/2'`.
88+
The recommended default is pay to witness script hash <code>m/48'/0'/0'/2'</code>.
8989

9090
The following represent mainnet, account 0.
9191

92-
`1'`: Nested Segwit (p2sh-p2wsh) `m/48'/0'/0'/1'`</br>
93-
`2'`: Native Segwit (p2wsh) `m/48'/0'/0'/2'`</br>
94-
`3'`: Legacy (p2sh) `m/48'/0'/0'/3'`</br>
92+
<code>1'</code>: Nested Segwit (p2sh-p2wsh) <code>m/48'/0'/0'/1'</code></br>
93+
<code>2'</code>: Native Segwit (p2wsh) <code>m/48'/0'/0'/2'</code></br>
94+
<code>3'</code>: Legacy (p2sh) <code>m/48'/0'/0'/3'</code></br>
95+
96+
Easily expanded to account for new script types.
9597

9698
===Change===
9799

@@ -142,109 +144,127 @@ an external chain by generating a new address.
142144
==Examples==
143145

144146
{|
145-
!coin
146-
!account
147-
!script
148-
!chain
149-
!address
150-
!path
147+
|network
148+
|account
149+
|script
150+
|chain
151+
|address
152+
|path
151153
|-
152-
|Bitcoin
154+
|mainnet
153155
|first
156+
|p2wsh
154157
|external
155158
|first
156159
|m / 48' / 0' / 0' / 2' / 0 / 0
157160
|-
158-
|Bitcoin
161+
|mainnet
159162
|first
163+
|p2wsh
160164
|external
161165
|second
162166
|m / 48' / 0' / 0' / 2' / 0 / 1
163167
|-
164-
|Bitcoin
168+
|mainnet
165169
|first
170+
|p2wsh
166171
|change
167172
|first
168173
|m / 48' / 0' / 0' / 2' / 1 / 0
169174
|-
170-
|Bitcoin
175+
|mainnet
171176
|first
177+
|p2wsh
172178
|change
173179
|second
174180
|m / 48' / 0' / 0' / 2' / 1 / 1
175181
|-
176-
|Bitcoin
182+
|mainnet
177183
|second
184+
|p2wsh
178185
|external
179186
|first
180187
|m / 48' / 0' / 1' / 2' / 0 / 0
181188
|-
182-
|Bitcoin
189+
|mainnet
183190
|second
191+
|p2wsh
184192
|external
185193
|second
186194
|m / 48' / 0' / 1' / 2' / 0 / 1
187195
|-
188-
|Bitcoin
196+
|mainnet
189197
|second
198+
|p2sh
190199
|change
191200
|first
192-
|m / 48' / 0' / 1' / 2' / 1 / 0
201+
|m / 48' / 0' / 1' / 3' / 1 / 0
193202
|-
194-
|Bitcoin
203+
|mainnet
195204
|second
205+
|p2sh
196206
|change
197207
|second
198-
|m / 48' / 1' / 1' / 2' / 1 / 1
208+
|m / 48' / 1' / 1' / 3' / 1 / 1
199209
|-
200-
|Bitcoin Testnet
210+
|testnet
201211
|first
212+
|p2sh-p2wsh
202213
|external
203214
|first
204-
|m / 48' / 1' / 0' / 2' / 0 / 0
215+
|m / 48' / 1' / 0' / 1' / 0 / 0
205216
|-
206-
|Bitcoin Testnet
217+
|testnet
207218
|first
219+
|p2wsh
208220
|external
209221
|second
210222
|m / 48' / 1' / 0' / 2' / 0 / 1
211223
|-
212-
|Bitcoin Testnet
224+
|testnet
213225
|first
226+
|p2wsh
214227
|change
215228
|first
216229
|m / 48' / 1' / 0' / 2' / 1 / 0
217230
|-
218-
|Bitcoin Testnet
231+
|testnet
219232
|first
233+
|p2wsh
220234
|change
221235
|second
222236
|m / 48' / 1' / 0' / 2' / 1 / 1
223237
|-
224-
|Bitcoin Testnet
238+
|testnet
225239
|second
240+
|p2wsh
226241
|external
227242
|first
228243
|m / 48' / 1' / 1' / 2' / 0 / 0
229244
|-
230-
|Bitcoin Testnet
245+
|testnet
231246
|second
247+
|p2wsh
232248
|external
233249
|second
234250
|m / 48' / 1' / 1' / 2' / 0 / 1
235251
|-
236-
|Bitcoin Testnet
252+
|testnet
237253
|second
254+
|p2wsh
238255
|change
239256
|first
240257
|m / 48' / 1' / 1' / 2' / 1 / 0
241258
|-
242-
|Bitcoin Testnet
259+
|testnet
243260
|second
261+
|p2wsh
244262
|change
245263
|second
246264
|m / 48 h / 1' / 1' / 2' / 1 / 1
247-
|}
265+
|-
266+
}|
267+
248268

249269
==Reference==
250270

0 commit comments

Comments
 (0)