diff options
author | Dmitry Petukhov <dp@simplexum.com> | 2021-05-11 17:10:09 +0500 |
---|---|---|
committer | Dmitry Petukhov <dp@simplexum.com> | 2021-05-15 11:24:37 +0500 |
commit | c90c76bc1bd13501c2e61ece0aba5f0c904225ed (patch) | |
tree | edc73d846c0d5c3974d9ab3e50b96a371e49356b /bip-path-templates.mediawiki | |
parent | 6ffc3542f8b8a36b3452f77f67bd8e289b86772a (diff) | |
download | bips-c90c76bc1bd13501c2e61ece0aba5f0c904225ed.tar.xz |
bip-path-templates: describe Wildcard index range
Diffstat (limited to 'bip-path-templates.mediawiki')
-rw-r--r-- | bip-path-templates.mediawiki | 6 |
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). |