[webauthn] attObj and Figure 3 [[#fig-attStructs]] do not agree

equalsJeffH has just created a new issue for https://github.com/w3c/webauthn:

== attObj and Figure 3 [[#fig-attStructs]] do not agree ==
in [5.3.4. Generating an Attestation Object](https://w3c.github.io/webauthn/#generating-an-attestation-object), we have this CDDL description:
```
attObj = {
            authData: bytes,
            $$attStmtType
         }

attStmtTemplate = (
                      fmt: text,
                      attStmt: bytes
                  )

; Every attestation statement format must have the above fields
attStmtTemplate .within $$attStmtType
```
Tho, in [Figure 3](https://w3c.github.io/webauthn/#fig-attStructs), the `Attestation Object` is illustrated (in part) as having this core structure:
```
ATTESTATION OBJECT
                     [ "fmt": "packed", ... | "authData": ... | "attStmt": ...  ]
```
If nothing in the rest of the spec is depending upon the ordering illustrated in [Figure 3](https://w3c.github.io/webauthn/#fig-attStructs), then perhaps, if I am correct that this is an issue, we can just adjust Figure 3 to reflect reality?  

A cursory look thru the rest of the spec seems to indicate that we can just repair Figure 3 to be something like:

```
ATTESTATION OBJECT
                     [  "authData": ... |  "fmt": "packed"  |  "attStmt": ... ]
```

Please view or discuss this issue at https://github.com/w3c/webauthn/issues/401 using your GitHub account

Received on Thursday, 13 April 2017 23:37:19 UTC