Skip to content

Commit c90c76b

Browse files
committed
bip-path-templates: describe Wildcard index range
1 parent 6ffc354 commit c90c76b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bip-path-templates.mediawiki

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Each section consists of ''index template'', optionally followed by the hardened
9898
Index template can be:
9999

100100
* An integer value from 0 to 2147483647 ("Unit index template")
101+
* A single "*" character, which denotes any value from 0 to 2147483647 ("Wildcard index template")
101102
* The <nowiki>"{"</nowiki> character, followed by a number of ''index ranges'' delimited by commas (","), followed by <nowiki>"}"</nowiki> character ("Ranged index template")
102103
103104
Implementations MAY limit the maximum number of index ranges within the Ranged index template.
@@ -113,11 +114,16 @@ For Non-unit range, value on the left side of the "-" character is the range_sta
113114

114115
For Unit range, we say that range_start is equal to range_end, even though there is no start/end in the Unit range.
115116

117+
Unit index template contains a single index range, which is the Unit range
118+
119+
Wildcard index template contains a single index range, and we say that its range_start is set to 0 and its range_end is set to 2147483647
120+
116121
Constraints:
117122

118123
# To avoid ambiguity, whitespace MUST NOT appear within the path template.
119124
# Commas within the Ranged index template MUST only appear in between index ranges.
120125
# To avoid ambiguity, an index range that matches a single value MUST be specified as Unit range.
126+
# To avoid ambiguity, an index template that matches any value from 0 to 2147483647 MUST be specified as Wildcard index template
121127
# For Non-unit range, range_end MUST be larger than range_start.
122128
# If there is more than one index range within the Ranged index template, range_start of the second and any subsequent range MUST be larger than the range_end of the preceeding range.
123129
# To avoid ambiguity, all representations of integer values larger than 0 MUST NOT start with character "0" (no leading zeroes allowed).

0 commit comments

Comments
 (0)