mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-04 03:03:53 +01:00
389: Explicitly disallow duplicate multipath
This commit is contained in:
parent
0a78fc10bd
commit
c88c3970ed
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ This is modified to state:
|
|||
|
||||
When a <tt>/<NUM;NUM;...;NUM></tt> is encountered, parsers should account for a presence of multiple descriptors where the first descriptor uses the first <tt>NUM</tt>, and a second descriptor uses the second <tt>NUM</tt>, and so on, until each <tt>NUM</tt> is accounted for in the production of public keys, scripts, and addresses, as well as descriptor import and export operations.
|
||||
Descriptors that contain multiple Key Expressions that each have a <tt>/<NUM;NUM;...;NUM></tt> must have tuples of exactly the same length so that they are derived in lockstep in the same way that <tt>/*</tt> paths in multiple Key expressions are handled.
|
||||
Duplicate <tt>NUM</tt>s within a tuple are not allowed.
|
||||
|
||||
The common use case for this is to represent descriptors for producing receiving and change addresses.
|
||||
When interpreting for this use case, wallets should use the first descriptor for producing receiving addresses, and the second descriptor for producing change addresses.
|
||||
|
|
Loading…
Add table
Reference in a new issue