Skip to content

Commit

Permalink
Fix document
Browse files Browse the repository at this point in the history
  • Loading branch information
zjkmxy committed Oct 17, 2024
1 parent c574c7f commit 44ef2ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/src/lvs/binary-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ This page describes version ``0x00011000``.
*PatternEdge
*SignConstraint
NodeId = NODE-TYPE TLV-LENGTH NonNegativeInteger
Parent = NODE-TYPE TLV-LENGTH NonNegativeInteger
NodeId = NODE-ID-TYPE TLV-LENGTH NonNegativeInteger
Parent = PARENT-ID-TYPE TLV-LENGTH NonNegativeInteger
SignConstraint = KEY-NODE-ID-TYPE TLV-LENGTH NonNegativeInteger
RuleName = IDENTIFIER-TYPE TLV-LENGTH CNAME
RuleName = IDENTIFIER-TYPE TLV-LENGTH "#" CNAME
CNAME = ("_" / ALPHA) *("_" / ALPHA / DIGIT)
ValueEdge = VALUE-EDGE-TYPE TLV-LENGTH
Expand All @@ -52,7 +52,7 @@ This page describes version ``0x00011000``.
UserFnCall = USER-FN-CALL-TYPE TLV-LENGTH
FnId
*UserFnArg
FnId = USER-FN-ID-TYPE TLV-LENGTH CNAME
FnId = USER-FN-ID-TYPE TLV-LENGTH "$" CNAME
UserFnArg = USER-FN-ARG-TYPE TLV-LENGTH (Value / Tag)
TagSymbol = TAG-SYMBOL-TYPE TLV-LENGTH
Expand Down
4 changes: 2 additions & 2 deletions docs/src/lvs/lvs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Based on the above specifications, the trust schema can be written as:
// The platform prefix definition. The pair of quotes means that it can only be matched by the identical component.
#platform: "ndn"/"blog"
// The certificate name suffix definition. Each underscore can be matched by an arbitrary pattern except that contains slash.
#KEY="KEY"/_/_/_
#KEY: "KEY"/_/_/_
// The root certificate definition, i.e., /ndn/blog/KEY/<key-id>/<issuer>/<cert-id>.
#root: #platform/#KEY
// Admin's certificate definition. The non-sharp patterns, role and adminID, are sent from the application. Each pattern can match an arbitrary components, but the matched components for the same pattern should be the same. The constraint shows that the component "_role" must be "admin". The underscore means that the matched components for the pattern "_role" may not be identical in the chain. The admin's certificate must be signed by the root certificate.
Expand Down Expand Up @@ -327,7 +327,7 @@ With the string of trust schema and the user function dictionary, we can compile
lvs_text = r'''
#platform: "ndn"/"blog"
#KEY="KEY"/_/_/_
#KEY: "KEY"/_/_/_
#root: #platform/#KEY
#admin: #platform/_role/adminID/#KEY & {_role: "admin"} <= #root
#author: #platform/_role/ID/#KEY & {_role: "author", ID: $isValidID()} <= #admin
Expand Down

0 comments on commit 44ef2ca

Please sign in to comment.