Skip to main content

Module parser

Module parser 

Source
Expand description

AAMVA DL / ID payload parser.

The payload layout (AAMVA Card Design Standard, v01 onwards) is:

  @\n\x1E\r  ANSI   IIN(6)  v(2)  jv(2)  nbSub(2)
  { subfileType(2) offset(4) length(4) } × nbSub
  { subfileType(2) { elementCode(3) value \n } ... \r } × nbSub

Functions§

parse
Parses a raw AAMVA payload (UTF-8 text from the PDF417 barcode) into an AamvaLicense.