summaryrefslogtreecommitdiff
path: root/bip-path-templates.mediawiki
diff options
context:
space:
mode:
Diffstat (limited to 'bip-path-templates.mediawiki')
-rw-r--r--bip-path-templates.mediawiki6
1 files changed, 6 insertions, 0 deletions
diff --git a/bip-path-templates.mediawiki b/bip-path-templates.mediawiki
index b828a2e..9888c16 100644
--- a/bip-path-templates.mediawiki
+++ b/bip-path-templates.mediawiki
@@ -98,6 +98,7 @@ Each section consists of ''index template'', optionally followed by the hardened
Index template can be:
* An integer value from 0 to 2147483647 ("Unit index template")
+* A single "*" character, which denotes any value from 0 to 2147483647 ("Wildcard index template")
* The <nowiki>"{"</nowiki> character, followed by a number of ''index ranges'' delimited by commas (","), followed by <nowiki>"}"</nowiki> character ("Ranged index template")
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
For Unit range, we say that range_start is equal to range_end, even though there is no start/end in the Unit range.
+Unit index template contains a single index range, which is the Unit range
+
+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
+
Constraints:
# To avoid ambiguity, whitespace MUST NOT appear within the path template.
# Commas within the Ranged index template MUST only appear in between index ranges.
# To avoid ambiguity, an index range that matches a single value MUST be specified as Unit range.
+# To avoid ambiguity, an index template that matches any value from 0 to 2147483647 MUST be specified as Wildcard index template
# For Non-unit range, range_end MUST be larger than range_start.
# 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.
# To avoid ambiguity, all representations of integer values larger than 0 MUST NOT start with character "0" (no leading zeroes allowed).