Skip to content

Commit

Permalink
Fix .within operator in nonCompountAttStmt
Browse files Browse the repository at this point in the history
[CDDL][1] defines that:

>A map matches a specification given as a group when the group matches
>a sequence of name/value pairs such that all of these name/value
>pairs are present in the map and the map has no name/value pair that
>is not covered by the group.

Therefore the control `.within { fmt: text .ne "compound" }` forbids any maps
that contain additional fields besides `fmt`, which is clearly not what was
intended.

[1]: https://datatracker.ietf.org/doc/html/rfc8610#section-2.1
  • Loading branch information
emlun committed Nov 27, 2024
1 parent 9b16167 commit 8b29bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6933,7 +6933,7 @@ The "compound" attestation statement format is used to pass multiple, self-conta
attStmt: [2* nonCompoundAttStmt]
)

nonCompoundAttStmt = { $$attStmtType } .within { fmt: text .ne "compound" }
nonCompoundAttStmt = { $$attStmtType } .within { fmt: text .ne "compound", * any => any }
```

: Signing procedure
Expand Down

0 comments on commit 8b29bec

Please sign in to comment.