I've spotted what I believe to be a few errors in the PDF-417 payload showed in Example 11.
There is a missing trailing space in the file type (should be ANSI), as mentioned in #12
The DL subfile length seems wrong: it is set to 0267 where I find a value of 0234.
The ZZ offset is wrong (probably because of 2.): it is set to 0308 (41 + 267) where I find a value of 0275 (41 + 275)
The ZZ subfile lenght seems wrong: 0162 instead of 0202. This one can be easily decomposed as 202 = 2 (ZZ) + 3 + (ZZA) + 196 (base64-encoded CBOR-LD VC) + 1 (segment terminator)
Here is what I think is the correct payload:
@\n\x1e\rANSI 000000090002DL00410234ZZ02750202DLDAQF987654321\nDCSSMITH\nDDEN\nDACJOHN\nDDFN\nDADNONE\nDDGN\nDCAC\nDCBNONE\nDCDNONE\nDBD01012024\nDBB04191988\nDBA04192030\nDBC1\nDAU069 IN\nDAYBRO\nDAG123 MAIN ST\nDAIANYVILLE\nDAJUTO\nDAKF87P20000 \nDCFUTODOCDISCRIM\nDCGUTO\nDAW158\nDCK1234567890\nDDAN\rZZZZA2QZkpgGDGYAAGYABGYACGJ2CGHYYpBi4oxicGKYYzhiyGNAa5ZIggRi6ohicGKAYqER1ggAgGL4YqhjApRicGGwY1gQY4BjmGOJYQXq3wuVrSeLM5iGEziaBjhWosXMWRAG107uT_9bSteuPasCXFQKuPdSdF-xmUoFkA0yRJoW4ERvATNyewT263ZHMGOQYrA==\r
However it is possible I misunderstood something in AAMVA's PDF-417 data encoding.
I've spotted what I believe to be a few errors in the PDF-417 payload showed in Example 11.
ANSI
), as mentioned in #12DL
subfile length seems wrong: it is set to0267
where I find a value of0234
.ZZ
offset is wrong (probably because of 2.): it is set to0308
(41 + 267) where I find a value of0275
(41 + 275)ZZ
subfile lenght seems wrong:0162
instead of0202
. This one can be easily decomposed as 202 = 2 (ZZ
) + 3 + (ZZA
) + 196 (base64-encoded CBOR-LD VC) + 1 (segment terminator)Here is what I think is the correct payload:
However it is possible I misunderstood something in AAMVA's PDF-417 data encoding.