@@ -101,16 +101,16 @@ Every node has an integer ID, which equals to the index it occurs in the LVS mod
101101In current compiler implemented in python-ndn, it is ``0 `` to indicate that the first Node is the root,
102102but there is no guarantee in future and a checker should not rely on this convention.
103103
104- Every pattern edge is also assigned with a number.
105- If the number is lower than ``NamedPatternCnt ``, then it is a named pattern edge.
106- If it is larger than or equal to ``NamedPatternCnt ``, then it is a temporary named pattern ``_ ``.
104+ Every pattern edge is also assigned with a number, which starts from `` 1 `` .
105+ If the number is lower than or equal to ``NamedPatternCnt ``, then it is a named pattern edge.
106+ If it is larger than ``NamedPatternCnt ``, then it is a temporary named pattern ``_ ``.
107107Note that since TLV encoding does not support negative numbers, we use ``NamedPatternCnt `` to differentiate temporary and normal named patterns.
108108A checker does not need to tell whether a pattern edge is named or not,
109- if it only checks the signature validity, since every temporary pattern edge is assigned with a different tag.
109+ if it only checks the signature validity, since every occurrence of a temporary pattern edge is assigned with a different tag.
110110Tag symbol information is only needed if the checker needs the name identifiers of named patterns.
111111
112112``TagSymbol `` describes the identifiers for each named pattern edge.
113- It is ununsed and can be safely discarded if a checker does not dump error reason after verification fails.
113+ It is unused and can be safely discarded if a checker does not dump error reason after verification fails.
114114The TLV-Type is still marked as critical for sanity check reason expressed in the next section.
115115
116116Node
@@ -119,13 +119,13 @@ Node
119119``NodeId `` always equal to the index it occurs in the LVS model, starting from ``0 ``.
120120
121121``RuleName `` is the identifier used to identify this node in the original LVS schema.
122- It is ununsed if a checker does not dump error reason after verification fails.
122+ It is unused if a checker does not dump error reason after verification fails.
123123
124124``ValueEdge `` and ``PatternEdge `` are edges to children under its subtree.
125125A ``ValueEdge `` requests an exact match; a ``PatternEdge `` specifies a match of a constraint set,
126126and assigns the component value to the corresponding pattern variable.
127127A checker must always check ``ValueEdge `` for exact matches before it uses ``PatternEdge `` to match.
128- When multiple ``PatternEdge `` can match, the first one occuring in the file should hit.
128+ When multiple ``PatternEdge `` can match, the first one occurring in the file should hit.
129129
130130``SignConstraint `` indicates zero or more node IDs.
131131When a packet name matches the current node, the signing key should match one of the nodes specified by ``SignConstraint ``.
@@ -164,7 +164,7 @@ The following sanity checks are recommended but not required.
164164
165165- After the application finishes providing user functions, check all user functions used in the programs are given.
166166
167- + If the implementation chooses not to do so, it should let the verifcation fail whenever an unknown user function is triggered.
167+ + If the implementation chooses not to do so, it should let the verification fail whenever an unknown user function is triggered.
168168
169169- After the application finishes providing trust anchors, check all roots of signing constraint are provided with a trust anchor.
170170
@@ -173,7 +173,7 @@ The following sanity checks are recommended but not required.
173173 * (a) specified as a signing constraint of another node, and
174174 * (b) a node without any signing constraint attached to it
175175
176- + If the implementation chooses not to do so, it should let the verifcation fail whenever reaches a leaf node without sign constraint.
176+ + If the implementation chooses not to do so, it should let the verification fail whenever reaches a leaf node without sign constraint.
177177
178178- *[Optional] * No unreachable nodes from the tree root. (python-ndn does not check this)
179179
0 commit comments